Add SQL SCOPE query ast

This commit is contained in:
Tobie Morgan Hitchcock 2016-10-14 22:21:25 +01:00
parent 8ebc77465c
commit a38e337513

View file

@ -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
// -------------------------------------------------- // --------------------------------------------------