Beispiel #1
0
 def next(self):
     if self._query_executed:
         self._build_index()
     res = _cursor.fetchone(self)
     if res is None:
         raise StopIteration()
     return res
Beispiel #2
0
 def fetchone(self):
     if self._query_executed:
         self._build_index()
     return _cursor.fetchone(self)