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)
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)
def __init__(self, connection): ThriftCursor.__init__(self, connection) self.last_session_id = None self.connection = connection