A minimal ORM for Node.js wrapping the node-oracledb driver. Version 1.2.4 supports table schemas with common data types (INTEGER, FLOAT, STRING, DATE), connection pooling, and CRUD operations (insert, delete, update, findOne, findAll, upsert, etc.). It includes basic aggregation methods (count, max, min, sum) and table management (define, sync, drop). Notable gaps: limited relationship support, no migration system, and sparse documentation. Release cadence appears low; last update likely 2023. Compared to Sequelize or TypeORM, this is a lightweight alternative tightly coupled to Oracle DB.
npm install oracle-orm-znNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to initialize ORM with Oracle connection pool, define a model, sync schema, and perform insert/findOne operations.
Manually manage schema migrations or avoid sync() on production databases.
Check err.errorcode and err.errormsg properties manually.
Install oracledb per Oracle instructions and ensure Instant Client is available.
Explicitly set length in column definitions to ensure consistent behavior across versions.
Ensure orm.init() is called and awaited before any database operations.
Use a valid Easy Connect string like 'host:port/service_name' or set TNS_ADMIN environment variable.
Verify orm.define() returns a Model instance and that you've awaited any async setup.
Install Oracle Instant Client (basiclite package) and set environment variables per oracledb docs.