GithubHelp home page GithubHelp logo

bekirozyurt / sequelize-oracle Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adeo-proxideco/sequelize-oracle

0.0 2.0 0.0 40.44 MB

Sequelize is an easy-to-use multi sql dialect object-relationship-mapper for node.js. It currently supports MySQL, MariaDB, SQLite and PostgreSQL. This fork add support for Oracle

Home Page: http://sequelizejs.com

License: MIT License

JavaScript 99.57% Shell 0.21% Makefile 0.23%

sequelize-oracle's Introduction

Sequelize-oracle

This repository is no longer maintained

--

Bitdeli Badge Build Status Dependency Status Code Climate Test Coverage

Sequelize is a promise-based Node.js/io.js ORM for Postgres, MySQL, MariaDB, SQLite, Microsoft SQL Server and Oracle. It features solid transaction support, relations, read replication and more.

Note

sequelize-oracle is a fork of sequelize@master
This fork add support of DML statements for Oracle
If you don't need Oracle support, prefer the original Sequelize

[email protected] is in development. Only the old version (1.7.10-x.x) is on npmjs registry.

Compatibility:

Sequelize-oracle is compatible only with [email protected] and [email protected] (with oracledb >= 0.6).
Sequelize-oracle is only tested with Oracle 11 XE and [email protected]

Installation

The basic install steps are:

  • Install oracledb

    • Install the small, free Oracle Instant Client libraries if your database is remote, or have a local database such as the free Oracle XE release.
    • Run npm install oracledb to install from the NPM registry.

    See INSTALL for details.

  • Install sequelize-oracle

    • Run npm install sequelize-oracle to install from the NPM registry.

Oracledb config in Sequelize-Oracle

  • With Oracledb, the maximum number of rows that are fetched by select query is 100 rows. You can change this parameter with options.maxRows in each query.
  • In Sequelize, for Raw query, the outFormat parameter for oracledb is OBJECT.
  • AutoCommit is enable by default. If you don't want autoCommit, use Sequelize Transactions for manage commit et rollback.

Limitations:

  • DataType: only this dataTypes are managed:
    • STRING (=VARCHAR2)
    • CHAR
    • DECIMAL (=NUMBER)
    • BIGINT (=NUMBER(19,0))
    • INTEGER
    • FLOAT
    • DOUBLE
    • UUID (=CHAR 36)
    • DATE (=TIMESTAMP WITH LOCAL TIME ZONE)
    • DATEONLY (=DATETIME)
    • BOOLEAN (=NUMBER(1))
  • Index: index type is not fully managed

Todo:

  • ENUM DataType
  • improve index for type
  • resolve the pb "name column length > 30 char" in nesteed querry
  • ...

Sequelize

Build Status Dependency Status Test Coverage Bountysource Flattr this

Sequelize is a promise-based Node.js/io.js ORM for Postgres, MySQL, MariaDB, SQLite and Microsoft SQL Server. It features solid transaction support, relations, read replication and more.

Documentation

Installation

npm install sequelize

From 3.0.0 and up Sequelize will follow SEMVER. 3.0.0 contains important security fixes so we highly recommend that users upgrade.

If you still use 1.7 please prefer to Upgrading to 2.0 and the changelog between 2.0 and 3.0. 2.1 also has a breaking change.

Features

  • Schema definition
  • Schema synchronization/dropping
  • 1:1, 1:M & N:M Associations
  • Through models
  • Promises
  • Hooks/callbacks/lifecycle events
  • Prefetching/association including
  • Transactions
  • Migrations
  • CLI (sequelize-cli)

Resources

sequelize-oracle's People

Contributors

3ch01c avatar bromanko avatar bulkan avatar clkao avatar danielschwartz avatar davidtpate avatar durango avatar elliotf avatar guersam avatar iamjochem avatar janmeier avatar lebretr avatar lemon-tree avatar mickhansen avatar mweibel avatar optilude avatar overlookmotel avatar quiddle avatar reedog117 avatar ricardograca avatar saschagehlich avatar schonfeld avatar sdepold avatar seth-admittedly avatar sohumb avatar sveinnfannar avatar terraflubb avatar thanpolas avatar v12 avatar vpontis 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.