Documentation
¶
Index ¶
- Constants
- Variables
- type Parser
- func (p *Parser) Astify(sql string, opts ...option.Option) (*internal.ASTResult, error)
- func (p *Parser) ColumnList(sql string, opts ...option.Option) ([]string, error)
- func (p *Parser) Parse(sql string, opts ...option.Option) (*internal.ParseResult, error)
- func (p *Parser) Sqlify(ast *internal.ASTResult, opts ...option.Option) (string, error)
- func (p *Parser) TableList(sql string, opts ...option.Option) ([]string, error)
- func (p *Parser) WhiteListCheck(sql string, whiteList []string, opts ...option.Option) error
Constants ¶
View Source
const ( UnknownStatement = types.UnknownStatement UseStatement = types.UseStatement SelectStatement = types.SelectStatement InsertStatement = types.InsertStatement ReplaceStatement = types.ReplaceStatement UpdateStatement = types.UpdateStatement DeleteStatement = types.DeleteStatement AlterStatement = types.AlterStatement CreateStatement = types.CreateStatement DropStatement = types.DropStatement )
Variables ¶
View Source
var (
ErrParserNotInitialized = fmt.Errorf("parser not initialized")
)
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.