by eadmund · 7y ago · 0 comments
Wouldn't it be nice to have a schema DSL which enabled one to declare the schema in code, and have it checked at compile time? Sounds to me like that'd be the best of both worlds.
And client programs could just import that package as a library, so every would be on the same page …
Honestly, I'd rather that the DSL just import adapters for stored procedures; or that the language itself is modified to be more SQL-like.
As well you can do migrations to match your database schema to your current code model when it changes.