Registry / database / sbi-sequelize-oracle

sbi-sequelize-oracle

JSON →
library1.1.3jsnpmunverified

sbi-sequelize-oracle is a multi-dialect ORM for Node.js (forked from rmos/sbi-sequelize-oracle) with a focus on Oracle database support, though it also supports MySQL, SQLite, PostgreSQL, and MSSQL. This version (1.1.3) targets Node.js >=0.6.21 and is based on an early fork of Sequelize. It is no longer actively maintained; the main Sequelize project has advanced significantly with better Oracle support and broader compatibility. Use this only for legacy projects. Release cadence is low; no updates since the fork. Key differentiator: Oracle-specific patches not in original Sequelize at the time.

npm install sbi-sequelize-oracle
INSTALL
IMPORT
SIG · SBI-SEQUELIZE-ORAC
S
sbi-sequelize-oracle
databasejavascriptv1.1.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Sequelize
import Sequelize from 'sbi-sequelize-oracle'
const { Sequelize } = require('sbi-sequelize-oracle')
Default export; named destructure will be undefined.
Sequelize
const Sequelize = require('sbi-sequelize-oracle')
CommonJS require returns the Sequelize constructor.
DataTypes
import { DataTypes } from 'sbi-sequelize-oracle'
const DataTypes = require('sbi-sequelize-oracle').DataTypes
DataTypes is a named export, not a property of the default.
Model
import { Model } from 'sbi-sequelize-oracle'
const Model = require('sbi-sequelize-oracle').Model
Model is a named export, accessible via destructuring.

Connects to Oracle, defines a User model, syncs schema, and inserts a record.

import Sequelize from 'sbi-sequelize-oracle'; const sequelize = new Sequelize('database', 'username', 'password', { dialect: 'oracle', host: 'localhost', port: 1521 }); const User = sequelize.define('User', { username: Sequelize.STRING, birthday: Sequelize.DATE }); sequelize.sync().then(() => { return User.create({ username: 'john', birthday: new Date() }); }).then(user => { console.log('User created:', user.toJSON()); }).catch(err => { console.error('Error:', err); });
Debug
Known issues
deprecatedPackage is deprecated; consider using latest Sequelize with Oracle support instead.
fix
Migrate to sequelize@6+ with oracle driver.
affects: >=1.0.0
gotchaThe oracle driver dependency is not automatically installed; must be added manually.
fix
Install oracle package: npm install oracle.
affects: >=1.0.0
breakingDataTypes, Model, etc. are named exports; improper require usage may cause runtime errors.
fix
Use import destructuring: import { DataTypes } from 'sbi-sequelize-oracle'.
affects: >=1.0.0
Errors
Common errors & fixes
Cannot find module 'oracle'
Missing oracle native driver dependency.
fix
Run: npm install oracle
Sequelize is not a constructor
CommonJS require returns an object, not the class directly if using destructuring incorrectly.
fix
Use 'const Sequelize = require('sbi-sequelize-oracle')' without destructuring.
Upgrade
Version history
1.1.3latest on npm
Audit
Dependencies
oraclerequiredRequired for Oracle database connectivity
Agent activity
7 hits · last 30 days
node
6
Meta
1
Resources
sbi-sequelize-oracle — npm install sbi-sequelize-oracle · libregistry