ormar
ormar copied to clipboard
python async orm with fastapi in mind and pydantic validation
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.
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...
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...
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...
**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() ```...
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...
**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...
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...
**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...
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() ```