MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / has_schema

Method has_schema

lib/sqlalchemy/engine/reflection.py:492–506  ·  view source on GitHub ↗

r"""Return True if the backend has a schema with the given name. :param schema_name: name of the schema to check :param \**kw: Additional keyword argument to pass to the dialect specific implementation. See the documentation of the dialect in use for more informati

(self, schema_name: str, **kw: Any)

Source from the content-addressed store, hash-verified

490 )
491
492 def has_schema(self, schema_name: str, **kw: Any) -> bool:
493 r"""Return True if the backend has a schema with the given name.
494
495 :param schema_name: name of the schema to check
496 :param \**kw: Additional keyword argument to pass to the dialect
497 specific implementation. See the documentation of the dialect
498 in use for more information.
499
500 .. versionadded:: 2.0
501
502 """
503 with self._operation_context() as conn:
504 return self.dialect.has_schema(
505 conn, schema_name, info_cache=self.info_cache, **kw
506 )
507
508 def get_sorted_table_and_fkc_names(
509 self,

Callers

nothing calls this directly

Calls 1

_operation_contextMethod · 0.95

Tested by

no test coverage detected