3 ms·
Totally agree. I consider views and functions to be my database’s API, and when using a wrapping tool (I’ve used Hasura) I get it to use only the views in a de
by doctor_eval 5y ago
Totally agree.
I consider views and functions to be my database’s API, and when using a wrapping tool (I’ve used Hasura) I get it to use only the views in a dedicated API schema rather than the tables directly.
In addition to coupling, you want control over what tables and fields you publish.
A simple view is literally one line of SQL; it’s hardly a burden.