Add SQL SCOPE query ast
This commit is contained in:
parent
8ebc77465c
commit
a38e337513
1 changed files with 22 additions and 0 deletions
22
sql/ast.go
22
sql/ast.go
|
@ -156,6 +156,28 @@ type RelateStatement struct {
|
||||||
Echo Token `cork:"echo" codec:"echo"`
|
Echo Token `cork:"echo" codec:"echo"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// --------------------------------------------------
|
||||||
|
// Scope
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
// DefineScopeStatement represents an SQL DEFINE SCOPE statement.
|
||||||
|
type DefineScopeStatement struct {
|
||||||
|
KV string `cork:"-" codec:"-"`
|
||||||
|
NS string `cork:"-" codec:"-"`
|
||||||
|
DB string `cork:"-" codec:"-"`
|
||||||
|
Name string `cork:"name" codec:"name"`
|
||||||
|
Time time.Duration `cork:"time" codec:"time"`
|
||||||
|
Opts interface{} `cork:"opts" codec:"opts"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// RemoveScopeStatement represents an SQL REMOVE SCOPE statement.
|
||||||
|
type RemoveScopeStatement struct {
|
||||||
|
KV string `cork:"-" codec:"-"`
|
||||||
|
NS string `cork:"-" codec:"-"`
|
||||||
|
DB string `cork:"-" codec:"-"`
|
||||||
|
Name string `cork:"name" codec:"name"`
|
||||||
|
}
|
||||||
|
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
// Table
|
// Table
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue