Skip to main content

All Questions

0 votes
1 answer
246 views

How can I select * from table, but cast one or more of the columns to a different datatype using ORM (Sqlalchemy)

I have this multiple orm model for fastapi endpoint like this: @mapper_registry.mapped @dataclass class Department: __tablename__ = "department" __sa_dataclass_metadata_key__ = &...
Isaac's user avatar
  • 25
0 votes
1 answer
330 views

Gunicorn kills workers while using oracledb + sqlalchemy

I had my FastAPI application running for longer period of time, but recently I've added SQLAlchemy to connect to Oracle database. While I'm running app locally everything is working fine, but as soon ...
Cysio's user avatar
  • 53