Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eggjs orm plugin specification #388

Closed
jtyjty99999 opened this issue Feb 15, 2017 · 18 comments
Closed

eggjs orm plugin specification #388

jtyjty99999 opened this issue Feb 15, 2017 · 18 comments

Comments

@jtyjty99999
Copy link
Member

@jtyjty99999 jtyjty99999 commented Feb 15, 2017

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:

  • transform table to object, and use files under app/models to define.
  • Relationship between several tables.
  • Syntactic sugar for query, update, delete etc.
    ...

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

@atian25
Copy link
Member

@atian25 atian25 commented Feb 15, 2017

@popomore
Copy link
Member

@popomore popomore commented Feb 18, 2017

@atian25 maybe RFC

@popomore
Copy link
Member

@popomore popomore commented Feb 18, 2017

@jtyjty99999
Copy link
Member Author

@jtyjty99999 jtyjty99999 commented Feb 23, 2017

Now we see some points in specification:

  • Directory for defining data models like app/model or app/models
  • File name specification for data model
  • How to access data model, by ctx/app
  • plugin pattern
    • config
    • heartbeat request
    • tracelog
    • event handle like onerror, ondisconnect, onconnect
@atian25
Copy link
Member

@atian25 atian25 commented Feb 24, 2017

only use app/model, not s

@popomore
Copy link
Member

@popomore popomore commented Feb 27, 2017

@StoneRen
Copy link

@StoneRen StoneRen commented Mar 29, 2017

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
Copy link

@guzuomuse guzuomuse commented Mar 29, 2017

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

@popomore
Copy link
Member

@popomore popomore commented Apr 28, 2017

We recommend use egg-sequelize, see #388

@popomore popomore closed this Apr 28, 2017
@hyurl
Copy link

@hyurl hyurl commented Dec 3, 2017

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
Copy link

@mofashi998 mofashi998 commented Jan 3, 2019

目前有什么进展吗?

@wineforyou
Copy link

@wineforyou wineforyou commented Feb 16, 2020

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

@lizeyue326
Copy link

@lizeyue326 lizeyue326 commented Apr 5, 2020

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

@tangmingxing1988
Copy link

@tangmingxing1988 tangmingxing1988 commented Apr 8, 2020

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

@darrenliuwei
Copy link

@darrenliuwei darrenliuwei commented Apr 9, 2020

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

不是还有egg-sequelize么?

@xgqfrms
Copy link

@xgqfrms xgqfrms commented May 9, 2020

ORM & ODM

(SQL) mysql & (NoSQL) mongodb

@qq578023708
Copy link

@qq578023708 qq578023708 commented Jun 3, 2020

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

@juukee
Copy link

@juukee juukee commented Jun 9, 2020

不造ORM?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
You can’t perform that action at this time.