Platform and version requirements: native
|
ConnectionWrapper |
sealed class ConnectionWrapper |
|
NativeSqlDatabase |
class NativeSqlDatabase : ConnectionWrapper
Native driver implementation. |
|
wrapConnection |
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. |