by BiteCode_dev · 5y ago · 0 comments
That would have the benefit of the standardized api of an ORM and the flexibility of SQL, without the coupling.
- because you have all your queries written in the same place, when you create a db migration, you know where to look for code to update, and can even perform some automatically.
- sql queries could be turned into a stored procedure with a simple marking, without changing any code.
Of course the downside is that dynamically exploring data is not as easy as with an ORM.