YZY

Results 11 comments of YZY

I have the same problem. It occurs on windows(64bit) when parsing bigint. It's ok in Linux

> I have the same problem. It occurs on windows(64bit) when parsing bigint. It's ok in Linux i use python 3.9 amd64

I have no such problem on windows x64 - python ~= 3.9.0 - fastapi ~= 0.75.0 - uvicorn ~= 0.17.0 ![image](https://user-images.githubusercontent.com/37829370/158726023-32a98989-f866-4287-a623-459f8daf1f07.png)

I use aiomysql connection pool

You should create or change schema by using `dependency injection` in FastAPI. (in Step 3, 4, 5) And I suggest `tenant column`

It's better to use `DI` to create specific type

you can set `json_encoders` in pydantic model instead of `json_dumps` for example: `json_encoders = {float: lambda x: float(x)}`

It's a bug. The `response_model` should be a pydantic model or basic type. You can add one `response_model` to avoid the bug temporarily `@app.get("/favicon.ico", response_model=str)`

class Hero(SQLModel, table=True): id: Optional[int] = Field(default=None, primary_key=True) normhash: Optional[int] = Field(default=None, index=True, sa_column=Column(BigInteger()))

@unidesigner uhhhh, you can make it a column in sqlalchemy just like this: `id: int = Field( default_factory=next_val, sa_column=Column(BigInteger(), primary_key=True, autoincrement=False) )` and also, you can use sa_column_kwargs to set...