\(\newcommand{\B}[1]{ {\bf #1} }\) \(\newcommand{\R}[1]{ {\rm #1} }\)
table_exists¶
View page sourceCheck 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).