Documentation
¶
Overview ¶
Package statement segments preprocessed DQL into top-level SQL and Velty operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDMLServiceMethod ¶
IsDMLServiceMethod reports whether name belongs to the Velty DML capability.
Types ¶
type Classification ¶
type Statement ¶
type Statement struct {
Start int
End int
SQLStart int
SQLEnd int
TemplateBalanced bool
OperationStart int
Kind Kind
Operation string
}
func (*Statement) IsExecutable ¶
type Statements ¶
type Statements []*Statement
func Parse ¶
func Parse(sqlText string) Statements
Parse classifies explicitly delimited top-level statements in preprocessed DQL. Newlines remain SQL whitespace; only top-level semicolons delimit SQL. Offsets are relative to sqlText and map through transcribe.SourceMap.
func (Statements) Classify ¶
func (s Statements) Classify() Classification
Click to show internal directories.
Click to hide internal directories.