JsonQueries

class JsonQueries(driver: SqlDriver) : TransacterImpl

Constructors

Link copied to clipboard
constructor(driver: SqlDriver)

Functions

Link copied to clipboard
fun changes(): ExecutableQuery<Long>
Link copied to clipboard
fun delete(key: String)
Link copied to clipboard
fun deleteAll()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun insert(key: String, record: String)
Link copied to clipboard
fun recordForKey(key: String): Query<RecordForKey>
fun <T : Any> recordForKey(key: String, mapper: (key: String, record: String) -> T): Query<T>
Link copied to clipboard
fun <T : Any> recordsForKeys(key: Collection<String>, mapper: (key: String, record: String) -> T): Query<T>
Link copied to clipboard
fun selectRecords(): Query<Records>
fun <T : Any> selectRecords(mapper: (_id: Long, key: String, record: String) -> 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 update(record: String, key: String)