cequel

    0熱度

    1回答

    我想在Cassandra和Cequel的Rails 5中定義一個Box類。 有沒有辦法用地圖類型來定義一個列。 像這樣 create table Box (id int PRIMARY KEY, coordinates Map<text, int>) ,有沒有辦法在軌與Cequel做到這一點? 非常類似 class Box include Cequel::Record co

    1熱度

    1回答

    我使用Cequel作爲沒有導軌的Cassandra的ORM。 我嘗試創建一個簡單的項目列表時遇到問題。 首先我定義了三個應該屬於複合鍵的列。 class Project include Cequel::Record key :client, :text, { partition: true } key :type, :text, { partition: true

    1熱度

    1回答

    我已經開始在項目中使用Cequel,我無法弄清楚如何使用Counters表。我有以下定義: class Counter include Cequel::Record key :user_id, :text column :text, :counter column :int, :counter column :boolean, :counter

    2熱度

    1回答

    考慮以下僞CQL表結構: CREATE TABLE searches ( category text, timestamp timestamp, no_of_searches int, avg_searches double, PRIMARY KEY((category, timestamp), no_of_searches) ); 及以下的R