sqlite3-transactions
sqlite3-transactions copied to clipboard
:memory: Database is undefined
var sqlite3 = require('sqlite3').verbose(); var TransactionDatabase = require("sqlite3-transactions").TransactionDatabase; var db = new TransactionDatabase( new sqlite3.Database(":memory:") ); db.run( ....
db is undefined...
However, if no TransactionDatabase is used, the above run statement would work... I did place the run statement in a call back for the sqlite3 new database call and that seems to work..