4 ms·
Oh great, now you exposed your database schema to outside consumers. Guess you're not making any migration then :)
by tuetuopay 2y ago
Oh great, now you exposed your database schema to outside consumers. Guess you're not making any migration then :)
- jonathanlydall 2y agoI’m mostly with you here, but to be fair to the OP, he does suggest exposing database views which does give a certain amount of decoupling from the schema of your tables.
- dventimi 2y agoSpeak for yourself. Personally, I've only exposed views and procedures.
- fzeindl 2y agoYou can absolutely have versioned views that you expose. An URL like /api/v1/customers could be rewritten to /views/v1_customers. That way you can change your schema internally.