eggjs / egg

🥚 Born to build better enterprise frameworks and apps with Node.js & Koa
https://eggjs.org
MIT License
18.9k stars 1.82k forks source link

eggjs orm plugin specification #388

Closed jtyjty99999 closed 7 years ago

jtyjty99999 commented 7 years ago

Now there are more and more orm framework requirements, most orm framework are Active-record-pattern-like(https://en.wikipedia.org/wiki/Active_record_pattern), similar to the view plugin(https://eggjs.org/zh-cn/advanced/view-plugin.html), we need a specification for egg orm plugin.

Orm framework generally has the following features:

So let us discuss whether a specification is needed or not?

atian25 commented 7 years ago

currently, we got:

@popomore should we need proposal label?

popomore commented 7 years ago

@atian25 maybe RFC

popomore commented 7 years ago

Current we have https://github.com/eggjs/egg-labels/blob/master/labels.json

jtyjty99999 commented 7 years ago

Now we see some points in specification:

atian25 commented 7 years ago

only use app/model, not s

popomore commented 7 years ago

https://github.com/tgriesser/bookshelf

StoneRen commented 7 years ago

https://github.com/balderdashy/waterline Waterline is a next-generation storage and retrieval engine, and the default ORM used in the Sails framework It provides a uniform API for accessing stuff from different kinds of databases, protocols, and 3rd party APIs. That means you write the same code to get and store things like users, whether they live in Redis, MySQL, MongoDB, or Postgres.

guzuomuse commented 7 years ago

@atian25 @popomore how is going about this topic? we need an offical orm. is there a roadmap or timeline for this?

popomore commented 7 years ago

We recommend use egg-sequelize, see https://github.com/eggjs/egg/issues/388

hyurl commented 6 years ago

I have developed an ORM, Modelar, I recommend have a look at it, may satisfy egg needs, support MySQL/MariaDB, PostgreSQL, SQLite, MsSQL, OracleDB and DB2, similar to TypeORM, but written in pure JavaScript. https://github.com/hyurl/modelar Give me notice if you'd like it or have any suggests.

A demo has been published at cnode.org, please visit: https://cnodejs.org/topic/5a27b1add92f2f5b185acc68

mofashi998 commented 5 years ago

目前有什么进展吗?

wineforyou commented 4 years ago

我也想问下egg的orm...怎么样了

lizeyue326 commented 4 years ago

我也想问下egg的orm...怎么样了+1

tangmingxing1988 commented 4 years ago

设计了三年还没设计出来,这个项目算是死了,大家别用了。

darrenliuwei commented 4 years ago

设计了三年还没设计出来,这个项目算是死了,大家别用了。

不是还有egg-sequelize么?

xgqfrms commented 4 years ago

ORM & ODM

(SQL) mysql & (NoSQL) mongodb

qq578023708 commented 4 years ago

这个轮子看来是没精力造了

juukee commented 4 years ago

不造ORM?

Shijf commented 4 years ago

设计了三年还没设计出来,这个项目算是死了,大家别用了。 https://github.com/eggjs/egg-orm#readme 有了

topstop3416 commented 4 years ago

也许这就是生态吧

islittlezhou commented 3 years ago

我希望这个 orm 能像 mybatis中写 xml 一样, 不然又得学一遍 这个 orm 中的各种语法 使用方法。 最好能像 mybatis 一样, 组装sql

islittlezhou commented 3 years ago

为什么一点音信都没有啊 快点出来啊

alexjohndoe commented 2 years ago

https://github.com/eggjs/egg-orm/blob/master/Readme.zh-CN.md 感谢贡献者!终于出来了!Leoric 文档很赞!👍

bakenray commented 2 years ago

2022年了,官方ORM模型还在设计中,加油啊~~