from typing import Optional
from pathlib import Path
-from psycopg2 import sql as pysql
+from psycopg import sql as pysql
from ..db.connection import Connection, drop_tables, table_exists
'wikipedia_%'
]
+
def drop_update_tables(conn: Connection) -> None:
""" Drop all tables only necessary for updating the database from
OSM replication data.
if fpath and fpath.exists():
fpath.unlink()
+
def is_frozen(conn: Connection) -> bool:
""" Returns true if database is in a frozen state
"""
-
return table_exists(conn, 'place') is False