| 571 | } |
| 572 | |
| 573 | static std::string getHelpHeader() |
| 574 | { |
| 575 | return |
| 576 | "usage: clickhouse-local [initial table definition] [--query <query>]\n" |
| 577 | |
| 578 | "clickhouse-local allows to execute SQL queries on your data files via single command line call." |
| 579 | " To do so, initially you need to define your data source and its format." |
| 580 | " After you can execute your SQL queries in usual manner.\n" |
| 581 | |
| 582 | "There are two ways to define initial table keeping your data." |
| 583 | " Either just in first query like this:\n" |
| 584 | " CREATE TABLE <table> (<structure>) ENGINE = File(<input-format>, <file>);\n" |
| 585 | "Either through corresponding command line parameters --table --structure --input-format and --file."; |
| 586 | } |
| 587 | |
| 588 | static std::string getHelpFooter() |
| 589 | { |