ibis.backends.base.BaseBackend.list_tables

abstract BaseBackend.list_tables(like: Optional[str] = None, database: Optional[str] = None) list[str]

Return the list of table names in the current database.

For some backends, the tables may be files in a directory, or other equivalent entities in a SQL database.

Parameters
  • like (str, optional) – A pattern in Python’s regex format.

  • database (str, optional) – The database to list tables of, if not the current one.

Returns

The list of the table names that match the pattern like.

Return type

list of str