Doctor
Doctor
Yes, because creating page based pagination isn't that hard compared to keyset/cursor pagination.
@lowercase00 Databases don't support concurrent operations on same connection, that's not really a sqlalchemy issue, you can spawn more sessions if you need to. Session dependency could be created like...
Using a context manager is just more clean/pythonic way since it would not be possible to say forget to call `.close()` in that case
@reritom I'd personally recommend to not perform any database actions in your schema, better move them into your service layer 🤔
@b-bokma I'm currently using kubernetes and it's really easy to store your k8s secrets and configmaps in same format as your pydantic models: ```py class DatabaseSettings(BaseSettings): class Config: env_prefix =...
Just encountered the same issue while wanting to have a `Final` attribute that I'd only modify through core/raw sql statements, e.g.: ```py bookmark_count: Final[Mapped[int]] = mapped_column(default=0) ``` Mypy seems to...
@rxy1212 You can use `count` function via `sqlalchemy.func` object like in regular sql: ```python from typing import Optional from sqlalchemy import func from sqlmodel import Field, SQLModel, Session, create_engine, select...
Adding a generic exception handler should be relatively easy, or am I missing something? ```py import typing from starlette.requests import Request from starlette.responses import Response from starlette.websockets import WebSocket TException...
I encountered the same error with response classes @zadigus You can specify `response_model` manually but I'm not sure if that's correct here 🤔
> pydantic does not recognize `JSONReponse` as being a valid field type, pydantic documentation says to add `arbitrary_types_allowed` in the `Config` to allow for arbitrary user types: (https://docs.pydantic.dev/usage/model_config/) > >...