MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / active_database_name

Method active_database_name

src/sql/src/catalog.rs:92–96  ·  view source on GitHub ↗

Returns the database to use if one is not explicitly specified.

(&self)

Source from the content-addressed store, hash-verified

90
91 /// Returns the database to use if one is not explicitly specified.
92 fn active_database_name(&self) -> Option<&str> {
93 self.active_database()
94 .map(|id| self.get_database(id))
95 .map(|db| db.name())
96 }
97
98 /// Returns the database to use if one is not explicitly specified.
99 fn active_database(&self) -> Option<&DatabaseId>;

Callers 1

allocate_full_nameMethod · 0.80

Implementers 2

catalog.rssrc/adapter/src/catalog.rs
catalog.rssrc/mz-deploy/src/project/compiler/typ

Calls 4

mapMethod · 0.45
active_databaseMethod · 0.45
get_databaseMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected