CoreDatabaseModule
Functions
Link copied to clipboard
Link copied to clipboard
Long-lived consumers (discovery ViewModels, the scan engine) hold this DAO across device/DB switches, so hand them the switch-aware delegate — never a DAO pinned to the injection-time currentDb.value, which would keep reading a stale DB and crash once a cross-transport merge retires it. See SwitchingDiscoveryDao.