mattes / migrate

Database migrations. CLI and Golang library.
Other
2.29k stars 326 forks source link

use mysql migrator interface in WithInstance #286

Open tadasv opened 7 years ago

tadasv commented 7 years ago

This change defines MysqlMigrator interface. It lets us use different SQL driver implementations in migrations, e.g. sqlx.

mattes commented 7 years ago

Thanks for the PR. I think this is a good idea. Should we make it more generic though? I believe there is more drivers that would benefit from the interface? For example, sqlite3. What else?