MCPcopy Create free account
hub / github.com/Restream/reindexer / AddCondition

Method AddCondition

cpp_src/core/query/sql/sql_formatters.cc:91–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91void SingleLineSqlFormatter::ConditionsFormatter::AddCondition(OpType op, bool /*isNextOr*/) {
92 if (first_) {
93 if (op == OpNot) {
94 baseFormatter_.ser_ << "NOT";
95 baseFormatter_.Next();
96 }
97 } else {
98 baseFormatter_.Next();
99 baseFormatter_.ser_ << kOpNames[op];
100 }
101 first_ = false;
102}
103
104static constexpr std::string_view indentStr{" "};
105

Callers 2

DumpSingleJoinQueryMethod · 0.80
dumpWhereEntriesMethod · 0.80

Calls 3

NextMethod · 0.45
closeParenthesisMethod · 0.45
openParenthesisMethod · 0.45

Tested by

no test coverage detected