@zigasebenik/node-red-context-postgresql

1.0.6 • Public • Published

node-red-context-postgresql

Node RED plugin to hold context in PostgreSQL.

Dependencies

PostgreSQL server: https://www.postgresql.org

Install

Run the following in you Node RED user directory (usually ~/.node-red)

npm install @zigasebenik/node-red-context-postgresql

Configuration

Open Node RED settings.js file and look for contextStorage, then reference and configure installed plugin:

contextStorage: {
  postgresql: {
    module: require('@zigasebenik/node-red-context-postgresql'),
    config: {
      connectionString: 'postgres://localhost:5432/nodered',
      tableName: 'nodered'
    }
  }
}

For more PostgreSQL options look here.

Usage

Plugin provides async context storage, thus refer to Node RED documentation on how to use async context storage in a function node.

General Node RED context documentation can be found here.

Package Sidebar

Install

npm i @zigasebenik/node-red-context-postgresql

Weekly Downloads

0

Version

1.0.6

License

Apache-2.0

Unpacked Size

13.9 kB

Total Files

4

Last publish

Collaborators

  • zigasebenik