3 ms·
In a recent project we went without an ORM. We took a tack similar to how PostgREST and PostGraphQL are structured. We use views in the public schema to build
by agentultra 9y ago
In a recent project we went without an ORM.
We took a tack similar to how PostgREST and PostGraphQL are structured. We use views in the public schema to build our objects. Functions constrain our mutations. Triggers respond to events and maintain consistency.
It makes our web API code simple and hard to introduce errors that invalidate our customers’ data.
Don’t miss having an ORM. Always seemed like more abstraction and complication than was necessary given recent advances in servers like Postgres.
- steve-chavez 9y agoWhy didn't you just use stock PostgREST, in which area did you found it lacking?(Curious)
- agentultra 9y agoThe reasons were more social than technical. I think PostgREST is a wonderful piece of software and not lacking in any regard that I am aware of.