[Tile-serving] [osm2pgsql] Refactor table_t constructor (#438)
Sarah Hoffmann
notifications at github.com
Tue Aug 18 19:52:24 UTC 2015
> @@ -35,12 +35,24 @@ class database_options_t {
> std::string conninfo() const;
> };
>
> +class table_options_t {
> +public:
> + table_options_t();
> + int hstore_mode; ///< add an additional hstore column with objects key/value pairs, and what type of hstore column
> + bool hstore_match_only; ///< only copy rows that match an explicitly listed key
> + std::vector<std::string> hstore_columns; ///< list of columns that should be written into their own hstore column
> + bool enable_hstore_index; ///< add an index on the hstore column
> + boost::optional<std::string> tblsmain_index; ///< Pg Tablespace to store indexes on main tables (no default TABLESPACE)
> + boost::optional<std::string> tblsmain_data; ///< Pg Tablespace to store main tables (no default TABLESPACE)
These two should be renamed into table_space_index/data as this class as defined is for tables and general and the 'main' is just confusing.
Two other personal preferences (ignore at will): make the class a struct (because of the public members) and use default member initializers instead of a default constructor(to keep the code compact).
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/438/files#r37344846
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20150818/2dbddd83/attachment.html>
More information about the Tile-serving
mailing list