(self, req, arg=None)
Unlike sqlite's native select, this select doesn't handle iteration efficiently.

        The result of `select` starts filling up with values as soon as the
        request is dequeued, and although you can iterate over the result normally
        (`for res in self.select(): ...`), the entire result will be in memory.
Unlike sqlite's native select, this select doesn't handle iteration efficiently.
Unlike sqlite s native select this select doesn t handle iteration efficiently .
def select(self, req, arg=None):
        """
        Unlike sqlite's native select, this select doesn't handle iteration efficiently.

        The result of `select` starts filling up with values as soon as the
        request is dequeued, and although you can iterate over the result normally
        (`for res in self.select(): ...`), the entire result will be in memory.
        """
        res = Queue()  # results of the select will appear as items in this queue
        self.execute(req, arg, res)
        while True:
            rec = res.get()
            self.check_raise_error()
            if rec == '--no more--':
                break
            yield rec
def select ( self , req , arg = None ) : res = Queue ( ) # results of the select will appear as items in this queue self . execute ( req , arg , res ) while True : rec = res . get ( ) self . check_raise_error ( ) if rec == '--no more--' : break yield rec