Created
November 14, 2014 20:02
-
-
Save rustyrazorblade/8db48d94c600408ec19c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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