ios-driver / com.squareup.sqldelight.drivers.ios

Package com.squareup.sqldelight.drivers.ios

Platform and version requirements: native

Types

ConnectionWrapper
(native)

sealed class ConnectionWrapper

NativeSqlDatabase
(native)

class NativeSqlDatabase : ConnectionWrapper

Native driver implementation.

Functions

wrapConnection
(native)

fun wrapConnection(connection: <ERROR CLASS>, block: (<ERROR CLASS>) -> Unit): Unit

Sqliter's DatabaseConfiguration takes lambda arguments for it's create and upgrade operations, which each take a DatabaseConnection argument. Use wrapConnection to have SqlDelight access this passed connection and avoid the pooling that the full SqlDatabase instance performs.