Skip to content

Instantly share code, notes, and snippets.

@chbatey
Created February 18, 2015 14:59
Show Gist options
  • Save chbatey/8b8465a7a33665e55d33 to your computer and use it in GitHub Desktop.
Save chbatey/8b8465a7a33665e55d33 to your computer and use it in GitHub Desktop.
CassandraConnector(conf).withSessionDo { session =>
session.execute("CREATE KEYSPACE IF NOT EXISTS test WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1 }")
session.execute("CREATE TABLE IF NOT EXISTS test.customer_events( customer_id text, time timestamp, id uuid, event_type text, " +
"store_name text, store_type text, store_location text, staff_name text, staff_title text, PRIMARY KEY ((customer_id), time, id))")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment