#ifndef QUERY_QUERY_DATA_HPP #define QUERY_QUERY_DATA_HPP #include "matador/sql/column_definition.hpp" #include "matador/sql/table.hpp" #include "matador/utils/types.hpp" namespace matador::sql { enum class sql_command { SQL_CMD_UNKNOWN, SQL_CMD_CREATE, SQL_CMD_UPDATE, SQL_CMD_INSERT, SQL_CMD_DELETE, SQL_CMD_SELECT, SQL_CMD_DROP, SQL_CMD_ALTER }; struct query_context { std::string sql; sql_command command{}; std::string command_name; sql::table table{""}; std::vector prototype; std::vector result_vars; std::vector bind_vars; std::vector bind_types; std::unordered_map column_aliases; std::unordered_map table_aliases; }; } #endif //QUERY_QUERY_DATA_HPP