News for hackers. Stuff that matters.
Re:Ask HN: Raw SQL vs. ORM? by jpitz on Wednesday April 11, 2018 @07:35AM (#16810068)
I used a home-grown system that essentially 'versioned' the database schema and initial configuration data. The program queried the database on startup, creating and/or altering as needed to get to the current version the program expected. Sometimes, certain upgrades required manual/offline steps to be taken - the program noted this in the log and shut down until that version upgrade was completed.

This used our home grown query library, which was a pretty thin layer over raw SQL.

This was a huge enabler for testing.

Today, I'd probably use FlywayDB if I needed to do that.

There are no comments on this comment yet.