parser

package module
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: Apache-2.0 Imports: 6 Imported by: 2

README

mybatis-mapper-2-sql

Generate SQL statements from the MyBatis3 mapper XML file

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseXML

func ParseXML(data string) (string, error)

ParseXML is a parser for parse all query in XML to string.

func ParseXMLQuery

func ParseXMLQuery(data string, skipErrorQuery bool) ([]string, error)

ParseXMLQuery is a parser for parse all query in XML to []string one by one; you can set `skipErrorQuery` true to ignore invalid query.

func ParseXMLs added in v0.4.0

func ParseXMLs(data []XmlFile, skipErrorQuery bool) ([]ast.StmtInfo, error)

ParseXMLs is a parser for parse all query in several XML files to []ast.StmtInfo one by one; you can set `skipErrorQuery` true to ignore invalid query.

Types

type XmlFile added in v0.5.0

type XmlFile struct {
	FilePath string
	Content  string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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