sqldelight-runtime / com.squareup.sqldelight / TransacterImpl

TransacterImpl

abstract class TransacterImpl : Transacter

A transaction-aware SqlDriver wrapper which can begin a Transaction on the current connection.

Constructors

<init>

TransacterImpl(driver: SqlDriver)

A transaction-aware SqlDriver wrapper which can begin a Transaction on the current connection.

Functions

createArguments

fun createArguments(count: Int, offset: Int): String

For internal use, creates a string in the format (?3, ?4, ?5) where the first index is offset and there are count total indexes.

notifyQueries

fun notifyQueries(queryList: List<Query<*>>): Unit

For internal use, notifies the listeners of queryList that their underlying result set has changed.

transaction

open fun transaction(noEnclosing: Boolean, body: Transaction.() -> Unit): Unit

Starts a Transaction and runs body in that transaction.