Database.check_table

Database.check_table(table_name)bool[source]

Checks if a table exists.

Parameters

table_name (str) – The name of the table to be checked

Returns

True if the table exists, False otherwise.

Return type

bool

Raises

psycopg2.Error – Base exception for all kind of database errors