2 ms·
The primary use case I had in mind for this was internal business apps. But a few ways you could hook without any code changes in dbcore: use LISTEN/NOTIFY or
by eatonphil 5y ago
The primary use case I had in mind for this was internal business apps.
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.
- manojlds 5y agoLot of these internal business apps have a attached workflow to CRUD (reviews, approval etc) Any thoughts around workflows?
- rapnie 5y agoNot really in line with this particular CRUD subject, but combine-able esp. if things grow in size and scale: https://temporal.io https://temporal.io provides a really nice way to code your workflows in Golang, applicable for small-scale, while hiding most complexity that come with scaling.
- swyx 5y agoaye, i work at Temporal, happy to answer any qtns!