|
myTinySQL v0.2.0-2-g5000098
A tiny SQL interpreter over fixed-width text files
|
Classes | |
| struct | Options |
| The command-line options, after parsing. More... | |
Functions | |
| std::vector< std::string > | splitList (std::string_view text) |
| Splits a comma-separated list. | |
| Options | parseOptions (int argc, char **argv) |
Parses the command line. Options take their value as --name=value or --name value. | |
| int | runScript (Session &session, std::istream &in) |
| Runs a whole script and prints every result. | |
| int | runInteractive (Session &session) |
Reads statements at a tinysql> prompt until end of input (Ctrl+D). | |
Variables | |
| constexpr std::string_view | kUsage |
The text printed by --help and after a wrong option. | |
| Options anonymous_namespace{main.cpp}::parseOptions | ( | int | argc, |
| char ** | argv | ||
| ) |
Parses the command line. Options take their value as --name=value or --name value.
| std::invalid_argument | On an unknown option, a missing or bad value, or --sqlfile together with --http. |
| int anonymous_namespace{main.cpp}::runInteractive | ( | Session & | session | ) |
| int anonymous_namespace{main.cpp}::runScript | ( | Session & | session, |
| std::istream & | in | ||
| ) |
| std::vector< std::string > anonymous_namespace{main.cpp}::splitList | ( | std::string_view | text | ) |
|
constexpr |
The text printed by --help and after a wrong option.