open

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

Initialise or open a Database


suspend fun Database.Companion.open(): Database

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

In-memory databases are never encrypted.


suspend fun Database.Companion.open(key: DatabaseKey): Database

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