myTinySQL v0.2.0-2-g5000098
A tiny SQL interpreter over fixed-width text files
Loading...
Searching...
No Matches
Public Attributes | List of all members
anonymous_namespace{main.cpp}::Options Struct Reference

The command-line options, after parsing. More...

Public Attributes

std::optional< std::string > sqlFile
 --sqlfile: the script to run (- for standard input).
 
bool http = false
 --http: start the browser server.
 
std::optional< std::uint16_t > port
 --port: the server port, if not the default.
 
std::optional< std::vector< std::string > > allow
 --allow: client IP prefixes, if given.
 
std::filesystem::path dataDir = "data"
 --data: the directory holding the tables.
 
std::filesystem::path webDir = "web"
 --web: the directory holding the browser page.
 

Detailed Description

The command-line options, after parsing.

Definition at line 45 of file main.cpp.

Member Data Documentation

◆ allow

std::optional<std::vector<std::string> > anonymous_namespace{main.cpp}::Options::allow

--allow: client IP prefixes, if given.

Definition at line 49 of file main.cpp.

◆ dataDir

std::filesystem::path anonymous_namespace{main.cpp}::Options::dataDir = "data"

--data: the directory holding the tables.

Definition at line 50 of file main.cpp.

◆ http

bool anonymous_namespace{main.cpp}::Options::http = false

--http: start the browser server.

Definition at line 47 of file main.cpp.

◆ port

std::optional<std::uint16_t> anonymous_namespace{main.cpp}::Options::port

--port: the server port, if not the default.

Definition at line 48 of file main.cpp.

◆ sqlFile

std::optional<std::string> anonymous_namespace{main.cpp}::Options::sqlFile

--sqlfile: the script to run (- for standard input).

Definition at line 46 of file main.cpp.

◆ webDir

std::filesystem::path anonymous_namespace{main.cpp}::Options::webDir = "web"

--web: the directory holding the browser page.

Definition at line 51 of file main.cpp.


The documentation for this struct was generated from the following file: