0.4.0 • Published 5 years ago

oracle2mongo v0.4.0

Weekly downloads
2
License
UNLICENSED
Repository
github
Last release
5 years ago

oracle2mongo

build status codacy dependencies npm

Quick Oracle 2 Mongo copy

Documentation

TypeDoc documentation

Usage

ES6

const O2M = require('oracle2mongo').default;

TypeScript

import O2M from 'oracle2mongo';

ES6 and TypeScript cont.

// all attributes are *required*
const mongo = {
	database: '<mongodb-database-name>',
	server: 'mongodb://localhost:27017/'
};

// all attributes are *required*
const oracle = {
	user: '<oracle-username>',
	password: '<oracle-password>',
	connectString: '<oracle-host>:<oracle-port>/<oracle-service-or-sid>',
	owner: '<oracle-owner>'
};

// output dir is optional - if passed, there will be a json file per oracle table created, with all data
const outputDir = '<somewhere>/<someDir>';

// exclude array is optional - if passed, tables listed in the array will be excluded from copy
const exclude = ['some_table', 'other_table'];

new O2M(oracle, mongo, outputDir)
	.verbose()		// <- optional
	.copy(exclude)
	.then(() => true)
	.catch(err => console.error);
0.4.0

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago