4 ms·
Resources only map 1-to-1 with database models for trivial applications, so certainly not the future. Still, useful for getting up and running.
by cbau 11y ago
Resources only map 1-to-1 with database models for trivial applications, so certainly not the future. Still, useful for getting up and running.
- radiowave 11y agoComing from the old world of business IT where "integrate everything with the relational database" is standard procedure, it's certainly not unusual for the database to be a place where abstractions are defined(1), so what you expose via PostgREST may not in fact be a close match for the underlying data model. (1 - In fact with me it's pretty much a matter of policy: any external system should access data via views named for the external system. Then, as inconvenient as it sometimes is, Postgres' dependency mechanism will keep me right about which fields in which tables are depended upon by which external systems.)
- glogla 11y agoThat's also what postgrest documentation suggests as the way to deploy it.
- e12e 11y agoWhat kind of resources do you have that can't be modelled as materialized views and make sense to store in a database?