Meir

Results 23 comments of Meir

Two options: ```python from typing import Optional from sqlalchemy import func from sqlmodel import Field, SQLModel, Session, create_engine class Table(SQLModel, table=True): id: Optional[int] = Field(primary_key=True) column: int engine = create_engine(...

You need to use mapping (https://docs.sqlalchemy.org/en/14/orm/inheritance.html) to achieve this, but it's a bit tricky with sqlmodel. 1. If you inherit from the SQLModel class with table=True you need to explicitly...

> If I do not care about minimizing the size of the database, is there still a problem with this? I think this is ok, and it looks like sqlalchemy...

Maybe I don't understand you correctly, but you are trying to do this: ```python from typing import Optional from pydantic import BaseModel from sqlmodel import Field, SQLModel class UserDataSchema(BaseModel): user_id:...

I think the purpose of SQLModel is to **couple** the data & database layers (SQLAlchemy & Pydantic) and **reuse** the same code. The correct way is to do it the...

It seems the problem is here: https://github.com/pydantic/FastUI/blob/cec25c61a7cc5a716d05d21039f95be3e8dac0e8/src/npm-fastui/src/components/ServerLoad.tsx#L15C14-L23 Maybe the condition should depend on `loadTrigger` and not on `components`: ```typescript export const ServerLoadComp: FC = ({ path, components, loadTrigger, sse })...

This is because the server uses `multiprocessing`, in each new process the `count` variable is different. This can be solved by using `multiprocessing.Value`: ```python import threading import time from multiprocessing...

Looking back I don't know if it matters. Yes, it doesn't work exactly as it should, but it only fails if the first part of the URL is dynamic, for...

I opened a new issue for the second part (feel free to work on it). The third one doesn’t cause any problem in the current implementation because even if the...

It is possible, I think the only problem that made me stop trying to fix it is that if you want to keep showing an error page with 404 (instead...