Tag: activerecord

是否有一个Node.js和PostgreSQL的ActiveRecord框架?

我是Node.js的新手,来自Rails世界,我喜欢它提供的ActiveRecord模式/框架。 有没有像节点的东西? 或者我坚持build设查询? 另外,Postgres是我select的数据库。

什么是Node.js世界中的ActiveRecord等价?

我正在考虑为即将到来的项目使用node.js工具,用于学习和性能目的。 例如 ,Rails中的一些模型: class User has_many :topics has_many :friends has_many :friend_users, :through => :friends has_many :friend_topics, :through => :friend_users, :source => :topics end class Friend belongs_to :user belongs_to :friend_user, :class_name => "User", :foreign_key => :phone_no, :primary_key => :phone_no end class Topic belongs_to :user end 允许优雅的查询代码,如: latest_10_topics_from_friends = current_user.friend_topics.limit(10) 并生成优化的SQL。 在node.js生态系统中有类似的东西吗?