Example #1
0
 def __init__(self, *args, **kwargs):
     self._tracer = kwargs.pop("_tracer", None)
     self._trace_stmt = kwargs.pop("_trace_stmt", None)
     _cursor.__init__(self, *args, **kwargs)
     self._tracer = self._tracer or getattr(self.connection, "_tracer",
                                            None)
     self._trace_stmt = self._trace_stmt or getattr(self.connection,
                                                    "_trace_stmt", None)
Example #2
0
 def __init__(self, *args, **kwargs):
     if kwargs.has_key("row_factory"):
         row_factory = kwargs["row_factory"]
         del kwargs["row_factory"]
     else:
         raise NotImplementedError("DictCursorBase can't be instantiated without a row factory.")
     _cursor.__init__(self, *args, **kwargs)
     self._query_executed = 0
     self._prefetch = 0
     self.row_factory = row_factory
Example #3
0
 def __init__(self, *args, **kwargs):
     if kwargs.has_key('row_factory'):
         row_factory = kwargs['row_factory']
         del kwargs['row_factory']
     else:
         raise NotImplementedError(
             "DictCursorBase can't be instantiated without a row factory.")
     _cursor.__init__(self, *args, **kwargs)
     self._query_executed = 0
     self.row_factory = row_factory
Example #4
0
 def __init__(self, *args, **kwargs):
     """
     Initialize the cursor object.
     """
     self._odt_desc = None
     _cursor.__init__(self, *args, **kwargs)
Example #5
0
 def __init__(self, *args, **kwargs):
     """
     Initialize the cursor object.
     """
     self._odt_desc = None
     _cursor.__init__(self, *args, **kwargs)
Example #6
0
 def __init__(self, *args, **kwargs):
     self._tracer = kwargs.pop("_tracer", None)
     self._trace_stmt = kwargs.pop("_trace_stmt", None)
     _cursor.__init__(self, *args, **kwargs)
     self._tracer = self._tracer or getattr(self.connection, "_tracer", None)
     self._trace_stmt = self._trace_stmt or getattr(self.connection, "_trace_stmt", None)