Add SQL LIVE query ast
This commit is contained in:
parent
a4520ca669
commit
8ebc77465c
1 changed files with 11 additions and 0 deletions
11
sql/ast.go
11
sql/ast.go
|
@ -74,6 +74,17 @@ type InfoStatement struct {
|
||||||
// Normal
|
// Normal
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
// LiveStatement represents a SQL LIVE statement.
|
||||||
|
type LiveStatement struct {
|
||||||
|
KV string `cork:"-" codec:"-"`
|
||||||
|
NS string `cork:"-" codec:"-"`
|
||||||
|
DB string `cork:"-" codec:"-"`
|
||||||
|
Expr []*Field `cork:"expr" codec:"expr"`
|
||||||
|
What []Expr `cork:"what" codec:"what"`
|
||||||
|
Cond []Expr `cork:"cond" codec:"cond"`
|
||||||
|
Echo Token `cork:"echo" codec:"echo"`
|
||||||
|
}
|
||||||
|
|
||||||
// SelectStatement represents a SQL SELECT statement.
|
// SelectStatement represents a SQL SELECT statement.
|
||||||
type SelectStatement struct {
|
type SelectStatement struct {
|
||||||
KV string `cork:"-" codec:"-"`
|
KV string `cork:"-" codec:"-"`
|
||||||
|
|
Loading…
Reference in a new issue