X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/0add25e33500110a36458a0bb3fa292d408d2b85..122ecd46269d48a8b2aacba2474311c0400d2a9d:/src/nominatim_db/db/utils.py?ds=sidebyside 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,