async def METHOD_NAME(
    app: web.Application,
    wallet_id: WalletID,
) -> list[WalletGroupGetDB]:
    stmt = (
        select(
            wallet_to_groups.c.gid,
            wallet_to_groups.c.read,
            wallet_to_groups.c.write,
            wallet_to_groups.c.delete,
            wallet_to_groups.c.created,
            wallet_to_groups.c.modified,
        )
        .select_from(wallet_to_groups)
        .where(wallet_to_groups.c.wallet_id == wallet_id)
    )
    async with get_database_engine(app).acquire() as conn:
        result = await conn.execute(stmt)
        rows = await result.fetchall() or []
        return parse_obj_as(list[WalletGroupGetDB], rows)