Package app. cash. sqldelight. driver. native
Types
Link copied to clipboard
Link copied to clipboard
class NativeSqliteDriver(databaseManager: <ERROR CLASS>, maxReaderConnections: Int) : ConnectionWrapper
Content copied to clipboard
Native driver implementation.
Functions
Link copied to clipboard
fun wrapConnection(connection: <ERROR CLASS>, block: (<ERROR CLASS>) -> Unit)
Content copied to clipboard
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.