From 8ebc77465cbc358a6896d55a2ca2372c34558ace Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Fri, 14 Oct 2016 22:21:17 +0100 Subject: [PATCH] Add SQL LIVE query ast --- sql/ast.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sql/ast.go b/sql/ast.go index 41b3a194..ac9adb58 100644 --- a/sql/ast.go +++ b/sql/ast.go @@ -74,6 +74,17 @@ type InfoStatement struct { // 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. type SelectStatement struct { KV string `cork:"-" codec:"-"`