Code Monkey home page Code Monkey logo

oracle2mongo's Introduction

Predrag Stojadinovic

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);

oracle2mongo's People

Contributors

cope avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.