sqlbear

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSQLInfo

func GetSQLInfo(sql string) (sqlInfo *parser.Result, err error)

GetSQLInfo Get SQL Information

Types

type Audit

type Audit struct {
	Query  string              // 查询语句
	Stmt   sqlparser.Statement // 通过Vitess解析出的抽象语法树
	TiStmt []ast.StmtNode      // 通过TiDB解析出的抽象语法树
}

func NewAudit

func NewAudit(sql, charset, collation string) (*Audit, error)

NewQuery4Audit return a struct for Audit

Jump to

Keyboard shortcuts

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