Skip to content

Instantly share code, notes, and snippets.

@moonpolysoft
Created August 24, 2010 07:33
Show Gist options
  • Select an option

  • Save moonpolysoft/547136 to your computer and use it in GitHub Desktop.

Select an option

Save moonpolysoft/547136 to your computer and use it in GitHub Desktop.
trait TestHelper {
def setupSchema(cass : Cassandra) {
val a = cass.admin
cass.admin { admin =>
admin.dropKeyspace("Keyspace")
admin.keyspace("Keyspace") { ks =>
ks.columnFamily("ColumnFamily") { cf => cf }
ks.superColumnFamily("SuperColumnFamily")
admin.create(ks)
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment