Readonly
bulkInserts multiple objects at once. Can often see great optimizations in some databases.
Readonly
countCounts the number of models saved in the database.
Readonly
createCreates an instance of this model with the data that is provided.
The data that makes up an instance of the model.
NOTE: A tradeoff was made between supporting the DataDescription vs a ToObjectReturn
Readonly
createCreates and saves an instance. An optimization in some databases
Readonly
deleteDeletes an instance by its id.
The id to delete
Readonly
getGets the Api Information on the model.
This will take what is manually provided via the ModelDefinition and autopopulate everything that is possible with default values, or values that make sense based on the ApiInformation provided.
Readonly
getGets the metadata that describes the model.
Readonly
getThis is a unique name combining namespace + pluralName. This can be used as a key to uniquely identify this model across an entire system. Example: pluralName=MyModels namespace=@my-package/namespace
Return: '@my-package/namespace-my-models'
Readonly
getGets the primary key of instance data. This helpful method shortcuts having to figure out the primaryKey's name and then reaching inside the instance data to get the primary key.
The underlying instance data that has the primary key.
Readonly
retrieveAttempts to get an instance by its id
Readonly
saveSave the model
The instance to save.
Readonly
searchSearches instances by the provided search query
Readonly
searchSearches for a single instance with the given query.
A model that has ORM functions attached.