Skip to content

Files

Latest commit

bee5d75 · Sep 1, 2022

History

History
32 lines (21 loc) · 628 Bytes

README.md

File metadata and controls

32 lines (21 loc) · 628 Bytes

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