r"""Return all table names within a particular schema. The names are expected to be real tables only, not views. Views are instead returned using the :meth:`_reflection.Inspector.get_view_names` and/or :meth:`_reflection.Inspector.get_materialized_view_names`
(
self, schema: Optional[str] = None, **kw: Any
)
| 376 | ) |
| 377 | |
| 378 | def get_table_names( |
| 379 | self, schema: Optional[str] = None, **kw: Any |
| 380 | ) -> List[str]: |
| 381 | r"""Return all table names within a particular schema. |
| 382 | |
| 383 | The names are expected to be real tables only, not views. |
| 384 | Views are instead returned using the |
| 385 | :meth:`_reflection.Inspector.get_view_names` and/or |
| 386 | :meth:`_reflection.Inspector.get_materialized_view_names` |
| 387 | methods. |
| 388 | |
| 389 | :param schema: Schema name. If ``schema`` is left at ``None``, the |
| 390 | database's default schema is |
| 391 | used, else the named schema is searched. If the database does not |
| 392 | support named schemas, behavior is undefined if ``schema`` is not |
| 393 | passed as ``None``. For special quoting, use :class:`.quoted_name`. |
| 394 | :param \**kw: Additional keyword argument to pass to the dialect |
| 395 | specific implementation. See the documentation of the dialect |
| 396 | in use for more information. |
| 397 | |
| 398 | .. seealso:: |
| 399 | |
| 400 | :meth:`_reflection.Inspector.get_sorted_table_and_fkc_names` |
| 401 | |
| 402 | :attr:`_schema.MetaData.sorted_tables` |
| 403 | |
| 404 | """ |
| 405 | |
| 406 | with self._operation_context() as conn: |
| 407 | return self.dialect.get_table_names( |
| 408 | conn, schema, info_cache=self.info_cache, **kw |
| 409 | ) |
| 410 | |
| 411 | def has_table( |
| 412 | self, table_name: str, schema: Optional[str] = None, **kw: Any |
nothing calls this directly
no test coverage detected