An example of using the NodeJS Restful connector to create a table with weather data and create and execute queries can be found [here](https://github.com/taosdata/TDengine/tree/master/tests/examples/node-rest/rest-node-example.js)
An example of using the NodeJS Restful connector to create a table with weather data and create and execute queries can be found [here](https://github.com/taosdata/TDengine/tree/master/tests/examples/node-rest/show-database.js)
An example of using the NodeJS Restful connector to achieve the same things but without all the object wrappers that wrap around the data returned to achieve higher functionality can be found [here](https://github.com/taosdata/TDengine/tree/master/tests/examples/nodejs/node-example-raw.js)
result=awaitcursor.query("drop database if exists node_rest");
// result = await cursor.query("drop database if exists node_rest").catch(e=>console.log(e))
result.toString()
// result.toString()
})()
// })()
constcreateDB="create database if not exists node_rest";
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.meters (ts timestamp, current float, voltage int, phase float) TAGS (location binary(64), groupId int)";
constcreateTBL="CREATE STABLE if not exists node_rest.meters3 (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) ";