#ifndef QUERY_CONNECTION_HPP #define QUERY_CONNECTION_HPP #include "matador/sql/connection_intermediates.hpp" #include "matador/sql/dialect.hpp" #include "matador/sql/query_builder.hpp" #include namespace matador::sql { class connection { public: connection(); query_create_intermediate create(); query_drop_intermediate drop(); query_select_intermediate select(std::initializer_list column_names); query_insert_intermediate insert(); query_update_intermediate update(const std::string &table); query_delete_intermediate remove(); query_result fetch(const std::string &sql); std::pair execute(const std::string &sql); private: dialect dialect_; query_builder query_; }; } #endif //QUERY_CONNECTION_HPP