ormar icon indicating copy to clipboard operation
ormar copied to clipboard

python async orm with fastapi in mind and pydantic validation

Results 156 ormar issues
Sort by recently updated
recently updated
newest added

As described in #111 `QuerySet` methods should actually return inferred Model subclasses and not the main `ormar.Model`. Since I am not an expert in complex python typing any help appreciated.

enhancement
help wanted

Bumps [fastapi](https://github.com/tiangolo/fastapi) from 0.84.0 to 0.85.0. Release notes Sourced from fastapi's releases. 0.85.0 Features ⬆ Upgrade version required of Starlette from 0.19.1 to 0.20.4. Initial PR #4820 by @​Kludex. This...

dependencies
python

Hi, I'm currently missing some SQLAlchemy functionality for a project I'm currently working on. This functionality is **polymorphism. SQLAlchemy** provides the ability to create inheritance between classes by defining polymorphism...

enhancement

datetime field ignores `timezone` parameter in __new__ mehod Steps to reproduce the behavior: Let's say we have this model: import sqlalchemy from databases import Database from settings import settings database...

bug

**Describe the bug** I'm trying to get a single field from a filtered set of rows. I've tried the following: ```python branches = await ProjectDependency.objects.filter(project__id=project_id).values_list(fields=["git_branch"]) branches = await ProjectDependency.objects.filter(project__id=project_id).fields("git_branch").values_list() ```...

bug

I'm chinese, I want keep the origin char of Chinese when save some json to db. So, is there any way to pass ensure_ascii=False to ormar.JSON field type to do...

enhancement

**Describe the bug** Have such models ``` class A(ormar.Model): class Meta(BaseMeta): pass id = ormar.Integer(primary_key=True) class B(ormar.Model): class Meta(BaseMeta): pass id = ormar.Integer(primary_key=True) a = ormar.ForeignKey(A) ``` Trying to save...

bug

Hi, I have the same problem that [this issue](https://github.com/collerek/ormar/issues/685), But i was on ORMAR 0.10.25 and uploaded to 0.11.2 to get the fix and it keeps crashing. I think my...

bug

**Describe the bug** https://github.com/collerek/ormar/blob/a27d7673a5354429bef4158297d76a58522c1579/ormar/queryset/join.py#L112 Because `SqlJoin._on_clause` expects a `from_clause` string in the format of "table_name.column_name", if your table name has a period in it, the string will be chunked into...

bug

Implement Field Accessor Similar to `F()` Expressions in Django. ```python >>> await Person.objects.filter(age__ge=18).update(each=True, age=Person.age + 1) ``` ```python >>> await Movie.objects.filter(Movie.budget > Movie.revenue).all() ```

enhancement