Open tonykambo opened 8 years ago
Hi! This sounds like a very suiting request. Tried to add a Catch node, but it did not get SQL errors. An output port would definately make error handling easier, and to, when appropriate, return some information to caller / client.
Cheers -jo
Created a PR for this https://github.com/smchamberlin/node-red-nodes-cf-sqldb-dashdb/pull/15
@smchamberlin - Any thoughts on this and the pull request for output node?
@tverilytt If we were properly catching the errors for use in the Catch node (another PR open for that), would you still need extra output node? I think stylistically it's weird to have an output node coming from an output node ... Thanks.
@smchamberlin That sounds like a feasible solution to me!
It would be ideal to have an output port on the DashDB Out node so that a flow could continue on and perform additional steps such as:
This would be in the context of including DashDB Out as part of a REST service following an HTTP In node. Whilst the DashDB In node could be used to perform an SQL Insert it does not easily cater for passing in a JSON array for inserting multiple rows within the one payload. This is a handy feature of the DashDB Out node.
So in short, add an output port to the DashDB Out node to allow the flow to continue and pass on any SQL errors.