mybatis

package
v1.2204.0-pre1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSQLFromFile

func GetSQLFromFile(file string, skipErrorQuery bool) (r []driver.Node, err error)

func GetSQLFromPath

func GetSQLFromPath(pathName string, skipErrorQuery bool) (allSQL []driver.Node, err error)

func Parse

func Parse(_ context.Context, sqlText string) ([]driver.Node, error)

func ParseSql

func ParseSql(sql string) ([]ast.Node, error)

func ReadFileContent

func ReadFileContent(file string) (content string, err error)

Types

type MyBatis

type MyBatis struct {
	// contains filtered or unexported fields
}

func New

func New(params *Params, l *logrus.Entry, c *scanner.Client) (*MyBatis, error)

func (*MyBatis) Run

func (mb *MyBatis) Run(ctx context.Context) error

func (*MyBatis) SQLs

func (mb *MyBatis) SQLs() <-chan scanners.SQL

func (*MyBatis) Upload

func (mb *MyBatis) Upload(ctx context.Context, sqls []scanners.SQL) error

type Params

type Params struct {
	XMLDir         string
	APName         string
	SkipErrorQuery bool
}

Jump to

Keyboard shortcuts

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