1.5.1 • Published 2 years ago

node-red-contrib-sqlitedb v1.5.1

Weekly downloads
6,153
License
MIT
Repository
github
Last release
2 years ago

SQLiteDB - Module for Node-Red

Description

Sends SQL queries to an SQLite cloud database provided as a service at https://www.sqlitedb.com/

Requirements

To use this node first register for an account at https://www.sqlitedb.com/ and create a database. Get the provided API URL and API KEY and add to this node configurations to be able to access the cloud database.

Extra Benefits

An online admin panel is provided with each cloud database. It allows to fully manage the database via a web browser and allows the following actions to be completed conveniently via a graphical user interface:

  • alter tables
  • create tables
  • drop tables
  • export tables
  • truncate tables

RECORDS

  • delete records
  • insert records
  • select/read records
  • update records
  • view/search records

How to Use

The node provides two methods for providing the SQL code for the query:

  • fixed - convenient for permanent SQL statements. The SQL is entered directly in the node configurator.
  • msg.topic - for dynamic statements. The SQL is composed via a functions node and appended to the message's topic attribute before sent onwards.

Using any SQL query, the result is returned in msg.payload. After submitting the query a response message in the payload will be returned in the following format:

  • Success response {"status":"success","message":"Message text","data":[]}
  • Success response {"status":"error","message":"Message text"} Checking the "status" attribute allows to find out if the SQL query was executed successfully. Checking the "message" attribute allows to find out more information about the query's result. The "data" attribute contains the records returned by SELECT type queries.
1.5.1

2 years ago

1.2.2

2 years ago

1.4.0

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago