Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultCommandName = "sql-parser-go" DefaultErrorHeader = "SP" DefaultDaemon = false DefaultBaseDir = constant.CurrentDir DefaultLogDir = "./log" MinLogMaxSize = 1 MaxLogMaxSize = constant.MaxInt MinLogMaxDays = 1 MaxLogMaxDays = constant.MaxInt MinLogMaxBackups = 1 MaxLogMaxBackups = constant.MaxInt NFA = "nfa" DFA = "dfa" LL = "ll" DefaultLexFiniteAutomata = NFA DefaultParseLexerFiniteAutomata = NFA DefaultParseParserFiniteAutomata = LL )
global constant
View Source
const ( ConfKey = "config" LogFileNameKey = "log.fileName" LogLevelKey = "log.level" LogFormatKey = "log.format" LogMaxSizeKey = "log.maxSize" LogMaxDaysKey = "log.maxDays" LogMaxBackupsKey = "log.maxBackups" LexFiniteAutomataKey = "lex.finiteAutomata" ParseLexerFiniteAutomataKey = "parse.Lexer.finiteAutomata" ParseParserFiniteAutomataKey = "parse.parser.finiteAutomata" SQLKey = "sql" )
configuration constant
Variables ¶
Functions ¶
func SetDefaultConfig ¶
func SetDefaultConfig(baseDir string)
SetDefaultConfig set default configuration, it is the lowest priority
func TrimSpaceOfArg ¶
TrimSpaceOfArg trims spaces of given argument
func ValidateConfig ¶
func ValidateConfig() (err error)
ValidateConfig validates if the configuration is valid
func ValidateLex ¶
func ValidateLex() error
func ValidateParse ¶
func ValidateParse() error
func ValidateSQL ¶
func ValidateSQL() error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.