X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/bc75e5626ec59523707b842022ecf0bdc159cf06..1f0796778754d8df0dfab9dd01302e26a397f064:/src/nominatim_db/tools/freeze.py diff --git a/src/nominatim_db/tools/freeze.py b/src/nominatim_db/tools/freeze.py index c4eedb43..a308d0eb 100644 --- a/src/nominatim_db/tools/freeze.py +++ b/src/nominatim_db/tools/freeze.py @@ -28,6 +28,7 @@ UPDATE_TABLES = [ 'wikipedia_%' ] + def drop_update_tables(conn: Connection) -> None: """ Drop all tables only necessary for updating the database from OSM replication data. @@ -49,8 +50,8 @@ 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 table_exists(conn, 'place') is False