Commit 58c1da55 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

DatabaseWriter: use prepared statements for more performance and security

parent 52573bc1
Loading
Loading
Loading
Loading
+214 −103

File changed.

Preview size limit exceeded, changes collapsed.

+6 −0
Original line number Diff line number Diff line
@@ -73,6 +73,12 @@ namespace allpix {
    private:
        Messenger* messenger_;

        /**
         * @brief Submit "prepared statements" to the database connection(s)
         * @param connection  Database connection to be used
         */
        static void prepare_statements(std::shared_ptr<pqxx::connection> connection);

        // Object names to include or exclude from writing
        std::set<std::string> include_;
        std::set<std::string> exclude_;