constcreateDB="create database if not exists node_rest";
// result = await cursor.query("drop database if exists node_rest").catch(e=>console.log(e))
// result.toString()
// })()
constcreateDB="create database if not exists node_rest";
constdropDB="drop database if exists node_rest";
constdropDB="drop database if exists node_rest";
constcreateTBL="CREATE STABLE if not exists node_rest.meters3 (ts timestamp, current float, voltage int, phase float) TAGS (location binary(64), groupId int)";
constcreateTBL="CREATE STABLE if not exists node_rest.meters (ts timestamp, current float, voltage int, phase float) TAGS (location binary(64), groupId int)";
constdropTBL="drop table if exists node_rest.meters ";
constdropTBL="drop table if exists node_rest.meters ";
constinsert="INSERT INTO node_rest.d1001 USING node_rest.meters TAGS (\"Beijng.Chaoyang\", 2) VALUES (now, 10.2, 219, 0.32) ";
constinsert="INSERT INTO node_rest.d1001 USING node_rest.meters TAGS (\"Beijng.Chaoyang\", 2) VALUES (now, 10.2, 219, 0.32) ";