问题标签 [cequel]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
ruby-on-rails - CQL Cassandra 缺少强制主键部分 id
我正在尝试创建记录,但出现此错误。
ruby-on-rails - 如何在 Cequel 中自定义表格名称?
对于 Cequel 记录/模式,名称由rake cequel:migrate. 但是我们如何在模型定义中分配一个名字呢?
我尝试了以下但没有奏效(Cequel 1.7.0):
ruby-on-rails - 没有 Rails 的 Ruby 的 Cequel Gem。如何加载配置?
我正在尝试设置 Cequel Gem 以与我现有的 Ruby 应用程序一起使用。据我所知,Cequel gem 需要 railtie 配置它以使用该配置(因为我的 cequel.yml 与 Rails 中的位置相同)。但是,似乎没有加载配置。
这应该如何在非 Rails 环境中完成?
ruby-on-rails - 在 cequel 中使用地图或列表类型
我正在尝试使用 Cassandra 和 Cequel 在 Rails 5 中定义一个 Box 类。有没有办法用地图类型定义列。
像这样的东西
有没有办法在 Rails 中使用 Cequel 来做到这一点?理想情况下像
或者,如果有其他更优选的存储坐标或列表信息的方式,请随时推荐。
ruby-on-rails - Cassandra Rails 不能做超过一列过滤器
Rails Cassandra 不能与超过一列的过滤器一起使用。
我的模态
有人可以帮我看看这有什么问题吗?
ruby - SystemStackError trying to call `.to_yaml` in a cequel object
I started to work in a legacy project and if I try to find a cequel record and then convert it to yaml:
#xA;I'm getting a stack level too deep error.
Checking deeper, there's a @record_collection instance variable defined in the cequel record, which it brings a copy of the same object and inside of this, another copy of the same and so on...:
The problem is, the ruby yaml parser, at some point, tries to parse all the instance variables of an object, which eventually derives in the mentioned SystemStackError.
Worth to mention this is only happening in this specific model, I mean, as far as I've seen, the @record_collection variable comes nil for another cequel models present in this project.
Not sure at all how this works, if this is a cequel bug or something not properly configured in the model, but... maybe has to do with cequel lazy loading?, anyway I'm running out of ideas here :(
ruby-on-rails - 使用 cequel 直接调用查询时出现 ArgumentError
我刚刚将 cequel 从 1.10.0 更新到 3.2.1,我有以下模型:
我有以下查询(这在 1.1.0 中可以正常工作):
但在 3.2.1 中,我收到:
whereuser_ids是一个带有 3 的数组。不知道我该如何解决这个问题,知道吗?
ruby-on-rails - Rails CQL 无法连接到 AWS Keyspaces (AWS Cassandra)
我正在尝试从 Ruby on Rails 应用程序连接到 AWS Keyspaces (AWS Cassandra),但我无法做到。我使用 cequel gem 并生成了 config/cequel.yml,其中包含与以下内容类似的内容:
(凭据在另一个应用程序中使用并且它们按预期工作。)
当我尝试运行时:
我收到以下错误:
