when adding Tiger data, check first if database is in frozen state

This commit is contained in:
Marc Tobias
2023-05-02 18:37:36 +02:00
parent 5751686fdc
commit e5f332bd71
5 changed files with 36 additions and 4 deletions

View File

@@ -50,3 +50,9 @@ def drop_flatnode_file(fpath: Optional[Path]) -> None:
"""
if fpath and fpath.exists():
fpath.unlink()
def is_frozen(conn: Connection) -> bool:
""" Returns true if database is in a frozen state
"""
return conn.table_exists('place') is False