Method
get_table_names
(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 |
Tested by
no test coverage detected