DatabaseManager
open class DatabaseManager(datastore: DataStore<Preferences>, dispatchers: CoroutineDispatchers) : DatabaseProvider, DatabaseManager(source)
Manages per-device Room database instances for node data, with LRU eviction.
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Returns true if a database exists for the given device address. Android Room stores DB files without an extension; JVM/iOS append .db. We check both to stay platform-agnostic.
Link copied to clipboard
Link copied to clipboard
Switch active database to the one associated with address. Serialized via mutex.