Documentation
¶
Index ¶
- type AST
- func (a AST) Alter() (*types.Alter, error)
- func (a AST) Create() (*types.Create, error)
- func (a AST) Delete() (*types.Delete, error)
- func (a AST) Drop() (*types.Drop, error)
- func (a AST) Insert() (*types.Insert, error)
- func (a AST) Is(s types.Statement) bool
- func (a AST) Select() (*types.Select, error)
- func (a AST) Type() types.Statement
- func (a AST) Update() (*types.Update, error)
- func (a AST) Use() (*types.Use, error)
- type ASTResult
- type ASTs
- type ParseResult
- type Parser
- func (p *Parser) Astify(sql string, opt types.Option) (*ASTResult, error)
- func (p *Parser) ColumnList(sql string, opt types.Option) ([]string, error)
- func (p *Parser) Parse(sql string, opt types.Option) (*ParseResult, error)
- func (p *Parser) Sqlify(ast *ASTResult, opt types.Option) (string, error)
- func (p *Parser) TableList(sql string, opt types.Option) ([]string, error)
- func (p *Parser) WhiteListCheck(sql string, whiteList []string, opt types.Option) error
- type TableColumnList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func (*Parser) ColumnList ¶
columnList(sql: string, opt?: Option): string[];
type TableColumnList ¶
Click to show internal directories.
Click to hide internal directories.