Policy of operating composite catalog, with one TiCatalog being either primary or secondary catalog.
Legacy catalog first policy.
Returns the catalog in which the database is.
Returns the catalog in which the database is. Use for upper command to identify the catalog in order to take different actions.
database
respective catalog containing this database, returns current catalog when database is empty
A composition of two catalogs that behaves as a concrete catalog.