CleverStack ORM Module deeply integrates SequelizeJS into the CleverStack framework to provide an out-of-the-box Object Relational Mapper for SQL databases. Version 2.0.9 is the latest release, targeting Node.js 0.10-0.12 and npm 1.4-2.5. It supports MySQL, PostgreSQL, and SQLite. The module is part of the CleverStack ecosystem, offering enterprise-grade SQL database integration with features like model definitions, migrations, and seeding. It is designed for use within CleverStack projects and is not intended as a standalone ORM. The module is in maintenance mode due to the age of its dependencies and Node.js version constraints. Key differentiators include tight integration with CleverStack's module system and CLI tooling, but it is not recommended for new projects outside of the CleverStack framework.
npm install clever-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to initialize CleverORM with SQLite, define a model using the base Model class, register it, sync the database, and create a record.
Consider migrating to a modern ORM like Sequelize directly or TypeORM.
Use an older Node version or update the package source code to support newer Node.js.
Use an older npm version or install with --ignore-engines flag.
Ensure you have the CleverStack CLI and project structure. Alternatively, use Sequelize directly.
Always include super.init(attributes, { sequelize, modelName: 'yourmodelname' }); in your model class.Replace Grunt tasks with npm scripts or other task runners.
Run `clever install clever-orm` from your project root or `npm install clever-orm --save`.
Use the default export: `import CleverORM from 'clever-orm';` then instantiate with `new CleverORM({...})`.Use `service.sync()` to sync all registered models. For individual sync, use `model.sync()` after initialization.
Change dialect to 'postgres' or 'postgresql'.