AbstractAllows setting extra elements in a model, since this is allowed by IDB
Get the primary keys of this instance.
Delete this instance from the database.
Optionaltx: IDBTransactionSave this instance's changes to the database.
Optionaltx: IDBTransactionUpdate this instance's fields. This will not save the changes to the database.
The values to update
StaticallStaticclearDeletes all the rows in the table.
Optionaltx: IDBTransactionStaticcountStaticcreateStaticfilterStaticforLoop through all model instances.
The callback to call for each model instance
Optionaltx: IDBTransactionQuery.forEach for more information
StaticgetStatickeysGet all the primary keys of the table.
Optionaltx: IDBTransactionStaticorderStaticwithStart a query for this model with a specific index.
The index to use
A query to filter the index
Query.withIndex for more information
Base class for all models. All DB operations allow providing a transaction to be used.
See
Example