sqlite-sync.js icon indicating copy to clipboard operation
sqlite-sync.js copied to clipboard

Attach database

Open jorfermo opened this issue 8 years ago • 6 comments

Does it support attach database?

jorfermo avatar Jul 31 '16 13:07 jorfermo

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

jayralencar avatar Aug 01 '16 11:08 jayralencar

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

jayralencar avatar Aug 02 '16 19:08 jayralencar

Is sqlite-sync based on sql.js?

jorfermo avatar Aug 02 '16 19:08 jorfermo

Yes!

jayralencar avatar Aug 02 '16 21:08 jayralencar

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}

jorfermo avatar Aug 03 '16 19:08 jorfermo

No, you cant use like this. Not yet.

jayralencar avatar Nov 25 '16 12:11 jayralencar