https://github.com/dresende/node-orm2/blob/v2.1.20/lib/AggregateFunctions.js#L36 Person.find({status:
ORM2ORM2貌似没有正了八经的官网,所以看起来就特别麻烦,但是可以看一下github介绍node-orm2,只支持四种数据库MySQL、PostgreSQL、Amazon Redshift、SQLite limit(3) .offset(2)//跳过 .only("name", "age")//返回字段 .run(function(err, data) { });所以,准确应该是node-orm2
ORM2 ORM2貌似没有正了八经的官网,所以看起来就特别麻烦,但是可以看一下github介绍node-orm2,只支持四种数据库MySQL、PostgreSQL、Amazon Redshift、SQLite ) .offset(2)//跳过 .only("name", "age")//返回字段 .run(function(err, data) { }); 所以,准确应该是node-orm2
不过,如果你真的倾向于用 JS 实现一切,请查看 Sequelize(http://sequelizejs.com/) 和 Node ORM2(https://github.com/dresende/node-ORM2
不过,如果你真的倾向于用 JS 实现一切,请查看 Sequelize(http://sequelizejs.com/) 和 Node ORM2(https://github.com/dresende/node-ORM2