in src/databao_context_engine/plugins/databases/mssql_introspector.py [0:0]
def _get_catalogs(self, connection, file_config: MSSQLConfigFile) -> list[str]:
database = file_config.connection.get("database")
if isinstance(database, str) and database:
return [database]
rows = self._fetchall_dicts(connection, "SELECT name FROM sys.databases", None)
all_catalogs = [row["name"] for row in rows]
return [catalog for catalog in all_catalogs if catalog not in self._IGNORED_CATALOGS]