Closed pythononwheels closed 6 years ago
so result_to_object should return a generator function
def res(): .... yield
code:
res= Model.find_all() # same as Model.find()
object = next(res)
Done for MongoDB Models.
Unneccessary for All SQL (returning a cursor)
started for tinyDB
Done
method very slow compared to db result while converting large resultsets to objects.