DatabaseProvider

Provides multiplatform access to the current MeshtasticDatabase and a safe transactional helper. Platform implementations manage the concrete lifecycle (Room on Android, etc.).

Inheritors

Properties

Link copied to clipboard
abstract val currentDb: ERROR CLASS: Symbol not found for StateFlow<org/meshtastic/core/database/MeshtasticDatabase>

Reactive stream of the currently active database instance.

Functions

Link copied to clipboard
abstract suspend fun <T> withDb(block: suspend (MeshtasticDatabase) -> T): T?

Execute block against the current database, returning null if no database is available.