mybatis

package
v1.2112.0-pre4 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2021 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) (r []driver.Node, err error)

func GetSQLFromPath

func GetSQLFromPath(pathName string) (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
}

Jump to

Keyboard shortcuts

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