X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/0add25e33500110a36458a0bb3fa292d408d2b85..98c1b923fc090f830b7b3a575e3d08ba399bd870:/src/nominatim_db/db/utils.py diff --git a/src/nominatim_db/db/utils.py b/src/nominatim_db/db/utils.py index 02e5bd2d..63eba72c 100644 --- a/src/nominatim_db/db/utils.py +++ b/src/nominatim_db/db/utils.py @@ -18,6 +18,7 @@ from ..errors import UsageError LOG = logging.getLogger() + def _pipe_to_proc(proc: 'subprocess.Popen[bytes]', fdesc: Union[IO[bytes], gzip.GzipFile]) -> int: assert proc.stdin is not None @@ -31,6 +32,7 @@ def _pipe_to_proc(proc: 'subprocess.Popen[bytes]', return len(chunk) + def execute_file(dsn: str, fname: Path, ignore_errors: bool = False, pre_code: Optional[str] = None,