parser

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func From

func From(dsn string, pattern ...string) (*spec.DXL, error)

func NewSqlScanner

func NewSqlScanner(s string) *sqlScanner

func Parse

func Parse(sql string) (*spec.DXL, error)

Parse parses a SQL statement string and returns a spec.DXL.

Types

type Index

type Index struct {
	Items []Item
}

Index is simple indx info

type Item

type Item struct {
	SelectColumns string
	Table         string
	UpdateSet     string
	WhereClause   string
	IndexNameJoin string
}

type Unique

type Unique struct {
	SelectColumns  string
	Table          string
	UpdateSet      string
	WhereClause    string
	UniqueNameJoin string
}

Unique is a unique index info.

Jump to

Keyboard shortcuts

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