[Tile-serving] [openstreetmap/osm2pgsql] Middle-pgsql: cleanup table access code (#890)

Sarah Hoffmann notifications at github.com
Sat Dec 15 10:29:09 UTC 2018


* Convert table_desc into a full class that also provides functions for most of the SQL accesses.
* Convert C strings for SQL commands into std::string. Fixes #731 .
* Remove SQL command strings that are fixed for all tables and replace them with wrapper functions. 
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/osm2pgsql/pull/890

-- Commit Summary --

  * middle-pgsql: move stop and end_copy into table desc
  * middle-pgsql: cleanup SQL strings
  * middle-pgsql: move connect and destruct to table_desc
  * remove unused enum
  * middle-pgsql: remove unused create_index SQL
  * middle-pgsql: use std::string for prepared queries
  * middle-pgsql: add wrapper for simple prepared queries
  * minor variable cleanup
  * middle-pgsql: add function for prepared queries with osmid param

-- File Changes --

    M middle-pgsql.cpp (676)
    M middle-pgsql.hpp (75)

-- Patch Links --

https://github.com/openstreetmap/osm2pgsql/pull/890.patch
https://github.com/openstreetmap/osm2pgsql/pull/890.diff

-- 
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/pull/890
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20181215/e0b1e3bc/attachment.html>


More information about the Tile-serving mailing list