h-orm is a lightweight MySQL ORM for Node.js, version 0.0.11. It provides a simple promise-based API for common CRUD operations, connection pooling, and a model-based approach. Key differentiators include minimal configuration, support for like queries, and automatic status field handling for soft deletes. The package has a low release cadence and is suitable for small to medium projects.
npm install h-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows connection setup, model definition, and CRUD operations: find, create, update, delete.
Pre-validate data before passing to create/update operations.
Always call the model instance as a function or chain methods: `const results = await MyModel().find(1);`
Call `model('table', schema, { status: 'active' })` to enable soft delete; then `delete()` will set `active=0` instead of removing the row.Consider migrating to an actively maintained ORM like Sequelize or TypeORM.
Run: npm install mysql
Use `Model().find(1)` (with parentheses after Model).
Add the status field to the schema: `horm.model('table', { status: Number, ...otherFields })` and ensure the table has the column.Increase pool limit or implement custom reconnection logic. The package does not handle reconnections automatically.
No dependency data recorded yet.