CaminteJS is a cross-database ORM for Node.js (v0.4.1, no recent releases) that provides a unified interface to interact with multiple databases including MySQL, PostgreSQL, SQLite, MongoDB, Redis, Neo4j, CouchDB, RethinkDB, and more. It features a model-driven approach with support for relationships, validations, query building, hooks, and a CLI for scaffolding. Unlike ORMs like Sequelize or Mongoose that are tied to specific databases, CaminteJS offers flexibility to switch backends with minimal code changes, though its last update was in 2017 and it relies on separate adapter packages which may be unmaintained.
npm install caminteNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes a schema with MySQL, defines a Post model with various types, creates a record, and logs the result.
Consider migrating to a more modern ORM like Sequelize or Prisma that are actively maintained.
Install the adapter for your database, e.g., npm install caminte-mysql.
Wrap calls in Promises manually or use a library like 'promise' to convert callback-based functions.
Run: npm install caminte-mysql (or caminte-postgres, caminte-mongodb, etc.)
Upgrade caminte to at least 0.3.0 and ensure correct import.
ALTER USER 'user'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
No dependency data recorded yet.