@monkee/go-migrate-wrapper
v0.9.11
Published
go-migrator-wrapper package
Downloads
885
Readme
@monkee/go-migrate-wrapper package
Description
Wrapper for golang cli tool migrate
Installation
First you need to install the migrate tool
Then install the library
npm i @monkee/go-migrate-wrapper
Example usage
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();