getDatabase method

DatabaseCore? getDatabase({
  1. String? dbName,
})

Returns the internal DatabaseCore instance for the given db name. Handle with care: exposes the underlying database adapter.

Implementation

DatabaseCore? getDatabase({String? dbName}) {
  return databases.get(dbName ?? defaultDBName);
}