2019-04-18 23:29:32 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <Core/Field.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
struct SettingChange
|
|
|
|
{
|
|
|
|
String name;
|
|
|
|
Field value;
|
2020-04-17 19:54:53 +00:00
|
|
|
SettingChange() {}
|
|
|
|
|
|
|
|
SettingChange(const String & name_, const Field value_)
|
|
|
|
: name(name_)
|
|
|
|
, value(value_) {}
|
2019-10-30 21:37:28 +00:00
|
|
|
|
|
|
|
friend bool operator ==(const SettingChange & lhs, const SettingChange & rhs) { return (lhs.name == rhs.name) && (lhs.value == rhs.value); }
|
|
|
|
friend bool operator !=(const SettingChange & lhs, const SettingChange & rhs) { return !(lhs == rhs); }
|
2019-04-18 23:29:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
using SettingsChanges = std::vector<SettingChange>;
|
|
|
|
|
|
|
|
}
|