EntityQueries

class EntityQueries(sqlDriver: ERROR CLASS: Symbol not found for SqlDriver) : <ERROR CLASS> ERROR CLASS: Symbol not found for TransacterImpl(source)

Constructors

Link copied to clipboard
constructor(sqlDriver: ERROR CLASS: Symbol not found for SqlDriver)

Functions

Link copied to clipboard
fun count(entityName: String, where: Where<*>? = null, expiresAfter: ERROR CLASS: Symbol not found for Instant?? = null): ERROR CLASS: Symbol not found for Query<kotlin/Int>
Link copied to clipboard
fun delete(entityName: String, entityKeys: Collection<String>? = null, where: Where<*>? = null)
Link copied to clipboard
fun insertEntity(entity: Entity, ignoreIfExists: Boolean)
Link copied to clipboard
fun select(entityName: String, entityKeys: Collection<String>? = null, where: Where<*>? = null, orderBy: List<OrderBy<*>> = emptyList(), limit: Long? = null, offset: Long? = null, expiresAt: ERROR CLASS: Symbol not found for Instant?? = null): ERROR CLASS: Symbol not found for Query<com/mercury/sqkon/db/Entity>
Link copied to clipboard
fun selectKeyed(entityName: String, where: Where<*>? = null, orderBy: List<OrderBy<*>> = emptyList(), expiresAt: ERROR CLASS: Symbol not found for Instant?? = null): (beginInclusive: String, endExclusive: String?) -> ERROR CLASS: Symbol not found for Query<com/mercury/sqkon/db/Entity>

Returns a factory that produces keyed range queries for keyset paging. Selects entities within a key range using ROW_NUMBER() for consistent ordering.

Link copied to clipboard
fun selectPageBoundaries(entityName: String, where: Where<*>? = null, orderBy: List<OrderBy<*>> = emptyList(), expiresAt: ERROR CLASS: Symbol not found for Instant?? = null): (anchor: String?, limit: Long) -> ERROR CLASS: Symbol not found for Query<kotlin/String>

Returns a factory that produces page boundary queries for keyset paging. Uses ROW_NUMBER() to pick every Nth key from the ordered result set.

Link copied to clipboard
fun updateEntity(entityName: String, entityKey: String, expiresAt: ERROR CLASS: Symbol not found for Instant??, value: String)