A Node-RED node to write to TreasureData.
The node-red-contrib-td requires Node-RED to be installed.
Run the following command in the root directory of your Node-RED install
npm install node-red-contrib-td
Restart your Node-RED instance, the td node appears in the palette and ready for use.
Provides two nodes: a node that query tables, and a node that insert objects.
Use presto query to get data from Treasure Data.
Set presto query in msg.payload
.
Tip: For information on how to write queries in Presto refer to this Presto Query Engine Introduction.
Inserts objects into the specified table.
Set the objects to be inserted into msg.payload
.
Tip: Set the data to be inserted in JSON format.
{"name":"test", "num":1234}
The node-red-contrib-td uses the following open source software:
- td - Node.js Client Library for Treasure Data.
See license (Apache License Version 2.0).
Both submitting issues to GitHub issues and Pull requests are welcome to contribute.
If the developer wants to modify the source of node-red-contrib-td, run the following code to create a clone.
cd ~\.node-red\node_modules
git clone https://github.com/joeartsea/node-red-contrib-td.git
cd node-red-contrib-td
npm install