]> git.openstreetmap.org Git - nominatim.git/blobdiff - docs/library/Low-Level-DB-Access.md
Merge pull request #3558 from otbutz/patch-1
[nominatim.git] / docs / library / Low-Level-DB-Access.md
index acd93fd1f032e3a45955239d105930c033ec48ae..9669906122f31fcbfae3b925dcdd0673cbcbf7bb 100644 (file)
@@ -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