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 using where clause. If where is null, all rows will be selected.
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 by from the passed in where and orderBy. initialOffset initial offset to start paging from.
Select using where clause. If where is null, all rows will be selected.
Convenience function to insert collection of rows. If the row does not exist, ti will update nothing, use insert if you want to insert if the row does not exist.