This commit is contained in:
2024-06-14 23:32:45 +09:00
parent 08c090d7f2
commit c6c8385253
8 changed files with 98 additions and 8 deletions

View File

@ -90,5 +90,17 @@ async def update_user(user: schemas.User, id: int):
return {f"{id=} был обновлен"}
async def get_objects():
async with async_session() as session:
result = await session.scalars(select(models.Object))
return result.all()
async def get_values():
async with async_session() as session:
result = await session.scalars(select(models.Value))
return result.all()
async def get_stored_roles():
return await exec_procedure('get_roles')