simple ORM for express js
npm install mevn-orm!npm  !GitHub issues
Mevn ORM is a lightweight ORM for Express.js and MySQL that provides a clean, fluent interface for building queries and managing models.
It is under maintenance mode and receives security updates. Development is paused, but the core ORM functionality is complete and usable.
``javascript
const { Model } = require('mevn-orm')
class User extends Model {}
const user = await User.create({
name: 'John Doe',
email: 'john@example.com',
password: 'secret' // hash before storing
})
``
* Model-based abstraction
* Create, Read, Update, Delete support
* Chainable query builder (where, first, all)
* Timestamps
* Soft deletes
* SQLite support for testing
* Knex-based migration support
* [x] Model base class.create
* [x] , .find, .update, .delete.where()
* [x] , .first(), .all() chaininghasOne
* [x] Table name inference
* [x] Timestamps
* [x] Soft deletes
* [x] Basic relationship hooks (, hasMany, belongsTo)mysql2
* [x] Raw queries
* [x] Knex passthrough
* [x] SQLite3 test DB
* [x] Uses for productiondotenv
* [x] support
This project uses Vitest for testing.
`bash``
npm install
npm run migrate
npm run test