From 4931bfbca5856cd6c7df9fb98c800719a6d850cc Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Mon, 21 Nov 2016 14:36:37 +0000 Subject: [PATCH] Enable public method for running sql query --- db/db.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/db/db.go b/db/db.go index e1ba269f..85e6cce4 100644 --- a/db/db.go +++ b/db/db.go @@ -103,6 +103,12 @@ func Execute(ctx *fibre.Context, txt interface{}, vars map[string]interface{}) ( return } + return Process(ctx, ast, vars) + +} + +func Process(ctx *fibre.Context, ast *sql.Query, vars map[string]interface{}) (out []*Response, err error) { + // Create 2 channels, one for force quitting // the query processor, and the other for // receiving and buffering any query results.