]> git.openstreetmap.org Git - nominatim.git/commit
Add ltree categories column to the API placex schema
authorItz-Agasta <rupamgolui69@gmail.com>
Mon, 6 Jul 2026 12:00:29 +0000 (17:30 +0530)
committerItz-Agasta <rupamgolui69@gmail.com>
Thu, 30 Jul 2026 07:19:27 +0000 (12:49 +0530)
commit986e4da7dbe8275aa093476accf458b253badc0a
tree7b91a78c5645fb96088cabd1aa0eaac996077f4c
parent96960b436388c28bec1536d533f55570ae3863ec
Add ltree categories column to the API placex schema

Introduce a CategoryArray SQLAlchemy type that maps to the native ltree[] column on PostgreSQL and to comma-separated text on SQLite. Register the categories column on the placex table so the search side can query it.
src/nominatim_api/sql/sqlalchemy_schema.py
src/nominatim_api/sql/sqlalchemy_types/__init__.py
src/nominatim_api/sql/sqlalchemy_types/ltree.py [new file with mode: 0644]