open

suspend fun Database.Companion.open(location: String, key: DatabaseKey): Database

Initialise or open a Database


Initialise an in-memory Database whose data will be lost when the instance is dropped

In-memory databases are never encrypted.


Deprecated

in-memory databases are never encrypted, so the key is ignored

Replace with

open()

Initialise an in-memory Database whose data will be lost when the instance is dropped