GithubHelp home page GithubHelp logo

juliandavidmr / ddlify-oracle Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 2.0 48 KB

Ddlify, manage your database Oracle from NodeJS

Home Page: https://juliandavidmr.github.io/ddlify-oracle/

License: MIT License

JavaScript 4.68% TypeScript 94.96% Shell 0.36%
oracle-db npm-package information-security ddl database-adapter sql

ddlify-oracle's Introduction

Ddlify: Oracle database bindings for Node.js

Features

  • Promises
  • All version information
  • Connect
  • DDL
  • Describe procedures
  • Describe tables
  • Describe views
  • Describe secuences
  • Describe triggers
  • Describe procedures
  • Create models
  • Create schemas
  • Listing models

Installation

[IMPORTANT] First step, it is important to follow the installation guide before continuing. Installation guide

# Not available yet
$ npm install --save ddlify

API

Connect database

Connect to a local or remote database.

var ddlify = require('ddlify');


var dbConfig = {
    user: process.env.NODE_ORACLEDB_USER || "hr",

    // Instead of hard coding the password, consider prompting for it,
    // passing it in an environment variable via process.env, or using
    // External Authentication.
    password: process.env.NODE_ORACLEDB_PASSWORD || "welcome",

    // For information on connection strings see:
    // https://github.com/oracle/node-oracledb/blob/master/doc/api.md#connectionstrings
    connectString: process.env.NODE_ORACLEDB_CONNECTIONSTRING || "localhost/orcl",

    // Setting externalAuth is optional.  It defaults to false.  See:
    // https://github.com/oracle/node-oracledb/blob/master/doc/api.md#extauth
    externalAuth: process.env.NODE_ORACLEDB_EXTERNALAUTH ? true : false
};

ddlify.getConnection(dbConfig).then(connection => {
    console.log("Connection:\n", connection)
});

Get oracle information

ddlify.info(dbConfig).then(info => {
    console.log("Info:\n", info);
    /*=>
    Info:
    ['Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit   Production',
     'PL/SQL Release 12.1.0.2.0 - Production',
     'CORE 12.1.0.2.0 Production',
     'TNS for 64-bit Windows: Version 12.1.0.2.0 - Production',
     'NLSRTL Version 12.1.0.2.0 - Production' ]
    */
});

Describe table

var table = {
  name: 'USUARIO',
  owner: 'VISIBILIDAD'
}

ddlify.describe(table, dbConfig).then(info => {
  console.log(info)
});

Contributing

Ddlify-oracle is an open source project. See CONTRIBUTING for details.

LICENSE

This module is released under the [MIT License] license. @juliandavidmr

ddlify-oracle's People

Contributors

juliandavidmr avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ddlify-oracle's Issues

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on all branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because we are using your CI build statuses to figure out when to notify you about breaking changes.

Since we did not receive a CI status on the greenkeeper/initial branch, we assume that you still need to configure it.

If you have already set up a CI for this repository, you might need to check your configuration. Make sure it will run on all new branches. If you don’t want it to run on every branch, you can whitelist branches starting with greenkeeper/.

We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

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.