Documentation ¶ Index ¶ func CalcLintLine(source, scope []byte, goal func(line []byte) bool) (line string, num int) type LintError func New(script script.Script, stmt string, lint string, getLine func(line []byte) bool) LintError func (e LintError) Error() string func (e LintError) StmtName() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func CalcLintLine ¶ func CalcLintLine(source, scope []byte, goal func(line []byte) bool) (line string, num int) CalcLintLine calculates the lint error line number of the SQL script Types ¶ type LintError ¶ type LintError struct { ScriptName string // 脚本名称 Stmt string // SQL 语句 Lint string // lint 提示 Line string // lint 提示所在的行内容 LintNo int // lint 提示所在行行号 } func New ¶ func New(script script.Script, stmt string, lint string, getLine func(line []byte) bool) LintError func (LintError) Error ¶ func (e LintError) Error() string func (LintError) StmtName ¶ func (e LintError) StmtName() string Source Files ¶ View all Source files calcu_line_num.go error.go Click to show internal directories. Click to hide internal directories.