Release: 1.3.24
legacy version
| Release Date: March 30, 2021
SQLAlchemy 1.3 Documentation
- Previous: Baked Queries
- Next: Basic Use
- Up: Home
- On this page:
Declarative¶
The Declarative system is the typically used system provided by the SQLAlchemy
ORM in order to define classes mapped to relational database tables. However,
as noted in Classical Mappings, Declarative is in fact a series of
extensions that ride on top of the SQLAlchemy mapper()
construct.
While the documentation typically refers to Declarative for most examples,
the following sections will provide detailed information on how the
Declarative API interacts with the basic mapper()
and Core Table
systems, as well as how sophisticated patterns can be built using systems
such as mixins.
- Basic Use
- Configuring Relationships
- Table Configuration
- Inheritance Configuration
- Mixin and Custom Base Classes
- Augmenting the Base
- Mixing in Columns
- Mixing in Relationships
- Mixing in deferred(), column_property(), and other MapperProperty classes
- Mixing in Association Proxy and Other Attributes
- Controlling table inheritance with mixins
- Mixing in Columns in Inheritance Scenarios
- Combining Table/Mapper Arguments from Multiple Mixins
- Creating Indexes with Mixins
- Declarative API
Previous:
Baked Queries
Next:
Basic Use
© Copyright 2007-2021, 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: Sat 06 Jan 2024 12:16:14 PM