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

Version Path
eurydice-1.2.6-java examples/02_create_keyspace.rb
eurydice-1.2.5-java examples/02_create_keyspace.rb
eurydice-1.2.4-java examples/02_create_keyspace.rb
eurydice-1.2.3-java examples/02_create_keyspace.rb
eurydice-1.2.2-java examples/02_create_keyspace.rb
eurydice-1.2.1-java examples/02_create_keyspace.rb
eurydice-1.2.0-java examples/02_create_keyspace.rb
eurydice-1.1.1.b1-java examples/02_create_keyspace.rb
eurydice-1.1.0.b4-java examples/02_create_keyspace.rb
eurydice-1.1.0.b3-java examples/02_create_keyspace.rb
eurydice-1.1.0.b2-java examples/02_create_keyspace.rb
eurydice-1.0.3-java examples/02_create_keyspace.rb
eurydice-1.0.2-java examples/02_create_keyspace.rb
eurydice-1.0.1-java examples/02_create_keyspace.rb
eurydice-1.0.0-java examples/02_create_keyspace.rb