X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/9659afbade47d1ec6d5359b2b21e1e874516ed80..061c52b3979811113989f4430cb4c57f149eb643:/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,