X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/ae8694a6a6862d7cb66cd91102d2802c9899e7cf..d984100e23d28253b3659e7b628cde2c8b436cf8:/src/nominatim_api/connection.py?ds=sidebyside diff --git a/src/nominatim_api/connection.py b/src/nominatim_api/connection.py index e104745e..04268dc3 100644 --- a/src/nominatim_api/connection.py +++ b/src/nominatim_api/connection.py @@ -18,6 +18,7 @@ from .typing import SaFromClause from .sql.sqlalchemy_schema import SearchTables from .sql.sqlalchemy_types import Geometry from .logging import log +from .config import Configuration T = TypeVar('T') @@ -31,9 +32,11 @@ class SearchConnection: def __init__(self, conn: AsyncConnection, tables: SearchTables, - properties: Dict[str, Any]) -> None: + properties: Dict[str, Any], + config: Configuration) -> None: self.connection = conn self.t = tables + self.config = config self._property_cache = properties self._classtables: Optional[Set[str]] = None self.query_timeout: Optional[int] = None