Documentation
¶
Index ¶
- func NewCatalog() *catalog.Catalog
- func NewIdentifier(t string) *ast.String
- type Delete_stmt
- type Parser
- func (p *Parser) Cast(arg, typeName string) string
- func (p *Parser) CommentSyntax() source.CommentSyntax
- func (p *Parser) IsReservedKeyword(s string) bool
- func (p *Parser) NamedParam(name string) string
- func (p *Parser) Param(n int) string
- func (p *Parser) Parse(r io.Reader) ([]ast.Statement, error)
- func (p *Parser) QuoteIdent(s string) string
- func (p *Parser) TypeName(ns, name string) string
- type Update_stmt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCatalog ¶
func NewIdentifier ¶
Types ¶
type Delete_stmt ¶
type Delete_stmt interface {
Qualified_table_name() parser.IQualified_table_nameContext
WHERE_() antlr.TerminalNode
Expr() parser.IExprContext
// contains filtered or unexported methods
}
type Parser ¶
type Parser struct {
}
func (*Parser) CommentSyntax ¶
func (p *Parser) CommentSyntax() source.CommentSyntax
func (*Parser) IsReservedKeyword ¶
func (*Parser) NamedParam ¶
NamedParam returns the named parameter placeholder for the given name. SQLite uses :name syntax for named parameters.
func (*Parser) Param ¶
Param returns the parameter placeholder for the given number. SQLite uses ? for positional parameters.
func (*Parser) QuoteIdent ¶
QuoteIdent returns a quoted identifier if it needs quoting. SQLite uses double quotes for quoting identifiers (SQL standard), though backticks are also supported for MySQL compatibility.
type Update_stmt ¶
type Update_stmt interface {
Qualified_table_name() parser.IQualified_table_nameContext
GetStart() antlr.Token
AllColumn_name() []parser.IColumn_nameContext
WHERE_() antlr.TerminalNode
Expr(i int) parser.IExprContext
AllExpr() []parser.IExprContext
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.