Original post


I’ve been looking for a migration package that will solve one my problem: allow me to run some complex logic implemented in go during migration. For example: fetching some data from an external resource, do complex calculations that I can’t do in plain SQL. I’ve failed with this search and decided to write my own package to solve this problem.

I am asking for a review of my package: https://github.com/iamsalnikov/mymigrate

This package has support cobra’s commands. Theoretically, it may work against any sql database because it depends only on standard golang sql package.

I would be thankful if someone could review this package or a piece of it.

Thank you!