mysql-transit
Core package for mysql migration tool
Last updated 3 years ago by agcpartners .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install mysql-transit 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.0.9                                ...           latest (3 years ago)

9 Versions

  • 0.0.9                                ...           3 years ago
  • 0.0.8                                ...           4 years ago
  • 0.0.7                                ...           4 years ago
  • 0.0.6                                ...           4 years ago
  • 0.0.5                                ...           4 years ago
  • 0.0.4                                ...           4 years ago
  • 0.0.3                                ...           4 years ago
  • 0.0.2                                ...           4 years ago
  • 0.0.1                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 9
Dependencies (8)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |