Documentation
¶
Index ¶
- func Parse(cursor *parsly.Cursor, dest interface{}) error
- func ParseCallExpr(rawExpr string) (*expr.Call, error)
- func ParseCreateTable(SQL string) (*table.Create, error)
- func ParseDelete(SQL string) (*del.Statement, error)
- func ParseDropTable(SQL string) (*table.Drop, error)
- func ParseInsert(SQL string) (*insert.Statement, error)
- func ParseList(raw string) (query.List, error)
- func ParseLiteral(cursor *parsly.Cursor) (*expr.Literal, error)
- func ParseQualify(cursor *parsly.Cursor, qualify *expr.Qualify) error
- func ParseQuery(SQL string, opts ...Option) (*query.Select, error)
- func ParseUpdate(SQL string) (*update.Statement, error)
- func Stringify(n node.Node) string
- func TableName(node node.Node) string
- func Traverse(n node.Node, visitor func(n node.Node) bool)
- func TryParseLiteral(cursor *parsly.Cursor) (*expr.Literal, error)
- type Column
- type Columns
- type Option
- type Options
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseCallExpr ¶
ParseCallExpr parses call expression
func ParseCreateTable ¶
ParseCreateTable parses create table
func ParseDelete ¶
ParseDelete parses DELETE statement
func ParseDropTable ¶
ParseDropTable parses drop table
func ParseInsert ¶
ParseInsert Parses INSERT INTO statement
func ParseLiteral ¶
ParseLiteral parses literal
func ParseQualify ¶
ParseQualify parses qualify expr
func ParseQuery ¶
ParseQuery parses query
func ParseUpdate ¶
ParseUpdate parses update statement
Types ¶
type Columns ¶ added in v0.4.0
type Columns []*Column
Columns represens column
func NewColumns ¶ added in v0.4.0
NewColumns creates a columns
func (Columns) ByLowerCase ¶ added in v0.5.1
ByLowerCase indexes column by lower cased name
func (Columns) Index ¶ added in v0.4.0
Index indexes column by first non-empty alias or name or expr respectively
func (Columns) IsStarExpr ¶ added in v0.4.0
Source Files
¶
Click to show internal directories.
Click to hide internal directories.