Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tag: v0.2.0
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (22 sloc) 0.639 kB
require 'pp'
require 'pathname'
require 'rubygems'
root_path = Pathname(__FILE__).dirname.join('..').expand_path
lib_path = root_path.join('lib')
$:.unshift(lib_path)
require 'adapter/cassanity'
client = CassandraCQL::Database.new('127.0.0.1:9160')
executor = Cassanity::Executors::CassandraCql.new(client: client)
connection = Cassanity::Connection.new(executor: executor)
keyspace = connection.keyspace('adapter_cassanity')
keyspace.recreate
AppsCF = keyspace.column_family(:apps, {
schema: Cassanity::Schema.new({
primary_key: :id,
columns: {
id: :timeuuid,
name: :text,
}
}),
})
AppsCF.create
Jump to Line
Something went wrong with that request. Please try again.