26 lines
616 B
C++
26 lines
616 B
C++
#ifndef QUERY_KEY_VALUE_PAIR_HPP
|
|
#define QUERY_KEY_VALUE_PAIR_HPP
|
|
|
|
#include "matador/sql/column.hpp"
|
|
|
|
#include "matador/utils/types.hpp"
|
|
|
|
namespace matador::query::internal {
|
|
|
|
class key_value_pair {
|
|
public:
|
|
key_value_pair(const sql::column &col, utils::database_type value);
|
|
key_value_pair(std::string name, utils::database_type value);
|
|
key_value_pair(const char *name, utils::database_type value);
|
|
|
|
[[nodiscard]] const std::string& name() const;
|
|
[[nodiscard]] const utils::database_type& value() const;
|
|
|
|
private:
|
|
std::string name_;
|
|
utils::database_type value_;
|
|
};
|
|
|
|
}
|
|
#endif //QUERY_KEY_VALUE_PAIR_HPP
|