Skip to content

Instantly share code, notes, and snippets.

@justizin
Created July 1, 2012 20:03
Show Gist options
  • Save justizin/3029411 to your computer and use it in GitHub Desktop.
Save justizin/3029411 to your computer and use it in GitHub Desktop.
# schema creation for Telephus (Twisted Python Cassandra client) example code
# feed into cassandra-cli
connect localhost/9160;
create keyspace Keyspace1;
use Keyspace1;
create column family Standard1 with comparator = UTF8Type;
update column family Standard1 with column_metadata = [
{column_name: foo, validation_class: UTF8Type}];
create column family Super1 with column_type = 'Super' and comparator = 'UTF8Type' and caching='ALL';
create column family Counter1 with default_validation_class=CounterColumnType and replicate_on_write=true;
create column family SuperCounter1 with column_type='Super' and default_validation_class=CounterColumnType and replicate_on_write=true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment