Skip to content

monke-systems/go-migrate-wrapper

Repository files navigation

@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();