Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jorfermo opened this issue Sep 3, 2016 · 2 comments
Open

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

jorfermo opened this issue Sep 3, 2016 · 2 comments

Comments

@jorfermo
Copy link

jorfermo commented Sep 3, 2016

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
Copy link
Owner

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

@jorfermo
Copy link
Author

jorfermo commented Sep 5, 2016

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants