table_exists¶
-
PostgresWrapper.table_exists(table: str, schema: str = None) → bool[source]¶ Returns
Trueif the tabletableexists 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
Trueif the tabletableexists in the database, otherwiseFalse.