Release: 2.0.0b1
in development
| Release Date: not released yet
SQLAlchemy 2.0 Documentation
SQLAlchemy ORM
- ORM Quick Start
- ORM Mapped Class Configuration
- Relationship Configuration
- Querying Data, Loading Objects
- Using the Session
- Events and Internals
- ORM Extensions
- ORM Examples
- Object Relational Tutorial
Project Versions
Basic Use¶
This section has moved to Declarative Mapping.
Defining Attributes¶
This section is covered by Mapping Table Columns
Accessing the MetaData¶
This section has moved to Accessing Table and Metadata.
Class Constructor¶
As a convenience feature, the declarative_base()
sets a default
constructor on classes which takes keyword arguments, and assigns them
to the named attributes:
e = Engineer(primary_language='python')
Mapper Configuration¶
This section is moved to Mapper Configuration Options with Declarative.
Defining SQL Expressions¶
See SQL Expressions as Mapped Attributes for examples on declaratively mapping attributes to SQL expressions.
Previous:
Declarative API
Next:
Declarative Inheritance
© Copyright 2007-2022, the SQLAlchemy authors and contributors.
flambé! the dragon and The Alchemist image designs created and generously donated by Rotem Yaari.
Created using Sphinx 5.0.2.