Questions tagged [cequel]

Cequel is a Ruby ORM for Cassandra using CQL3.

Cequel

Cequel is a Ruby ORM for Cassandra using CQL3.

Gem Version Build Status Dependency Status Code Climate Inline docs http://inch-ci.org/github/cequel/cequel.png

Cequel::Record is an ActiveRecord-like domain model layer that exposes the robust data modeling capabilities of CQL3, including parent-child relationships via compound primary keys and collection columns.

The lower-level Cequel::Metal layer provides a CQL query builder interface inspired by the excellent Sequel library.

See the ruby gem : https://github.com/cequel/cequel

22 questions
0
votes
0 answers

Cassandra Rails not able to do more then one column filter

Rails Cassandra not work with filter more then one column. my modal class Template include Cequel::Record key :id,:int,index:true column :u_id,:uuid,:auto=>true column :user_id, :int,index:true column :code_type,:text,index:true column…
jayesh
  • 2,422
  • 7
  • 44
  • 78
0
votes
1 answer

use map or list types in cequel

I'm trying to define a Box class in Rails 5 with Cassandra and Cequel. is there a way to define a column with the map type. something like this create table Box ( id int PRIMARY KEY, coordinates Map) is there a way to do this with…
Pita
  • 1,444
  • 1
  • 19
  • 29
0
votes
1 answer

How to customize Table name in Cequel?

For a Cequel record/schema, the name is generated by rake cequel:migrate. But how do we assign a name in the model definition? I tried the following but it did not work (Cequel 1.7.0): class MyInfo include Cequel::Record key :name, :text …
c360ian
  • 1,253
  • 1
  • 10
  • 18
0
votes
0 answers

Cassandra Database Error

Hi guys, when I run rake cequel:keyspace:create or rake cequel:migrate, I get this error. I searched my whole configuration file for 127.0.0.1 and replaced them with localhost:3001 but I still can't get past this error. Any help please? Thank you.
Brian Lau
  • 127
  • 14
0
votes
1 answer

Cannot find to_s method for #{Set}, Cequel set model attribute with Rails

In Cequel this is my model for RoR, class Fileinfo include Cequel::Record key :fileid, :timeuuid, auto: true column :filepath, :text, :index => true set :test, :int timestamps end Rails scaffold generates the form which is used for…
nishantmishra
  • 76
  • 2
  • 5
0
votes
1 answer

How to generate a delete statement with Cequel (Rails)

I want to generate a DELETE statement with Cequel: DELETE FROM users where pk = 'jsmith' and cc < 100; Let's say my user model looks like this class Users include Cequel::Record key :pk, :bigint, { partition: true } # partition key key…
Micka
  • 1,648
  • 1
  • 19
  • 34
0
votes
1 answer

rails 4 app with 2 databases: MySQL and Cassandra - where to begin?

Hi have an existing rails 4 app which is using a MySQL database. I now need to add code that creates dynamically a new table for every object and its attributes. I decided to use a No SQL solution for this. Initially I wanted to use Mongo DB since…
banditKing
  • 9,405
  • 28
  • 100
  • 157
1
2