/mevn-orm

A simple ORM for express

Primary LanguageJavaScriptMIT LicenseMIT

This project has been archived

while I have a vision to create an intuitive ORM, I am not able to contitnue with this project at this time. I have to go back to the drawing board and come up with a better tool using the learnings from this.

Mevn-orm

npm GitHub license GitHub issues

   const { Model } = require('mevn-orm')

   class User extends Model {}

let columns = {
    name: 'John Doe',
    email: 'john@example.com',
    password: secret // remember to hash the password
}
User()
   .create(columns)
   .then(created => {
      // Do something after the creation
   })
   .catch(err => {
      // Handle the error
   })

// With aync await
const userId = await User.create(columns)

Still under development hence not ready for production