Execute and return the first row, if available.
(self, session: AsyncSession)
| 63 | return list(await session.exec(self.statement)) |
| 64 | |
| 65 | async def first(self, session: AsyncSession) -> ModelT | None: |
| 66 | """Execute and return the first row, if available.""" |
| 67 | return (await session.exec(self.statement)).first() |
| 68 | |
| 69 | async def one_or_none(self, session: AsyncSession) -> ModelT | None: |
| 70 | """Execute and return one row or `None`.""" |
no test coverage detected