FakeDatabaseProvider
A real DatabaseProvider that uses an in-memory database for testing.
Properties
Functions
Link copied to clipboard
open override fun <T> observeCurrentDb(name: String?, query: (MeshtasticDatabase) -> Flow<T>): Flow<T>
Link copied to clipboard
Simulates the active-DB switch that happens when the app selects a different device — the new DB has no rows, so any cache that lived only in the previous DB is gone. Closes the prior DB to free its resources.
Link copied to clipboard