Node.js Object Relational Mapping (ORM) library supporting MySQL, PostgreSQL, Amazon Redshift, SQLite, and MongoDB (beta). Version 8.0.1 is the latest stable release, but the package is not actively maintained. For new projects, alternatives like TypeORM or Sequelize are recommended due to more active communities. It supports model creation, associations, validations, caching, and plugins. Offers a simple callback-based API with Express middleware integration.
npm install ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to a MySQL database, defines a Person model, syncs the schema, creates a record, queries it, and updates the age.
Migrate to a supported ORM like TypeORM (github.com/typeorm/typeorm) or Sequelize (github.com/sequelize/sequelize).
Use a dedicated MongoDB ODM like Mongoose if you need MongoDB support.
Install pg version 8.1 or later: npm install pg@>=8.1
Run: npm install orm
Ensure MySQL is running on the expected host/port, or change the connection URL.
Check username and password in the connection string, or create a proper user with permissions.
Use: const orm = require('orm'); orm.connect(...)