mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-22 01:20:39 +00:00
cql3: Make statement_type printable
This commit is contained in:
@@ -32,6 +32,22 @@ namespace statements {
|
||||
|
||||
::shared_ptr<column_identifier> modification_statement::CAS_RESULT_COLUMN = ::make_shared<column_identifier>("[applied]", false);
|
||||
|
||||
std::ostream&
|
||||
operator<<(std::ostream& out, modification_statement::statement_type t) {
|
||||
switch (t) {
|
||||
case modification_statement::statement_type::UPDATE:
|
||||
out << "UPDATE";
|
||||
break;
|
||||
case modification_statement::statement_type::INSERT:
|
||||
out << "INSERT";
|
||||
break;
|
||||
case modification_statement::statement_type::DELETE:
|
||||
out << "DELETE";
|
||||
break;
|
||||
}
|
||||
return out;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -824,6 +824,8 @@ public:
|
||||
};
|
||||
};
|
||||
|
||||
std::ostream& operator<<(std::ostream& out, modification_statement::statement_type t);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user