google / lovefield

Lovefield is a relational database for web apps. Written in JavaScript, works cross-browser. Provides SQL-like APIs that are fast, safe, and easy to use.
https://google.github.io/lovefield/
Apache License 2.0
6.82k stars 367 forks source link

Have any sync API for exec query? #244

Closed crossle closed 5 years ago

crossle commented 5 years ago

The Current exec() API always return as a Promise, any Sync API query directly? i just run on service worker, dont consider the block

arthurhsu commented 5 years ago

APIs must work for existing IndexedDB, which is by no way sync.

crossle commented 5 years ago

Or any other sync function waiting the exec query return?

arthurhsu commented 5 years ago

That is the new language feature "await".