MCPcopy Create free account
hub / github.com/activeloopai/deeplake / printOrderBy

Function printOrderBy

cpp/3rd_party/sql-parser/src/util/sqlhelper.cpp:211–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211void printOrderBy(std::ostream& s, const std::vector<OrderDescription*>* expr, uintmax_t numIndent)
212{
213 if (!expr) {
214 return;
215 }
216 for (const auto& order_description : *expr) {
217 printExpression(s, order_description->expr, numIndent);
218 if (order_description->type == kOrderAsc) {
219 inprint(s, "ascending", numIndent);
220 } else {
221 inprint(s, "descending", numIndent);
222 }
223 }
224}
225
226void printSelectStatementInfo(std::ostream& s, const SelectStatement* stmt, uintmax_t numIndent)
227{

Callers 1

printSelectStatementInfoFunction · 0.85

Calls 2

printExpressionFunction · 0.85
inprintFunction · 0.85

Tested by

no test coverage detected