Registry / database / emu-orm

emu-orm

JSON →
library1.1.7jsnpmunverified

A simple JavaScript ORM for SQL Server built on seriate. Version 1.1.7 is the current stable release. It provides basic ORM functionality for SQL Server databases, with a focus on ease of use. The library is not actively maintained and has limited documentation. It is suitable for simple projects requiring quick setup with SQL Server.

npm install emu-orm
INSTALL
IMPORT
SIG · EMU-ORM
E
emu-orm
databasejavascriptv1.1.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Model
const Model = require('emu-orm').Model;
import { Model } from 'emu-orm';
Package uses CommonJS; ESM not supported.
Table
const Table = require('emu-orm').Table;
const { Table } = require('emu-orm');
Named export, but require destructuring works too.

Creates a Model for Users table and retrieves a record by ID using Promises.

const Model = require('emu-orm').Model; const Table = require('emu-orm').Table; var usersModel = new Model('Users', { table: new Table({name: 'Users'}), connection: { /* seriate connection config */ } }); usersModel.findById(1).then(function(user) { console.log(user); }).catch(function(err) { console.error(err); });
Debug
Known issues
deprecatedPackage is in maintenance mode; no active development.
fix
Consider migrating to a more actively maintained ORM like Sequelize or TypeORM.
affects: >=1.0.0
gotchaRequires seriate dependency; ensure seriate is properly configured.
fix
Install seriate and configure connection as per seriate docs.
affects: >=1.0.0
Errors
Common errors & fixes
Cannot find module 'seriate'
seriate is not installed or not in node_modules.
fix
Run npm install seriate
Model is not a constructor
Incorrect import: using ES6 import syntax.
fix
Use require('emu-orm').Model instead of import.
Upgrade
Version history
1.1.7latest on npm
Audit
Dependencies
seriaterequiredCore dependency for SQL Server connectivity
Agent activity
9 hits · last 30 days
node
8
Resources
emu-orm — npm install emu-orm · libregistry