[Tile-serving] [openstreetmap/osm2pgsql] Flex: Add support for configuring table indexes in the Lua config (PR #1847)

Jochen Topf notifications at github.com
Wed Dec 7 10:45:55 UTC 2022


@joto commented on this pull request.



> +#include <string>
+#include <vector>
+
+/**
+ * This class represents a database index.
+ */
+class flex_index_t
+{
+public:
+    explicit flex_index_t(std::string method) : m_method(std::move(method)) {}
+
+    std::string const &method() const noexcept { return m_method; }
+
+    std::string columns() const;
+
+    void set_columns(std::string const &columns)

This is not intended for adding columns one at a time, but an overload of the `void set_columns(std::vector<std::string> const &columns)` function so that we don't have to create a vector if all we want is to add a single column.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1847#discussion_r1042049155
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/osm2pgsql/pull/1847/review/1208191485 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20221207/97b1b99b/attachment.htm>


More information about the Tile-serving mailing list