| 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): |