
Creating your first tableĪs documented on the info tab of the sqlite node, the node takes in SQL queries in the input msg.topic, and then returns responses in the output msg.payload.
#Node sqlite3 how to#
We will also look at how to view and manage this data later on. Drag a sqlite node to the empty canvas, and we are ready to move on.įor demo purposes, we are going to create a table and inject random numbers at a constant time interval. Once the sqlite node is installed, you should see the sqlite node in your left panel. In the search field enter sqlite and you will see results similar to the screen shot below.Ĭhoose node-red-node-sqlite and select install. Installing the sqlite nodeįirst, you will need to ensure that you have installed the sqlite node since it is not installed by default in Node-RED.įrom the main menu, select menu->manage palette and then using the manage palette configuration box, select the “Install” tab. If you’re new to Node RED you might find our introductory lectures helpful.

This tutorial will show you how to make use of an SQLite database using the sqlite node to create database tables and store data.
