StanleyMasinde / mevn-orm

A simple ORM for express

Home Page:https://stanleymasinde.github.io/mevn-orm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A simple ORM for express

https://stanleymasinde.github.io/mevn-orm

License:MIT License


Languages

Language:JavaScript 100.0%