MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / get_view_names

Method get_view_names

lib/sqlalchemy/engine/reflection.py:752–779  ·  view source on GitHub ↗

r"""Return all non-materialized view names in `schema`. :param schema: Optional, retrieve names from a non-default schema. For special quoting, use :class:`.quoted_name`. :param \**kw: Additional keyword argument to pass to the dialect specific implementation. See

(
        self, schema: Optional[str] = None, **kw: Any
    )

Source from the content-addressed store, hash-verified

750 return dict(res)
751
752 def get_view_names(
753 self, schema: Optional[str] = None, **kw: Any
754 ) -> List[str]:
755 r"""Return all non-materialized view names in `schema`.
756
757 :param schema: Optional, retrieve names from a non-default schema.
758 For special quoting, use :class:`.quoted_name`.
759 :param \**kw: Additional keyword argument to pass to the dialect
760 specific implementation. See the documentation of the dialect
761 in use for more information.
762
763
764 .. versionchanged:: 2.0 For those dialects that previously included
765 the names of materialized views in this list (currently PostgreSQL),
766 this method no longer returns the names of materialized views.
767 the :meth:`.Inspector.get_materialized_view_names` method should
768 be used instead.
769
770 .. seealso::
771
772 :meth:`.Inspector.get_materialized_view_names`
773
774 """
775
776 with self._operation_context() as conn:
777 return self.dialect.get_view_names(
778 conn, schema, info_cache=self.info_cache, **kw
779 )
780
781 def get_materialized_view_names(
782 self, schema: Optional[str] = None, **kw: Any

Callers

nothing calls this directly

Calls 1

_operation_contextMethod · 0.95

Tested by

no test coverage detected