Wrapper for golang cli tool migrate
First you need to install the migrate tool
Then install the library
npm i @monkee/go-migrate-wrapper
import { Migrate } from '@monkee/go-migrate-wrapper';
const main = () => {
const migrate = new Migrate();
migrate.up({
source: 'file://migrations',
database: 'mysql://root:123321@tcp(localhost:3306)/test_db',
});
};
main();