Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /fief-dev_fief /fief /repositories /grant.py
| from pydantic import UUID4 | |
| from sqlalchemy import select | |
| from fief.models import Grant | |
| from fief.repositories.base import BaseRepository, UUIDRepositoryMixin | |
| class GrantRepository(BaseRepository[Grant], UUIDRepositoryMixin[Grant]): | |
| model = Grant | |
| async def get_by_user_and_client( | |
| self, user_id: UUID4, client_id: UUID4 | |
| ) -> Grant | None: | |
| statement = select(Grant).where( | |
| Grant.user_id == user_id, Grant.client_id == client_id | |
| ) | |
| return await self.get_one_or_none(statement) | |
Xet Storage Details
- Size:
- 533 Bytes
- Xet hash:
- 85614d16f1af189f28655a49d1e7d782aba3af8701498b1fcc79a62628651edc
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.