createSelektSQLiteDriver
fun createSelektSQLiteDriver(journalMode: SQLiteJournalMode = SQLiteJournalMode.WAL, key: ByteArray? = null): SelektSQLiteDriver(source)
Creates a pooled SQLite driver for Room 2.8 or later, including Room 3.
The supplied key remains owned by the caller and is never modified. Before this function returns, the driver copies the key into protected native memory. The caller should clear the supplied array immediately afterwards, including when this function throws. A key must be exactly 32 bytes and must not consist entirely of zero bytes.
The returned driver owns the native key and must be closed after every Room database using it has been closed. Closing the driver prevents new connections from being opened. Existing connections remain usable and retain the native key until they are closed, after which the key is destroyed.
Since
1.2.0