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