Ejemplo n.º 1
0
 def fetchone(self):
     row = self.result.fetchone()
     if row is not None:
         handle = ffi.new_handle(Row(row))
         self.current_row_handler = handle
     else:
         handle = ffi.NULL
     return handle
Ejemplo n.º 2
0
 def fetchone(self):
     row = self.result.fetchone()
     if row is not None:
         handle = ffi.new_handle(Row(row))
         self.current_row_handler = handle
     else:
         handle = ffi.NULL
     return handle
Ejemplo n.º 3
0
def db_get_cursor():
    cursor = Cursor()
    handle = ffi.new_handle(cursor)
    handles.append(handle)
    return handle
Ejemplo n.º 4
0
def db_get_cursor():
    cursor = Cursor()
    handle = ffi.new_handle(cursor)
    handles.append(handle)
    return handle