]> git.openstreetmap.org Git - nominatim.git/commit
introduce jinja2 for preprocessing SQL
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 3 Mar 2021 16:37:22 +0000 (17:37 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 3 Mar 2021 16:51:08 +0000 (17:51 +0100)
commitd2bd6aa78dc467aea4d395c9406d7088aca233ce
tree0acb83ad8fc181814a0fca9ff2c77ea84c1a87a0
parent8ea7e043634457b4b588ed53c310c94885fc105a
introduce jinja2 for preprocessing SQL

Replaces various hand-crafted replacements of varying format with
a single Jinja2 templating mechanism. Allows full access to
configuration if necessary.
lib-sql/functions.sql [new file with mode: 0644]
lib-sql/functions/address_lookup.sql
lib-sql/functions/normalization.sql
lib-sql/functions/partition-functions.sql [moved from lib-sql/partition-functions.src.sql with 80% similarity]
lib-sql/functions/place_triggers.sql
lib-sql/functions/placex_triggers.sql
lib-sql/functions/utils.sql
nominatim/db/sql_preprocessor.py [new file with mode: 0644]
nominatim/tools/refresh.py
test/python/test_db_sql_preprocessor.py [new file with mode: 0644]
test/python/test_tools_refresh_create_functions.py