mevn-orm

2.4.5 • Public • Published

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

Package Sidebar

Install

npm i mevn-orm

Weekly Downloads

2

Version

2.4.5

License

MIT

Unpacked Size

13.7 kB

Total Files

11

Last publish

Collaborators

  • stanleymasinde