jmoiron / modl

golang database modelling library
MIT License
480 stars 48 forks source link

Migrating from gorp #30

Open rubenv opened 9 years ago

rubenv commented 9 years ago

I've ported sql-migrate [1] into a second version named modl-migrate [2].

The only difficulty I had when migrating over from gorp was the fact that NewDbMap is obligatory (whereas in gorp it's just a struct you're making). Not doing this gives a very unobvious panic.

Now that gorp has gone unmaintained, perhaps it'd be a good idea to add a "Migrating from gorp" section to the README?

[1] https://github.com/rubenv/sql-migrate [2] https://github.com/rubenv/modl-migrate