gpt4 book ai didi

ruby-on-rails - 我可以在没有 activerecord 的情况下使用 hyperstack 吗?

转载 作者:太空宇宙 更新时间:2023-11-03 18:03:26 24 4
gpt4 key购买 nike

我使用 rethinkdb 和 nobrainer 作为我的 ODM。 Hyperstack 会与我的模型同步吗?即后端数据库和前端之间的状态同步?

最佳答案

截至目前,HyperStack/HyperModel 直接依赖于 ActiveRecord,因此如果不同时使用 ActiveRecord,则无法真正利用此库。

摘自 hyper-model.gemspec

spec.add_dependency 'activerecord', '>= 4.0.0'

这似乎是由于 ActiveRecord API 绑定(bind):https://hyperstack.org/edge/docs/dsl-isomorphic/models#activerecord-api

Hyperstack uses a subset of the standard ActiveRecord API to give your Isomorphic Components, Operations and Stores access to your server side Models. As much as possible Hyperstack follows the syntax and semantics of ActiveRecord.

关于ruby-on-rails - 我可以在没有 activerecord 的情况下使用 hyperstack 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55972414/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com