MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / get_table_names

Method get_table_names

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

Source from the content-addressed store, hash-verified

3421 @reflection.cache
3422 @_db_plus_owner_listing
3423 def get_table_names(self, connection, dbname, owner, schema, **kw):
3424 tables = ischema.tables
3425 s = (
3426 sql.select(tables.c.table_name)
3427 .where(
3428 sql.and_(
3429 tables.c.table_schema == owner,
3430 tables.c.table_type == "BASE TABLE",
3431 )
3432 )
3433 .order_by(tables.c.table_name)
3434 )
3435 table_names = [r[0] for r in connection.execute(s)]
3436 return table_names
3437
3438 @reflection.cache
3439 @_db_plus_owner_listing

Callers 1

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