Skip to main content

DATABASE_FAKE_NAME

Static DATABASE_FAKE_NAME 

Source
pub(crate) static DATABASE_FAKE_NAME: &str
Expand description

The name of the fake database used to fit references into the 3-layer catalog model of the SourceReferenceResolver for source types whose ReferenceMetadata::external_reference stores no database component (MySQL and Kafka). Because those references are never fully qualified with a database, the resolver’s database name is never matched against and this placeholder is never stored in the catalog.

Note: this is not usable for every non-Postgres source. SQL Server and load generators do store a database in their external reference (the real upstream database and the synthetic mz_load_generators, respectively), so their resolvers must be built with that same database for the stored reference to resolve. See the resolver construction in SourceReferenceClient.