Buckets:

download
raw
565 Bytes
from sqlalchemy import select
from fief.models import Role
from fief.repositories.base import BaseRepository, UUIDRepositoryMixin
class RoleRepository(BaseRepository[Role], UUIDRepositoryMixin[Role]):
model = Role
async def get_granted_by_default(self) -> list[Role]:
statement = select(Role).where(Role.granted_by_default == True)
return await self.list(statement)
async def get_by_name(self, name: str) -> Role | None:
statement = select(Role).where(Role.name == name)
return await self.get_one_or_none(statement)

Xet Storage Details

Size:
565 Bytes
·
Xet hash:
d56243c1f2c7acc78331c2f32421b469e1fc3d5910a2248d59c8b7e7945de992

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.