mevn-orm
v2.4.5
Published
simple ORM for express js
Downloads
28
Maintainers
Readme
Mevn-orm
const { Model } = require('mevn-orm')
class User extends Model {}
let columns = {
name: 'John Doe',
email: '[email protected]',
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