This section has moved to Declarative Mapping.
This section is covered by Mapping Table Columns
This section has moved to Accessing Table and Metadata.
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')
This section is moved to Mapper Configuration Options with Declarative.
See SQL Expressions as Mapped Attributes for examples on declaratively mapping attributes to SQL expressions.
flambé! the dragon and The Alchemist image designs created and generously donated by Rotem Yaari.
Created using Sphinx 4.3.2.