Beispiel #1
0
    def cursor(self, name=None):
        if name is None:
            return _connection.cursor(self, cursor_factory=DictCursor)
        else:
	    return _connection.cursor(self, name, cursor_factory=DictCursor)
Beispiel #2
0
 def cursor(self, name=None):
     self._check()
     if name is None:
         return _connection.cursor(self, cursor_factory=MinTimeLoggingCursor)
     else:
         return _connection.cursor(self, name, cursor_factory=MinTimeLoggingCursor)