mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2026-01-17 11:40:39 +03:00
add response_validation_exception_handler
This commit is contained in:
@@ -35,7 +35,7 @@ class Stuff(Base):
|
||||
|
||||
@classmethod
|
||||
@compile_sql_or_scalar
|
||||
async def find(cls, db_session: AsyncSession, name: str, compile_sql=False):
|
||||
async def get_by_name(cls, db_session: AsyncSession, name: str, compile_sql=False):
|
||||
stmt = select(cls).options(joinedload(cls.nonsense)).where(cls.name == name)
|
||||
return stmt
|
||||
|
||||
|
||||
Reference in New Issue
Block a user