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

Method get_view_names

lib/sqlalchemy/dialects/mssql/base.py:3440–3453  ·  view source on GitHub ↗
(self, connection, dbname, owner, schema, **kw)

Source from the content-addressed store, hash-verified

3438 @reflection.cache
3439 @_db_plus_owner_listing
3440 def get_view_names(self, connection, dbname, owner, schema, **kw):
3441 tables = ischema.tables
3442 s = (
3443 sql.select(tables.c.table_name)
3444 .where(
3445 sql.and_(
3446 tables.c.table_schema == owner,
3447 tables.c.table_type == "VIEW",
3448 )
3449 )
3450 .order_by(tables.c.table_name)
3451 )
3452 view_names = [r[0] for r in connection.execute(s)]
3453 return view_names
3454
3455 @reflection.cache
3456 def _internal_has_table(self, connection, tablename, owner, **kw):

Callers

nothing calls this directly

Calls 5

order_byMethod · 0.45
whereMethod · 0.45
selectMethod · 0.45
and_Method · 0.45
executeMethod · 0.45

Tested by

no test coverage detected