[Tile-serving] [openstreetmap/osm2pgsql] [Flex] Provide conninfo to Lua script (#1212)

mmd notifications at github.com
Wed Jun 17 10:23:01 UTC 2020


I added a number of use cases to https://github.com/openstreetmap/osm2pgsql/issues/1211#issuecomment-645287526, which all depend on database access, and are equally relevant to this issue.

My assumption is that osm2pgsql will not provide a generic interface to execute database queries (both SELECTs, UPDATES, INSERT, etc.), hence the need for an external Lua library to access the database.

To avoid hard-coding database names, or doing any strange tricks to extracts the relevant parameters from the osm2pgsql command line, having the connection parameters readily available in Lua seemed like the least intrusive option.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/1212#issuecomment-645289137
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20200617/06245312/attachment.htm>


More information about the Tile-serving mailing list