npm

Need private packages and team management tools?Check out npm Orgs. »

mysql-transit

0.0.9 • Public • Published

mysql-transit Build Status

Core package for mysql migration tool

Installation##

npm install mysql-transit

Usage##

var mysqlTransit = require('mysql-transit');

var mysqlTransit = new MysqlTransit('originalDB', 'newDb', {
  'host': 'localhost',
  'port': 3306,
  'user': 'root',
  'password': 'root'
});

mysqlTransit.transit({ interactive: true }, function(err, transitResult) {
  if (err) console.log(err);
  // your code here
});

When you instantiate new MysqlTransit the first argument is the name of the database in which you want to apply the edits, the second argument is the name of the database that you want to read to find the changes and the third argument is an object with the parameters required to connect to the databases.

the first arguments of the method mysqlTransit.transit is an object accepting these options:

  • interactive: true|false // default true, if false it execute the queries in the originalDB without asking for user confirmation.

Support##

  • MySQL
  • MariaDB

install

npm i mysql-transit

Downloadsweekly downloads

12

version

0.0.9

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability