Static DB_POOL

Source
static DB_POOL: OnceLock<RwLock<HashMap<(DbKind, String), Arc<Database>>>>
Expand description

Global, thread-safe pool of lazily-opened databases, keyed by (DbKind, name).

Note: We store Arc<Database> here so multiple TableConnections can cheaply share the same underlying database handle within the process.