sqlmodel icon indicating copy to clipboard operation
sqlmodel copied to clipboard

SQL databases in Python, designed for simplicity, compatibility, and robustness.

Results 350 sqlmodel issues
Sort by recently updated
recently updated
newest added

#### bug /This workaround fixes Pydantic serialization/deserialization while not modifying the internal alias logic. I cannot figure out why alias is not being passed through anymore. For example, I was...

Related #1369 #1334 I didn't update the `get_model_fields` type due to mypy complaining about differing function signatures. I wasn't sure if the old one should / could be changed.

The sqlmodel docs explain [how to delete a single row from a table](https://sqlmodel.tiangolo.com/tutorial/delete/). It's also useful to be able to delete multiple rows (or even all rows) at the same...

feature

I am trying to write a select statement that selects 5 different SQLModel children. However I get a type error as the overloads for select are limited to 4. Increasing...

feature

### Privileged issue - [x] I'm @tiangolo or he asked me directly to create an issue here. ### Issue Content At the moment, if you split the model file into...

see https://github.com/fastapi/sqlmodel/issues/229#issuecomment-2132852311 I'm not really sure how Pydantic does it, but here's a potential workaround to the problem.

feature

I add a IntEnum type decorator which I used in my private project. I wish it helps! ```python import enum class HeroStatus(enum.IntEnum): ACTIVE = 1 DISABLE = 2 from sqlmodel...

feature

Run the test suite not only on Ubuntu, but also on Windows and MacOS. To avoid getting an exponential number of tests, limiting the testing of older Python versions to...

internal

To add support for SQLAlchemy mapped collections, I'd like to add a case for `dict` origins to the Pydantic v2 `get_relationship_to` implementation. This PR does so, with a test case...

feature

This PR fixes https://github.com/fastapi/sqlmodel/issues/492#issuecomment-2489858633 by adding column-level db comments when a field description exists. I can add some tests if this is the sort of PR that would be accepted....

feature