DBCore
dbcore.org
dbcore.org
If the author is reading, assuming I'm using Postgres and typescript, in what situations would I choose this over PostgREST + any openapi code generator?
It's different from PostgREST in that it doesn't dynamically read schemas from the DB during the application server runtime. You generate an application from the DB up front and then you can do whatever you want with that generated application afterward.
Dbcore looks so great, but i cant really stomach adding another language (Go..) to the mix.
If you're worried about another language in the mix, you should know that PostgREST is powered by Haskell.
[0] https://postgrest.org/en/v8.0/ecosystem.html#client-side-lib...
This is really cool. Poking around the source code, it's surprisingly simple. It's just a database -> template engine with a front-end/back-end template included.
Would make it easy to replace shared DBs with APIs over time.
But a few ways you could hook without any code changes in dbcore: use LISTEN/NOTIFY or equivalent to hook on changes, poll for changes in the DB, "eject" the generated code and edit API handlers directly to call where you want, or just edit the default templates directly with whatever API handlers you want to call.
It's true there's not a great way to add hooks at a configuration level at the moment. But there are still many ways you could work around that.
Any thoughts around workflows?
Docs could be better, but it's a open source and free I did in my free ti lme without sponsors or any money.