I am excited about this release of RDB.
Rich Querying Model
Concise API: Developer-friendly & expressive.
Full IntelliSense without code generation.
TS & JS Ready
Browser-Friendly: Build web apps with RDB in Express
please stick with promises. Promises are the only sane way to deal with async in JS. With people starting to use async/await they become even more compelling.
The people who defend callbacks either don't understand the benefits that promises provide, don't know about async/await or are suffering from stockholm syndrome.
Callbacks do not pass the reversibility test. If everyone had started out with promises and / or async/await, and someone proposed callbacks as a way to deal with this instead, they'd be dismissed as a fool. They're an accident of history and we should forget about them as quickly as possible.
Callbacks allow await/defer in Iced CoffeeScript, not to mention the other async libs as stated above.
Promises don't really offer any benefit to program structure overall, generally devs just end up creating long chains of anonymous functions rather than long nests of anonymous functions. Promises actually discourage flat code (and functional programming) for that reason. I understand they seem attractive but become a hack in complex situations.
Breaking:
- getAll removed; use getMany (same signature).
- getOne no longer accepts filter as first arg; move it to where.
Also:
- ExpressJS before/after hooks for row-level security.
- SQLite user-defined functions.
- Enums support.