A powerful TypeScript ORM that supports SQLite, PostgreSQL, and MySQL via drivers like better-sqlite3, pg, and tedious. Version 2.0.5 is the latest stable release, with active development and monthly releases. Key differentiators include a simple, type-safe API with automatic migration generation, support for eager and lazy loading, and a lightweight footprint compared to heavier ORMs like Sequelize or TypeORM.
npm install nexormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to define a model with schema, connect to SQLite, run migrations, and create a record.
Update code that awaited create() with .then() pattern; use await directly.
Replace 'Migration' with 'Schema' in imports and usage.
Ensure build tools are present; or use optional dependency flags.
Use PostgreSQL or SQLite for now, or manually patch drivers.
Replace raw() calls with QueryBuilder.executeRaw().
Run 'npm install better-sqlite3' manually, or switch to a different database.
Use 'import { NexORM } from 'nexorm'' instead of default import.Check host, port, and credentials; ensure PostgreSQL is running and accessible.