Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
class NativeSqliteDriver(databaseManager: DatabaseManager, maxReaderConnections: Int = 1) : ConnectionWrapper, SqlDriver

Native driver implementation.

Functions

Link copied to clipboard

Helper function to create an in-memory driver. In-memory drivers have a single connection, so concurrent access will be block

Link copied to clipboard
fun wrapConnection(connection: DatabaseConnection, 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.