(self, database: str, schema: str)
return schema.lower() in search
Check if a schema exists.

        The default implementation of this is potentially unnecessarily slow,
        and adapters should implement it if there is an optimized path (and
        there probably is)
Check if a schema exists.
Check if a schema exists .
def check_schema_exists(self, database: str, schema: str) -> bool:
        """Check if a schema exists.

        The default implementation of this is potentially unnecessarily slow,
        and adapters should implement it if there is an optimized path (and
        there probably is)
        """
        search = (
            s.lower() for s in
            self.list_schemas(database=database)
        )
        return schema.lower() in search
def check_schema_exists ( self , database : str , schema : str ) -> bool : search = ( s . lower ( ) for s in self . list_schemas ( database = database ) ) return schema . lower ( ) in search