Skip to content

v0.5.0

Latest

Choose a tag to compare

@parthjoshi90 parthjoshi90 released this 18 Oct 08:11
· 1 commit to main since this release

Added

  • compile_domain(spec, schema, entity=None) — optional entity argument to compile a domain against an aliased() entity

Changed

  • Domains compile against mapped ORM attributes instead of raw Table columns, so a compiled domain can be used with with_loader_criteria (including inside joinedload) for session-wide filtering
    • Relational EXISTS subqueries select from per-hop table aliases, so they never auto-correlate against the same table in an outer query
    • order_by resolves through mapped attributes
  • read_group() / aread_group() select from the mapped model class, so session-level with_loader_criteria now applies to aggregates