nuclear

simple db

Nuclear DB

var user = db.Model('user', 'name passwd createtime email', 'mysql')
 
var models = db.Model({
  user: 'name passwd createTime email',
  article: 'title createTime updateTime content user._id'
}, {
  db: 'mysql:dbhost.com:3306',
  user: 'admin:passwd'
})
// => models = {user: userModel, article: articleModel} 
user.add({name: Tony, age: 18})
user.find({user: 'Tony'})
user.update(uuid, {name: 'Lucy', age: 20})
user.remove(uuid)

Update and remove can just be called from uuid, just keep it really simple

support mock db