ckmar
Joined 5 years ago
Karma
85
Submissions
40
Member since
Apr 16
Joined 5 years ago
[0] https://unfluence.app/about
[1] https://www.youtube.com/watch?v=mFZ8zcF8r8M&ab_channel=Craig...
You write SQL but instead of getting back flat and potentially-collided data, you get back pure objects which are properly structured.
If anyone is looking for this "pure" ORM (no query builder API) in Node there is https://github.com/craigmichaelmartin/pure-orm
// Either foo or someError will be defined
const [foo, someError] = itry(someFn, SomeError);
Instead of nine lines which feel like they are working uphill against the language: dealing with variable scoping issues, deeper nesting, and footguns like forgetting to re-throw. let foo;
try {
foo = someFn();
} catch (err) {
if (err instanceof SomeError) {
// do something with error
} else {
throw err;
}
}
// use foo
[0] https://pikacube.pages.dev/