Package app.cash.sqldelight.driver.native

Types

Link copied to clipboard
sealed class ConnectionWrapper : SqlDriver
Link copied to clipboard
class NativeSqliteDriver(databaseManager: <ERROR CLASS>, maxReaderConnections: Int) : ConnectionWrapper, SqlDriver

Native driver implementation.

Functions

Link copied to clipboard
fun wrapConnection(connection: <ERROR CLASS>, block: (SqlDriver) -> 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 SqlDriver instance performs.