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:
Tobie Morgan Hitchcock 2016-11-04 11:15:05 +00:00
parent d8a2d40d34
commit b0ab86c4ef

View file

@ -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:"-"`
} }
// -------------------------------------------------- // --------------------------------------------------