(self, database: Optional[str], schema: str)
Check if the schema is cached, and by default logs if it is not.
Check if the schema is cached, and by default logs if it is not.
Check if the schema is cached and by default logs if it is not .
def _schema_is_cached(self, database: Optional[str], schema: str) -> bool:
        """Check if the schema is cached, and by default logs if it is not."""

        if (database, schema) not in self.cache:
            fire_event(
                CacheMiss(
                    conn_name=self.nice_connection_name(),
                    database=database,
                    schema=schema
                )
            )
            return False
        else:
            return True
def _schema_is_cached ( self , database : Optional [ str ] , schema : str ) -> bool : if ( database , schema ) not in self . cache : fire_event ( CacheMiss ( conn_name = self . nice_connection_name ( ) , database = database , schema = schema ) ) return False else : return True