Esempio n. 1
0
 def execute(self,
             cql_query,
             params={},
             decoder=None,
             consistency_level=None,
             trace=True):
     if trace:
         self.last_session_id = UUID(
             bytes=self.connection.client.trace_next_query())
     ThriftCursor.execute(self,
                          cql_query,
                          params=params,
                          decoder=decoder,
                          consistency_level=consistency_level)
Esempio n. 2
0
 def execute(self, cql_query, params={}, decoder=None, 
             consistency_level=None, trace=True):
     if trace:
         self.last_session_id = UUID(bytes=self.connection.client.trace_next_query())
     ThriftCursor.execute(self, cql_query, params=params, decoder=decoder, 
                          consistency_level=consistency_level)
Esempio n. 3
0
 def __init__(self, connection):
     ThriftCursor.__init__(self, connection)
     self.last_session_id = None
     self.connection = connection
Esempio n. 4
0
 def __init__(self, connection):
     ThriftCursor.__init__(self, connection)
     self.last_session_id = None
     self.connection = connection