Skip to content

:memory: Database is undefined #3

@amerdsp

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

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