24 lines
459 B
C++
24 lines
459 B
C++
#ifndef QUERY_KEY_VALUE_PAIR_HPP
|
|
#define QUERY_KEY_VALUE_PAIR_HPP
|
|
|
|
#include "matador/sql/any_type.hpp"
|
|
|
|
namespace matador::sql {
|
|
|
|
class key_value_pair
|
|
{
|
|
public:
|
|
key_value_pair(const 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
|