dresende / node-orm2

Object Relational Mapping
http://github.com/dresende/node-orm2
MIT License
3.07k stars 379 forks source link

orm.connect callback is not called with sqlite #743

Open Iter-Ator opened 7 years ago

Iter-Ator commented 7 years ago

I would like to try out node-orm with sqlite. I tried the example code, and changed mysql to sqlite. It looks like this:

var orm = require("orm");

orm.connect('sqlite://D:/orm_test/database.db', function (err, db) {

    // ...

});

I don't get any error, or warning. Just nothing happens. The callback is not called at all. I've put a console.log command inside the callback, to test it.

Sqlite3 package is installed.

It does not work, even if I create database.db before

dxg commented 7 years ago

The tests run against all databases, including sqlite. There must be something wrong with your configuration, or maybe it's a windows issue. Perhaps add some console.logs to the sqlite package and see where it gets stuck.