https://github.com/sdalu/node-red-db
A node to provide basic database interaction.
https://github.com/sdalu/node-red-db
database node-red
Last synced: 11 months ago
JSON representation
A node to provide basic database interaction.
- Host: GitHub
- URL: https://github.com/sdalu/node-red-db
- Owner: sdalu
- License: apache-2.0
- Created: 2022-06-16T11:18:57.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-03-07T09:18:07.000Z (over 2 years ago)
- Last Synced: 2025-03-31T00:31:55.939Z (over 1 year ago)
- Topics: database, node-red
- Language: HTML
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DB
Provide basic interraction with databases.
As it relies on the [knex](https://knexjs.org/) framework to perform
database access, it is protected from SQL injection, that is not
the case for the official mysql node.
Supported databases: MySQL, MariaDB, PostgreSQL
Indicated dependencies are Node RED >= 3 and NodeJS >= 20, but
it is certainly working with other versions.
## db insert
Insert data into a database table.
## db query
Perform SQL query using `knex.raw`