0.9.11 • Published 3 years ago

@monkee/go-migrate-wrapper v0.9.11

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

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