3 ms·
There is no problem and the answer has already been giving: the migration library is the source of truth for the schema and that's it. There is just no ORM and
by valenterry 6y ago
There is no problem and the answer has already been giving: the migration library is the source of truth for the schema and that's it. There is just no ORM and if there is one it should not even have the permissions to execute any schema changes.
> So ideally, the app reflects the DB schema in some type-safe manner.
That's right! But there is no need to use an ORM for that. JooQ and other libraries (in my world it would be Quill https://getquill.io/ https://getquill.io/) do that for you.