table_exists¶
-
PostgresWrapper.
table_exists
(table: str, schema: str = None) → bool[source]¶ Returns
True
if the tabletable
exists in the database, otherwiseFalse
.>>> GenericDBWrapper().table_exists('some_table') True >>> GenericDBWrapper().table_exists('other_table') False
- Parameters
table (str) – The table to check for existence.
- Return bool exists
True
if the tabletable
exists in the database, otherwiseFalse
.