X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/cafd8e2b1ed6ce823fb0bf66673d98450372457c..ea98317370d0138ed1244d6a5fd884ce32f9b77a:/docs/library/Low-Level-DB-Access.md diff --git a/docs/library/Low-Level-DB-Access.md b/docs/library/Low-Level-DB-Access.md index acd93fd1..96699061 100644 --- a/docs/library/Low-Level-DB-Access.md +++ b/docs/library/Low-Level-DB-Access.md @@ -24,12 +24,11 @@ the placex table: ``` import asyncio -from pathlib import Path import sqlalchemy as sa -from nominatim.api import NominatimAPIAsync +from nominatim_api import NominatimAPIAsync async def print_table_size(): - api = NominatimAPIAsync(Path('.')) + api = NominatimAPIAsync() async with api.begin() as conn: cnt = await conn.scalar(sa.select(sa.func.count()).select_from(conn.t.placex)) @@ -45,7 +44,7 @@ asyncio.run(print_table_size()) ## SearchConnection class -::: nominatim.api.SearchConnection +::: nominatim_api.SearchConnection options: members: - scalar