Arcane ORM (v1.1.5) is a lightweight, schemaless ORM module for the arcane framework, designed for rapid prototyping and small-to-medium projects. It provides a simple model abstraction over databases with minimal configuration, supporting basic CRUD operations and relationship management. Unlike full-featured ORMs like Sequelize or TypeORM, it prioritizes simplicity over advanced features (migrations, complex joins). Release cadence is low, with infrequent updates.
npm install arcane-middleware-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a User model with schema, instantiates and saves a record, then fetches it by ID.
Add manual validation before saving or use a validation library.
Replace `Model.find()` with `Model.findAll()`.
Update relationship definitions: `hasMany('Post', { foreignKey: 'userId' })`.Declare module or use `// @ts-ignore`.
Run `npm install arcane-middleware-orm`.
Ensure you are calling `findById` on an instance? Actually, `findById` is a static method; check import: `import { defineModel } from 'arcane-middleware-orm'` then `const MyModel = defineModel(...)`.Use `any` or declare a module type: `declare module 'arcane-middleware-orm' { ... }`.No dependency data recorded yet.