Versions in this module Expand all Collapse all v0 v0.10.5 Oct 12, 2021 v0.10.4 Oct 11, 2021 v0.10.3 Oct 11, 2021 v0.10.2 Oct 11, 2021 v0.10.1 Oct 11, 2021 v0.10.0 Oct 11, 2021 Changes in this version + const AND + const BIT_LITERAL + const COMMENT + const DESCRIPTION + const DEV + const FLOAT + const GE + const HEX + const HEXNUM + const ID + const INT + const INTEGRAL + const LAST_UPDATED + const LE + const LEX_ERROR + const LIST_ARG + const LOCAL + const NAME + const NE + const NULL_SAFE_EQUAL + const OR + const PD_BEGIN + const PD_END + const PD_FILE + const PD_MIG + const PD_REF + const PROD + const SCRIPT + const SHIFT_LEFT + const SHIFT_RIGHT + const STRING + const TEST + const UNUSED + const UPDATED_BY + const VALUE_ARG + func KeywordString(id int) string + func RecompileSQL(filePathIn string, filePathOut string, env string, keywords map[string]string) + type Lexer struct + func NewLexer(tkn *Tokenizer) *Lexer + func (lex *Lexer) Next() (int, []byte) + func (lex *Lexer) Peek() (int, []byte) + type NestedSQLQuery struct + File string + Key string + Name string + type SQLDirectives struct + Description string + Dev struct{ ... } + Int struct{ ... } + Local struct{ ... } + Name string + Prod struct{ ... } + func Parse(sql string) (*SQLDirectives, error) + type SQLMngr struct + DirectiveKeyOverrides map[string]string + Directives *SQLDirectives + Env string + Err error + Getter getter + Migrations map[string][]*sqlMig.SQLMigrationStrategy + Parsed string + Raw string + Root map[string]string + Stack []*SQLStack + StackDepth int + func New(script string, env string, ...) SQLMngr + func (sql *SQLMngr) Compile() string + type SQLStack struct + Directives *SQLDirectives + Level int + Nested bool + SQL string + SQuery *NestedSQLQuery + type Tokenizer struct + AllowComments bool + ForceEOF bool + InStream io.Reader + LastError error + Position int + func NewStringTokenizer(sql string) *Tokenizer + func NewTokenizer(r io.Reader) *Tokenizer + func (tkn *Tokenizer) Error(err string) + func (tkn *Tokenizer) Scan() (int, []byte)