From 960833150555f3b0fe55056f026d57b7587efdb9 Mon Sep 17 00:00:00 2001 From: Matthew Wright Date: Thu, 30 Mar 2017 14:29:17 -0500 Subject: [PATCH] Merge pull request #1 from Picolab/removeEntVar Support entity variable removal --- packages/node-pico-engine-core/src/DB.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/node-pico-engine-core/src/DB.js b/packages/node-pico-engine-core/src/DB.js index 6a4ea4995..3cf35b769 100644 --- a/packages/node-pico-engine-core/src/DB.js +++ b/packages/node-pico-engine-core/src/DB.js @@ -150,6 +150,9 @@ module.exports = function(opts){ callback(err, data); }); }, + removeEntVar: function(pico_id, rid, var_name, callback){ + ldb.del(["pico", pico_id, rid, "vars", var_name], callback); + }, putAppVar: function(rid, var_name, val, callback){ ldb.put(["resultset", rid, "vars", var_name], val, callback); },