Skip to content

Instantly share code, notes, and snippets.

@rustyrazorblade
Created November 14, 2014 20:02
Show Gist options
  • Save rustyrazorblade/8db48d94c600408ec19c to your computer and use it in GitHub Desktop.
Save rustyrazorblade/8db48d94c600408ec19c to your computer and use it in GitHub Desktop.
from cassandra.cluster import Cluster
from cassandra.query import SimpleStatement
c = Cluster()
s = c.connect("test")
stmt = SimpleStatement("create table test2 ( id int primary key, v int )")
s.execute(stmt, trace=True)
trace = stmt.trace
for x in trace.events:
print x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment