Database.check_empty_table¶
-
Database.
check_empty_table
(table_name: str) → bool[source]¶ Checks whether a table is empty or not
- Parameters
table_name¶ (str) – Name of the table where the column has to be retrieved from.
- Returns
True if the table is empty, False if it is not empty.
- Return type
- Raises
psycopg2.Error – Base exception for all kind of database errors.