Пример #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)
Пример #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)
Пример #3
0
 def __init__(self, connection):
     ThriftCursor.__init__(self, connection)
     self.last_session_id = None
     self.connection = connection
Пример #4
0
 def __init__(self, connection):
     ThriftCursor.__init__(self, connection)
     self.last_session_id = None
     self.connection = connection