Sha256: eb8befc730379f390ff852413f4dd99ea3530bf65933ef04c4c1ccf7c880778b
Contents?: true
Size: 584 Bytes
Versions: 15
Compression:
Stored size: 584 Bytes
Contents
# encoding: utf-8 require_relative 'common' cluster = Eurydice.connect # Get a reference to a keyspace, but don't automatically create it, instead # we will create it explicitly, and with a few options. keyspace = cluster.keyspace('my_keyspace', :create => false) # Create the keyspace with some options, the possible options can be found # here: http://www.datastax.com/docs/0.8/configuration/storage_configuration keyspace.create!( :strategy_class => 'org.apache.cassandra.locator.NetworkTopologyStrategy', :strategy_options => {:replication_factor => 3} ) keyspace.drop!
Version data entries
15 entries across 15 versions & 1 rubygems