Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 25 lines (21 sloc) 0.575 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
require 'active_support/core_ext'
require 'cassandra-cql'

require 'cequel/helpers'

require 'cequel/batch'
require 'cequel/errors'
require 'cequel/cql_row_specification'
require 'cequel/data_set'
require 'cequel/keyspace'
require 'cequel/row_specification'

module Cequel
  def self.connect(configuration)
    thrift_options = configuration[:thrift] || {}
    Keyspace.new(
      CassandraCQL::Database.new(
        configuration[:host] || configuration[:hosts],
        {:keyspace => configuration[:keyspace]},
        thrift_options.symbolize_keys
      )
    )
  end
end
Something went wrong with that request. Please try again.