ormar-orm
ormar
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
feat: support OrmarConfig(comment=...) for table comments (#1700) Forwarded to the underlying sqlalchemy.Table and emitted by metadata.create_all() on PostgreSQL and MySQL (SQLite ignores it). copy() inherits the parent comment by default; pass comment=None explicitly to clear it. Closes #1240
master
6 days ago
Merge branch 'master' into feat/issue-1240-table-comment
feat/issue-1240-table-comment
6 days ago
feat: support OrmarConfig(comment=...) for table comments Forwarded to the underlying sqlalchemy.Table and emitted by metadata.create_all() on PostgreSQL and MySQL (SQLite ignores it). copy() inherits the parent comment by default; pass comment=None explicitly to clear it. Closes #1240
feat/issue-1240-table-comment
6 days ago
fix: support pydantic 2.13 by invalidating cached model schema (#1694) * fix: support pydantic 2.13 by invalidating cached model schema Pydantic 2.13 changed how `TypeAdapter(Annotated[T, FieldInfo(...)])` — FastAPI's response-serializer pattern — resolves nested schemas: it now uses the cached child snapshot instead of walking the live model. As a result, reverse-relation fields that ormar's metaclass adds to related models in `expand_reverse_relationships` were invisible from nested dumps under pydantic 2.13. Invalidate the parent's cached schema by setting `__pydantic_complete__ = False` at the end of the ormar metaclass, so the next access recompiles afresh without the stale snapshot. Make the wrap-serializer fallbacks (forward + reverse relation) defensive against the broader value types (QuerysetProxy, dead weakproxy) that pydantic 2.13 now dispatches them with. Relax the pydantic upper bound so 2.13.x is accepted. * build: pin pydantic below 2.14 due to internals dependency Ormar relies on pydantic internals, so the upper bound is capped at <2.14 and must be bumped manually after verifying compatibility with each new release. Refreshes the lock content-hash; resolved versions are unchanged (pydantic stays at 2.12.5).
master
10 days ago
Merge branch 'master' into fix/pydantic-213-defer-build
fix/pydantic-213-defer-build
10 days ago
build: pin pydantic below 2.14 due to internals dependency Ormar relies on pydantic internals, so the upper bound is capped at <2.14 and must be bumped manually after verifying compatibility with each new release. Refreshes the lock content-hash; resolved versions are unchanged (pydantic stays at 2.12.5).
fix/pydantic-213-defer-build
10 days ago
fix: support pydantic 2.13 by invalidating cached model schema Pydantic 2.13 changed how `TypeAdapter(Annotated[T, FieldInfo(...)])` — FastAPI's response-serializer pattern — resolves nested schemas: it now uses the cached child snapshot instead of walking the live model. As a result, reverse-relation fields that ormar's metaclass adds to related models in `expand_reverse_relationships` were invisible from nested dumps under pydantic 2.13. Invalidate the parent's cached schema by setting `__pydantic_complete__ = False` at the end of the ormar metaclass, so the next access recompiles afresh without the stale snapshot. Make the wrap-serializer fallbacks (forward + reverse relation) defensive against the broader value types (QuerysetProxy, dead weakproxy) that pydantic 2.13 now dispatches them with. Relax the pydantic upper bound so 2.13.x is accepted.
fix/pydantic-213-defer-build
10 days ago
build(deps-dev): bump pytest-codspeed from 4.5.0 to 5.0.2 (#1682) Bumps [pytest-codspeed](https://github.com/CodSpeedHQ/pytest-codspeed) from 4.5.0 to 5.0.2. - [Release notes](https://github.com/CodSpeedHQ/pytest-codspeed/releases) - [Changelog](https://github.com/CodSpeedHQ/pytest-codspeed/blob/master/CHANGELOG.md) - [Commits](https://github.com/CodSpeedHQ/pytest-codspeed/compare/v4.5.0...v5.0.2) --- updated-dependencies: - dependency-name: pytest-codspeed dependency-version: 5.0.2 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
master
14 days ago
Latest Branches
CodSpeed Performance Gauge
-10%
feat: support OrmarConfig(comment=...) for table comments
#1700
6 days ago
b8886bf
feat/issue-1240-table-comment
CodSpeed Performance Gauge
+47%
fix: support pydantic 2.13 by invalidating cached model schema
#1694
10 days ago
a23f777
fix/pydantic-213-defer-build
CodSpeed Performance Gauge
+5%
docs: clarify get/first/last MultipleMatches semantics
#1678
21 days ago
fc1ddb1
docs/clarify-get-first-multiple-matches
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs