Release: 1.4.54
legacy version
| Release Date: September 5, 2024
SQLAlchemy 1.4 Documentation
SQLAlchemy ORM
- ORM Quick Start
- Object Relational Tutorial (1.x API)
- ORM Mapped Class Configuration
- Relationship Configuration¶
- Querying Data, Loading Objects
- Using the Session
- Events and Internals
- ORM Extensions
- ORM Examples
Project Versions
- Previous: Class Mapping API
- Next: Basic Relationship Patterns
- Up: Home
- On this page:
Relationship Configuration¶
This section describes the relationship()
function and in depth discussion
of its usage. For an introduction to relationships, start with the
Object Relational Tutorial (1.x API) and head into Working with ORM Related Objects.
- Basic Relationship Patterns
- Late-Evaluation of Relationship Arguments
- Adjacency List Relationships
- Configuring how Relationship Joins
- Handling Multiple Join Paths
- Specifying Alternate Join Conditions
- Creating Custom Foreign Conditions
- Using custom operators in join conditions
- Custom operators based on SQL functions
- Overlapping Foreign Keys
- Non-relational Comparisons / Materialized Path
- Self-Referential Many-to-Many Relationship
- Composite “Secondary” Joins
- Relationship to Aliased Class
- Row-Limited Relationships with Window Functions
- Building Query-Enabled Properties
- Collection Configuration and Techniques
- Special Relationship Persistence Patterns
- Using the legacy ‘backref’ relationship parameter
- Relationships API
Previous:
Class Mapping API
Next:
Basic Relationship Patterns
© Copyright 2007-2024, the SQLAlchemy authors and contributors.
flambé! the dragon and The Alchemist image designs created and generously donated by Rotem Yaari.
Created using Sphinx 7.2.6. Documentation last generated: Wed 30 Oct 2024 02:18:58 PM EDT