MCPcopy Create free account
hub / github.com/ByConity/ByConity / getHelpFooter

Function getHelpFooter

programs/local/LocalServer.cpp:588–596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

586}
587
588static std::string getHelpFooter()
589{
590 return
591 "Example printing memory used by each Unix user:\n"
592 "ps aux | tail -n +2 | awk '{ printf(\"%s\\t%s\\n\", $1, $4) }' | "
593 "clickhouse-local -S \"user String, mem Float64\" -q"
594 " \"SELECT user, round(sum(mem), 2) as mem_total FROM table GROUP BY user ORDER"
595 " BY mem_total DESC FORMAT PrettyCompact\"";
596}
597
598void LocalServer::init(int argc, char ** argv)
599{

Callers 1

initMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected