3 ms·
Thanks for this article. I've always liked the idea of using views as an API. But, I'd never considered using Postgres' schemas as a way of versioning that API
by JohnBooty 5y ago
Thanks for this article.
I've always liked the idea of using views as an API. But, I'd never considered using Postgres' schemas as a way of versioning that API. This approach wouldn't work for every kind of migration but definitely seems correct and useful in some cases.
As others have pointed out you still of course have to deal with the technical debt of clients using the "old" schemas/views... but that is a problem that has to be addressed anyway... so I don't consider that to be a "flaw" of this approach; it's something close to orthogonal to this approach.
Thanks!