table_exists¶
-
GenericDBWrapper.
table_exists
(table: str) → 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
.