sqlite3-transactions
sqlite3-transactions copied to clipboard
error native deadlock
Hi
I was testing your node module, the test i made was to put intencionally a error in one query in a list of queries to generate a rollback, but every error dead the app, i tried to capture error putting the commit funcion in a try catch, but the app died with any error in a query by error native.
`transaction i'm use
db.beginTransaction(function(err, transaction){
try {
for (var key in listQueries) {
transaction.run(listQueries[key]);
}
transaction.commit(function (err) {
callback(err);
});
}
catch(err){
logger.write(err, logger.level.ERROR);
callback(err);
}
});`
Sorry, I am not actively maintaining the module any more. Have you managed to fix the problem? If so I will be happy to accept your pull request.