Skip to content

:memory: Database is undefined #3

Description

@amerdsp

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions