(cls, where=None, args=None, **kw)
return [cls(**r) for r in rs]
find objects by where clause.
find objects by where clause.
find objects by where clause .
async def findAll(cls, where=None, args=None, **kw):
	    ' find objects by where clause. '
	    sql = [cls.__select__]
	    if where:
	        sql.append('where')
	        sql.append(where)
	    if args is None:
	        args = []
	    orderBy = kw.get('orderBy', None)
	    if orderBy:
	        sql.append('order by')
	        sql.append(orderBy)
	    limit = kw.get('limit', None)
	    if limit is not None:
	        sql.append('limit')
	        if isinstance(limit, int):
	            sql.append('?')
	            args.append(limit)
	        elif isinstance(limit, tuple) and len(limit) == 2:
	            sql.append('?, ?')
	            args.extend(limit)
	        else:
	            raise ValueError('Invalid limit value: %s' % str(limit))
	    rs = await select(' '.join(sql), args)
	    return [cls(**r) for r in rs]
async def findAll ( cls , where = None , args = None , * * kw ) : sql = [ cls . __select__ ] if where : sql . append ( 'where' ) sql . append ( where ) if args is None : args = [ ] orderBy = kw . get ( 'orderBy' , None ) if orderBy : sql . append ( 'order by' ) sql . append ( orderBy ) limit = kw . get ( 'limit' , None ) if limit is not None : sql . append ( 'limit' ) if isinstance ( limit , int ) : sql . append ( '?' ) args . append ( limit ) elif isinstance ( limit , tuple ) and len ( limit ) == 2 : sql . append ( '?, ?' ) args . extend ( limit ) else : raise ValueError ( 'Invalid limit value: %s' % str ( limit ) ) rs = await select ( ' ' . join ( sql ) , args ) return [ cls ( * * r ) for r in rs ]