Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 737 Bytes

README.md

File metadata and controls

28 lines (18 loc) · 737 Bytes

Dbmate

Nodejs wrapper for amacneil/dbmate

Orgin

The original work is done by Roman Shtylman at https://gitlab.com/defunctzombie/node-dbmate. This repository uses latest dbmate binaries.

Library

import { DbMate } from 'dbmate';

// construct a dbmate instance using a database url string
// see https://github.com/amacneil/dbmate#usage for more details
const dbmate = new DbMate('db://user:pass@host:port/db?opt');

// invoke up, down, drop as necessary
await dbmate.up();

CLI

The dbmate cli wraps the precompiled dbmate binaries and passes all command line options. The cli wrapper will detect the appropriate binary for your system.

License

See LICENSE.md