Key Value Storage
Base interaction to the database.
Parameters
if providing your own, recommend using SqkonJson to make sure you create fields consistently.
Constructors
Types
Functions
Delete by key.
Delete by keys.
Purge all rows that have there expired_at field NOT null and less than (<) the date passed in. (Usually Clock.System.now).
Unlike deleteExpired, this will clean up rows that have not been touched (read/written) before the passed in time.
Unlike deleteExpired, this will clean up rows that have not been touched (read/written) before the passed in time.
Select by key.
Select by keys with optional ordering
Create a PagingSource that pages through results using keyset-based pagination. Unlike selectPagingSource, this avoids the O(n) cost of SQL OFFSET on large datasets by using pre-calculated page boundary keys.
Create a PagingSource that pages through results according to queries generated from the passed in where and orderBy. initialOffset initial offset to start paging from.
Run body in a database transaction. Calling SqkonTransactionScope.rollback discards the work and returns silently.
Run body in a database transaction and return its value. Calling SqkonTransactionScope.rollback aborts the transaction and throws SqkonRollbackException (there is no value to return).