> I work on the principle that the database’s data definitions aren’t things you should manipulate in the application. Instead, manipulate the results of queries.
Following this principle will definitely make your life easier. I have been using Slick[1] and the Play Framework[2] for my backends for a good while and having the freedom to define my migration scripts in pure SQL is a big plus.
My application models are very lean and don't get mixed up with DDL. I can also fully understand what goes in the db migrations, zero magic there.
Following this principle will definitely make your life easier. I have been using Slick[1] and the Play Framework[2] for my backends for a good while and having the freedom to define my migration scripts in pure SQL is a big plus. My application models are very lean and don't get mixed up with DDL. I can also fully understand what goes in the db migrations, zero magic there.
- [1] http://scala-slick.org/ - [2] https://www.playframework.com/