linterror

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL