KvsEntryQueries

class KvsEntryQueries(driver: SqlDriver) : TransacterImpl

Constructors

Link copied to clipboard
constructor(driver: SqlDriver)

Functions

Link copied to clipboard
fun deleteAll(): QueryResult<Long>
Link copied to clipboard
fun deleteByKey(key: String): QueryResult<Long>
Link copied to clipboard
fun deleteExpired(expires_at: Long?): QueryResult<Long>
Link copied to clipboard
fun selectAll(): Query<KvsEntry>
fun <T : Any> selectAll(mapper: (key: String, value_: String, expires_at: Long?) -> T): Query<T>
Link copied to clipboard
fun selectByKey(key: String): Query<KvsEntry>
fun <T : Any> selectByKey(key: String, mapper: (key: String, value_: String, expires_at: Long?) -> T): Query<T>
Link copied to clipboard
open override fun transaction(noEnclosing: Boolean, body: TransactionWithoutReturn.() -> Unit)
Link copied to clipboard
open override fun <R> transactionWithResult(noEnclosing: Boolean, bodyWithReturn: TransactionWithReturn<R>.() -> R): R
Link copied to clipboard
fun upsert(key: String, value_: String, expires_at: Long?): QueryResult<Long>