objection.js 基于knex 构建的sql 友好的ORM 框架

objection.js 是基于knex 扩展的orm 框架,使用简单,功能强大其中的graph 操作很方便,而且支持hooks 可以进行扩展

支持的特性

  • 简单便捷的定义模型(包含关系)
  • 支持强大的sql crud 操作
  • 强大的对象图操作,eager loading,inserting,upserting
  • 方便的事务处理
  • ts 支持
  • json schema 校验

说明

nodejs 的orm框架不少,objection.js 也是一个值得使用的,简单强大

参考资料

https://github.com/vincit/objection.js
http://knexjs.org/
https://vincit.github.io/objection.js/guide/getting-started.html
https://typeorm.io/#/
https://github.com/typeorm/typeorm

posted on 2022-01-29 22:32  荣锋亮  阅读(355)  评论(0编辑  收藏  举报

导航