Description
-
I was not able to find anything that matches this request in the issues.
-
We have applications that allow users to update multiple data objects in one request. Currently, this only works with INSERT, UPDATE, DELETE and MERGE SQL. However, we have large legacy DBs with error handling on the oracle side and use a PL/SQL package. We need to capture which executions were successful and which were not.
Personally, I think an array of success or error ids would be most useful. Or something containing details for each failure.
1. [{ success: [id,...n] }, { error: [id,...n ] }]
2. [{ success: [id,...n] }, { error: { id: error, id...n: error...n } }]
Currently, we could use the autoCommit option to make sure successful requests are committed. However, if more than one commit fails we will only get an error for the first error message. Our frontend is expecting data about the success and failed executions to update state.
- We're using oracledb v4.2.0 in docker containers running node.js 12