table_exists

View page source

Check if A Database Table Exists

Prototype

# at_cascade.table_exists
def table_exists(
   connection,
   table_name
) :
   assert type(table_name) == str
   # ...
   assert type(exists) == bool
   return exists

connection

s a dismod_at connection to the database.

table_name

is the name of the table.

result

is either True (table exists) or False (table does not exist).