starr/db.py
async def fetch_row(
        self, q: str, *values: t.Any, conn: asyncpg.Connection
    ) -> t.Optional[t.List[t.Any]]:
        """Read 1 row of applicable data."""
        query = await conn.prepare(q)
        if data := await query.fetchrow(*values):
            return [r for r in data]

        return None
Read 1 row of applicable data.
Read 1 row of applicable data.
Read 1 row of applicable data .
async def fetch_row(
        self, q: str, *values: t.Any, conn: asyncpg.Connection
    ) -> t.Optional[t.List[t.Any]]:
        query = await conn.prepare(q)
        if data := await query.fetchrow(*values):
            return [r for r in data]
        return None
async def fetch_row ( self , q : str , * values : t . Any , conn : asyncpg . Connection ) -> t . Optional [ t . List [ t . Any ] ] : query = await conn . prepare ( q ) if data := await query . fetchrow ( * values ) : return [ r for r in data ] return None
Read 1 row of applicable data.
Read 1 row of applicable data .
"""Read 1 row of applicable data."""
self
q
str
values
t.Any
conn
asyncpg.Connection