Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: sqlalchemy-continuum/sqlalchemy-continuum
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.9.0
Choose a base ref
...
head repository: sqlalchemy-continuum/sqlalchemy-continuum
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2.0.0
Choose a head ref
  • 9 commits
  • 29 files changed
  • 1 contributor

Commits on Oct 14, 2026

  1. 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
    josecsotomorales committed Oct 14, 2026
    Configuration menu
    Copy the full SHA
    c7f3645 View commit details
    Browse the repository at this point in the history
  2. 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.
    josecsotomorales committed Oct 14, 2026
    Configuration menu
    Copy the full SHA
    8ea5cda View commit details
    Browse the repository at this point in the history
  3. Merge pull request #410 from sqlalchemy-continuum/feat/sqlmodel-support

    Add support for versioning SQLModel models
    josecsotomorales authored Oct 14, 2026
    Configuration menu
    Copy the full SHA
    b9cf962 View commit details
    Browse the repository at this point in the history
  4. 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.
    josecsotomorales committed Oct 14, 2026
    Configuration menu
    Copy the full SHA
    40f6c1e View commit details
    Browse the repository at this point in the history
  5. 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.
    josecsotomorales committed Oct 14, 2026
    Configuration menu
    Copy the full SHA
    e5053a4 View commit details
    Browse the repository at this point in the history
  6. 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.
    josecsotomorales committed Oct 14, 2026
    Configuration menu
    Copy the full SHA
    7c8ac57 View commit details
    Browse the repository at this point in the history
  7. 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.
    josecsotomorales committed Oct 14, 2026
    Configuration menu
    Copy the full SHA
    a1cc424 View commit details
    Browse the repository at this point in the history
  8. Merge pull request #411 from sqlalchemy-continuum/feat/drop-sqlalchem…

    …y-1.4
    
    Drop support for SQLAlchemy 1.4
    josecsotomorales authored Oct 14, 2026
    Configuration menu
    Copy the full SHA
    ee48ba3 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    8596b23 View commit details
    Browse the repository at this point in the history
Loading