table_exists

GenericDBWrapper.table_exists(table: str) → bool[source]

Returns True if the table table exists in the database, otherwise False.

>>> 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 table table exists in the database, otherwise False.