jayralencar / sqlite-sync.js

Node module to sqlite sync and async
MIT License
78 stars 30 forks source link

Attach database #3

Open jorfermo opened 8 years ago

jorfermo commented 8 years ago

Does it support attach database?

jayralencar commented 8 years ago

I don´t think so. But I´ll test ir.

jayralencar commented 8 years ago

https://github.com/kripken/sql.js/issues/88

jorfermo commented 8 years ago

Is sqlite-sync based on sql.js?

jayralencar commented 8 years ago

Yes!

jorfermo commented 8 years ago

That's great! So... can I also use the async functions of sqlite.js through your library?

And 2nd question. Can I use in sqlite-sync named params like in sql.js?

// Prepare a statement
    var stmt = db.prepare("SELECT * FROM test WHERE col1 BETWEEN $start AND $end");
    stmt.getAsObject({$start:1, $end:1}); // {col1:1, col2:111}
jayralencar commented 7 years ago

No, you cant use like this. Not yet.