Add KV, NS, DB to LET and RETURN SQL ASTs
All queries which manipulate the data layer in any way, should at least store the authenticated/selected NS and DB options, even if they do not actually use them when running the SQL statement.
This commit is contained in:
parent
d8a2d40d34
commit
b0ab86c4ef
1 changed files with 7 additions and 1 deletions
|
@ -75,13 +75,19 @@ type InfoStatement struct {
|
||||||
|
|
||||||
// LetStatement represents a SQL LET statement.
|
// LetStatement represents a SQL LET statement.
|
||||||
type LetStatement struct {
|
type LetStatement struct {
|
||||||
|
KV string `cork:"-" codec:"-"`
|
||||||
|
NS string `cork:"-" codec:"-"`
|
||||||
|
DB string `cork:"-" codec:"-"`
|
||||||
Name string `cork:"-" codec:"-"`
|
Name string `cork:"-" codec:"-"`
|
||||||
What Expr `cork:"-" codec:"-"`
|
What Expr `cork:"-" codec:"-"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ReturnStatement represents a SQL RETURN statement.
|
// ReturnStatement represents a SQL RETURN statement.
|
||||||
type ReturnStatement struct {
|
type ReturnStatement struct {
|
||||||
What Expr `cork:"-" codec:"-"`
|
KV string `cork:"-" codec:"-"`
|
||||||
|
NS string `cork:"-" codec:"-"`
|
||||||
|
DB string `cork:"-" codec:"-"`
|
||||||
|
What Expr `cork:"-" codec:"-"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue