starr/db.py
async def fetch_rows(
        self, q: str, *values: t.Any, conn: asyncpg.Connection
    ) -> t.Optional[t.List[t.Iterable[t.Any]]]:
        """Read all rows of applicable data."""
        query = await conn.prepare(q)
        if data := await query.fetch(*values):
            return [*map(lambda r: tuple(r.values()), data)]

        return None
Read all rows of applicable data.
Read all rows of applicable data.
Read all rows of applicable data .
async def fetch_rows(
        self, q: str, *values: t.Any, conn: asyncpg.Connection
    ) -> t.Optional[t.List[t.Iterable[t.Any]]]:
        query = await conn.prepare(q)
        if data := await query.fetch(*values):
            return [*map(lambda r: tuple(r.values()), data)]
        return None
async def fetch_rows ( self , q : str , * values : t . Any , conn : asyncpg . Connection ) -> t . Optional [ t . List [ t . Iterable [ t . Any ] ] ] : query = await conn . prepare ( q ) if data := await query . fetch ( * values ) : return [ * map ( lambda r : tuple ( r . values ( ) ) , data ) ] return None
Read all rows of applicable data.
Read all rows of applicable data .
"""Read all rows of applicable data."""
self
q
str
values
t.Any
conn
asyncpg.Connection