@sqb/oracle
v6.0.12
Published
SQB serialization extension for Oracle database
Readme
About SQB
SQB is an extensible, multi-dialect SQL query builder and Database connection wrapper for NodeJS.
About @sqb/oracle
This package is a SQB Adapter for Oracle Database, backed by the official
oracledb driver. It supports cursors, working
schemas, and INSERT ... RETURNING / UPDATE ... RETURNING (emulated with a follow-up SELECT,
using the row's ROWID for inserts).
oracledb can run in two modes:
- Thin mode (
driverOptions: { direct: true }) — pure JavaScript, no Oracle Client installation required. - Thick mode (the default) — uses Oracle Client libraries for features thin mode doesn't yet
support. The adapter locates them automatically by scanning
LD_LIBRARY_PATHandORA_HOMEforlibclntsh.so/libclntsh.dylib/oci.dll.
Installation
$ npm install @sqb/oracle --saveUsage
import '@sqb/oracle';
import { SqbClient } from '@sqb/connect';
const client = new SqbClient({
driver: 'oracledb',
host: 'localhost',
port: 1521,
database: 'FREEPDB1',
user: 'system',
password: 'yourPassword',
});Node Compatibility
- node >= 20.x
License
SQB is available under MIT license.
