Count the number of keys in the database.
Optional
query: IDatabaseTableQuery | IQueryBuilderThe query to use to filter the keys. If no query is provided, all the keys in the database are counted. The query can either be a IDatabaseTableQuery or a QueryBuilder.
A promise that resolves with the number of keys in the database.
Get all the values in the database.
Optional
query: IDatabaseTableQuery | IQueryBuilderThe query to use to filter the values. If no query is provided, all the values in the database are returned. The query can either be a IDatabaseTableQuery or a QueryBuilder.
A promise that resolves with all the values in the database.
Set the value for a key.
The key to set the value for.
The value to set for the key. It must be serializable.
A promise that resolves with the value set.
Subscribe to changes in the database table.
Interface for a key-value database table.