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

Async functions and named params as in sql.js available?

Open jorfermo opened this issue 8 years ago • 2 comments

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 Sep 03 '16 20:09 jorfermo

  1. Quais funções? Me dê um exemplo.
  2. Not yet.

jayralencar avatar Sep 05 '16 12:09 jayralencar

Ah ok, I saw there's a runAsync function to run queries in async mode.

It would be very nice to have the option of using named params

Thanks for your job!

jorfermo avatar Sep 05 '16 12:09 jorfermo