linterror

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 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 // the script name
	Stmt       string // the SQL statement
	Lint       string // the error lint info
	Line       string // the error line content
	LintNo     int    // the error line No
}

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