Repository navigation
Comparing changes
Open a pull request
base repository: sqlalchemy-continuum/sqlalchemy-continuum
base: 1.9.0
head repository: sqlalchemy-continuum/sqlalchemy-continuum
compare: 2.0.0
- 9 commits
- 29 files changed
- 1 contributor
Commits on Oct 14, 2026
-
Add support for versioning SQLModel models
Version and transaction classes are built on the model's declarative base. For SQLModel models that resolves to the SQLModel class, which isn't a declarative base, so mapper configuration failed with AttributeError: registry. When a model's base doesn't own its mapper registry, generate a base from that registry instead. The SQLModel tests run on the SQLAlchemy 2.x CI legs and tox envs via a new test-sqlmodel dependency group. Refs #271
Configuration menu - View commit details
-
Copy full SHA for c7f3645 - Browse repository at this point
Copy the full SHA c7f3645View commit details -
Test the documented SQLModel setup on the default registry
The docs example declares models on SQLModel's default registry with user_cls=None, while the other SQLModel tests use a registry per test. Cover that setup too, including table placement in SQLModel.metadata, and dispose of the default registry afterwards so later declarations of the same names don't collide. Also add the missing :param: field to resolve_declarative_base.
Configuration menu - View commit details
-
Copy full SHA for 8ea5cda - Browse repository at this point
Copy the full SHA 8ea5cdaView commit details -
Merge pull request #410 from sqlalchemy-continuum/feat/sqlmodel-support
Add support for versioning SQLModel models
Configuration menu - View commit details
-
Copy full SHA for b9cf962 - Browse repository at this point
Copy the full SHA b9cf962View commit details -
Drop support for SQLAlchemy 1.4
SQLAlchemy 1.4 is end of life (its last release, 1.4.54, shipped in September 2024). The supported range is now >=2.0.2,<2.2: on 2.0.0 and 2.0.1, version classes for joined-table inheritance fail to map ("Implicitly combining column ... transaction_id"), and the full suite passes from 2.0.2. Remove the 1.4 CI leg and tox factor along with its constraints file, fold SQLModel into the test dependency group, and drop compat code and tests that only applied to SQLAlchemy before 2.0.Configuration menu - View commit details
-
Copy full SHA for 40f6c1e - Browse repository at this point
Copy the full SHA 40f6c1eView commit details -
Replace legacy Query usage with 2.0-style select()
SQLModel's Session deprecates query() and execute(), so version lookups, version relationships, changed_entities, vacuum(), count_versions() and ActivityPlugin each warned when used through a SQLModel session. Build select() statements and run them with session.scalars()/scalar() instead; results are unchanged. Dynamic relationships keep returning a Query, as their parent relationships do, and obj.versions still warns because SQLAlchemy's dynamic loader calls query() itself. RelationshipBuilder.process_query() is removed, and the fetchers' previous_query() and next_query() now return a Select.
Configuration menu - View commit details
-
Copy full SHA for e5053a4 - Browse repository at this point
Copy the full SHA e5053a4View commit details -
Pass the matrix Python to uv run in CI
.python-version pins 3.13, so on every other matrix leg uv run --no-sync warned that the venv doesn't satisfy that request. Passing the matrix version with --python makes the request match the venv.
Configuration menu - View commit details
-
Copy full SHA for 7c8ac57 - Browse repository at this point
Copy the full SHA 7c8ac57View commit details -
Make version relationship results unique, as Query.all() did
A version's relationship to a non-versioned model selects that model, so the model's own loader options apply. When it joined-eager-loads a collection, SQLAlchemy requires unique() before all(), so reading the relationship raised InvalidRequestError after the move to select(). The legacy Query.all() applied unique() implicitly.
Configuration menu - View commit details
-
Copy full SHA for a1cc424 - Browse repository at this point
Copy the full SHA a1cc424View commit details -
Merge pull request #411 from sqlalchemy-continuum/feat/drop-sqlalchem…
…y-1.4 Drop support for SQLAlchemy 1.4
Configuration menu - View commit details
-
Copy full SHA for ee48ba3 - Browse repository at this point
Copy the full SHA ee48ba3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8596b23 - Browse repository at this point
Copy the full SHA 8596b23View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 1.9.0...2.0.0