zxorm是一个scala的轻量级orm,代码简洁高效查询DBEntity.queryOne(classOf[User],"select*fromUserwherename=?",name)DBEntity.query(classOf[User],"select*fromUsers)")增加newUser(0,"tom",12).insert//id=1,name=tom,age=12newUser(0,"tomcat",18).insert("name")//id=2,name=tomcat,age=null修改newUser(2,"dog",22).update("id","name")//id=2,name=dog,age=18newUser(2,"tomcat",30).update("id")//id=2,name=tomcat,age=30
点击空白处退出提示
评论