hysoaka / node-red-contrib-postgrestor Goto Github PK
View Code? Open in Web Editor NEWYet another Node-RED node to query PostgreSQL
License: GNU Affero General Public License v3.0
Yet another Node-RED node to query PostgreSQL
License: GNU Affero General Public License v3.0
Greetings,
First of all thak you for this node, i consider it the best available.
I am opening this issue because I was having problems when pooling a database and noticed that the pool was created on input event I have transfered to the constructor level and its working for me.
Thank you.
Hi,
When I'm using multiple postgres connections(settings) in the same node-red app, only one still working.
If I create another connection the first don't work anymore.
It looks like even if I'm slecting the good database for each node they are using the same connection.
I'm currently using node-red container docker over linux.
I'm using the 0.0.2 postgrestor because de 0.0.4RC does not work, it make me an error saying there are no postgresDB an postgrestor node find.
Is there any way to make it work?
Thanks
I am able to run a simple flow "Select 1" on node 12, but if i run node red in a node 14 the module does not return any data or errors.
I think i have tracked it down to line 66, let client = yield pgPool.connect()
I have pool connect running ok in other node 14 apps, I think it might be something to do with the co( and yield
But I am not familiar with co enough to suggest a solution
When inserting the JSON string into a postgres table, the " chars are converted to @quot;
I am getting "error: syntax error at or near ";"" on a valid INSERT statement. It involves a JSON object that I am trying to store.
Branch | Build failing π¨ |
---|---|
Dependency | pg |
Current Version | 6.1.5 |
Type | dependency |
This version is covered by your current version range and after updating it in your project the build failed.
pg is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you itβs very likely also breaking them.
I recommend you give this issue a very high priority. Iβm sure you can resolve this πͺ
The new version differs by 11 commits0.
c32316d
Bump version
ee81936
Libpq connection string escaping (#1285)
4659d5d
Bump version
db5f4ae
Upgrade packet reader (#1287)
f42924b
Bump version
80d136a
Add test & documentation for replicationStart message
4f790de
Support for logical streaming replication (#1271)
4505ae9
support ssl params for pg-native (#1169)
0e2625b
Add semicolons to Pooling example in README.md (#1266)
71a1364
Improve Readme.md for not so advanced users (#1235)
7504c20
Fix README.md (#1250)
false
See the full diff
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot π΄
in a query when you want to use %, like it is used?
server and account is setup correctly but the debug node just doesn't output anything andSELECT
and INSERT INTO
commands are not working.
Hi could you put on package a complete example with rows splitted and printed?
I'm trying to split them but it doesn't works.
Database and query are working well!
msg.payload : string[124838]
"{"command":"SELECT","rowCount":468,"oid":null,"rows":[{"id":1,"gene_rei":"CSF2RB","descrizione":"colony stimulating factor 2 receptor beta common subunit","gene_mim":"","created_date":"2020-06-13T12:20:30.283Z","modified_date":"2020-06-13T12:20:30.283Z","created_by_id":1,"fenotipo_id":null,"modified_by_id":1,"esoni":"","lunghezza":""},{"id":2,"gene_rei":"True","descrizione":"colony stimulating factor 2 receptor beta common subunit","gene_mim":"","created_date":"2020-06-13T12:20:30.317Z","modified_date":"2020-06-13T12:20:30.371Z","created_by_id":1,"fenotipo_id":null,"modified_by_id":1,"esoni":"","lunghezza":""},{"id":34,"gene_rei":"RAB7A","descrizione":"Malattia di Charcot-Marie-Tooth di tipo 1B","gene_mim":"602298","created_date":"2020-06-13T12:20:35.291Z","modified_date":"2020-06-13T12:20:37.552Z","created_by_id":1,"fenotipo_id":null,"modified_by_id":1,"esoni":"","lunghezza":""},{"id":5,"gene_rei":"ATP1A1","descrizione":"Malattia di Charcot-Marie-Tooth di tipo 2 (Am J Hum Genet. 2018 ..."
I used 'change' and Move msg.rows in msg.payload
but when I split them and print:
23/6/2020, 15:19:58node: 517bb5f1.c9d4fc
msg.payload : undefined
undefined
I've just deployed postgrestor and I can't use it because I get next error: "error: no PostgreSQL user name specified in startup packet"
I've provided all information (Host, Port, Database, User and Password) in many different ways...
There are times when you need to dynamically create a query (not just alter some parameters of a standard query). So please provide a way for the postgrestor node to accept query as an input from other nodes.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.