sqlite3-transactions icon indicating copy to clipboard operation
sqlite3-transactions copied to clipboard

:memory: Database is undefined

Open amerdsp opened this issue 10 years ago • 0 comments

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..

amerdsp avatar Nov 20 '14 16:11 amerdsp