So, instead of yaml files, I will be writing SQL INSERT statements? And instead of doing “git diff” I am going to be looking at diffs in database dumps? I don’t think this will increase readability at all.
If you want to have type safety and enforced relationship in your yaml, you want linters or dry-run mode. It will check even more things that database does, and will allow you to keep nice format, too.
The only good idea in this is storing state in sql so one can run queries on it. But this is much easier to achieve simply by exporting state to read-only database.