2.0.0 • Published 8 years ago

mysql2rethinkdb v2.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
8 years ago

npm version

What is it

Migrate mysql tables into rethinkdb.

Usage

Before use command, Check Rethinkdb python driver is installed. Because rethinkdb import command is implemented by python.

Source Code

npm install -S mysql2rethinkdb;
import mysql2rethinkdb from 'mysql2rethinkdb';

mysql2rethinkdb({
  mysql: {
    host: 'localhost',
    user: 'root',
    password: '',
    port: '3306',
    database: 'test',
  },
  rethinkdb: {
    host: 'localhost',
    port: '28015',
    database: 'test',
    authKey: 'AUTH_KEY',
  },
  tables: ['user', 'post'],
  transform: ({ table, rows }) => ({
    table: '_' + table,
    rows: rows.map(row => ({
      ...row
      hello: 'world'
    })),
  }),
});

Related Links

2.0.0

8 years ago

1.4.0

8 years ago

1.3.0

8 years ago

1.2.0

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago