X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/0add25e33500110a36458a0bb3fa292d408d2b85..98c1b923fc090f830b7b3a575e3d08ba399bd870:/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