# sequelize-plugin-oracle

> Oracle dialect for sequelize

Latest version **6.6.5** (published 2024-08-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install sequelize-plugin-oracle
pnpm add sequelize-plugin-oracle
yarn add sequelize-plugin-oracle
bun add sequelize-plugin-oracle
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 6.6.5 |
| Published | 2024-08-28 |
| First published | 2021-11-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 106.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | maxwrlr |
| Maintainers | maxwrlr |
| Keywords | sequelize, plugin, oracle, typescript |

## Links

- npm: https://www.npmjs.com/package/sequelize-plugin-oracle
- Repository: https://github.com/maxwrlr/sequelize-plugin-oracle
- Homepage: https://github.com/maxwrlr/sequelize-plugin-oracle#readme
- Issues: https://github.com/maxwrlr/sequelize-plugin-oracle/issues
- npm.io page: https://npm.io/package/sequelize-plugin-oracle

## Dependencies (1)

- [js-crc](https://npm.io/package/js-crc.md) ^0.2.0

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 6.6.5 (latest) — 2024-08-28
- 6.6.4 — 2024-07-03
- 6.6.3 — 2024-04-16
- 6.6.2 — 2023-12-05
- 6.6.1 — 2023-12-05
- 6.6.0 — 2023-12-01
- 6.5.5 — 2023-06-01
- 6.5.4 — 2022-12-09
- 6.5.3 — 2022-11-17
- 6.5.2 — 2022-11-08
- 6.5.1 — 2022-11-08
- 6.5.0 — 2022-09-19
- 6.4.2 — 2022-09-12
- 6.4.1 — 2022-09-12
- 6.4.0 — 2022-09-08
- … 14 more at https://npm.io/package/sequelize-plugin-oracle/versions

## README

> ⚠️ **Deprecated** ⚠️
> 
> Since `sequelize@6.22.0`, Oracle is now supported officially.

# sequelize-plugin-oracle

[![npm sequelize-plugin-oracle package](https://img.shields.io/npm/v/sequelize-plugin-oracle.svg)](https://npmjs.org/package/sequelize-plugin-oracle)

This plugin adds oracle support to an independent [sequelize](https://github.com/sequelize/sequelize) installation at
run time. The dialect is based on [ts-sequelize](https://github.com/konnecteam/ts-sequelize), but it uses the native
pooling of [oracledb](https://github.com/oracle/node-oracledb).

## Compatibility

|sequelize-plugin-oracle|sequelize|
|---|---|
| \>= 6.2 | \>= 6.16
| 6.1 | 6.14 to 6.15
| 6.0 | 6.13

## Prerequisites

This plugin requires `sequelize` and `oracledb` to be installed.
They are not `peerDependencies` of this package, so the developer has to make sure it works together. 

## Usage

```typescript
// load oracle dialect...
import 'sequelize-plugin-oracle';
// now you can use sequelize with oracle dbs.
import {Sequelize} from 'sequelize';

// or everything in one line
// (sequelize-plugin-oracle exports sequelize)
import {Sequelize} from 'sequelize-plugin-oracle';

const sequelize = new Sequelize('oracle://...');
```

## How does it work?

When required, it overrides/wraps certain functions of sequelize to register the Oracle dialect.
That's kinda hacky, but it seems to work 😅.

---
_Source: https://npm.io/package/sequelize-plugin-oracle · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
