ORM 映射类配置¶
ORM 配置的详细参考,不包括
关系,详情请参阅
关系配置。
要快速了解典型的 ORM 配置,请从
ORM 快速入门。
有关在 SQLAlchemy 中实现的对象关系映射概念的介绍,它首先在 SQLAlchemy Unified 教程中介绍,网址为
使用 ORM 声明式表单定义表元数据。
ORM 映射类概述
使用声明式映射类
与 dataclasses 和 attrs 集成
SQL 表达式作为映射属性
更改属性行为
复合列类型
映射类继承层次结构
非传统映射
配置版本计数器
类映射 API注册表
add_mapped_attribute()
column_property()
declarative_base()
declarative_mixin()
as_declarative()
mapped_column()
declared_attr
声明式基础
声明式 BaseNoMeta
has_inherited_table()
synonym_for()
object_mapper()
class_mapper()
configure_mappers()
clear_mappers()
identity_key()
polymorphic_union()
orm_insert_sentinel()
重新构建器 ()
映射
Mapper.__init__()
Mapper.add_properties()
Mapper.add_property()
Mapper.all_orm_descriptors
Mapper.attrs
Mapper.base_mapper
映射器.c
Mapper.cascade_iterator()
Mapper.class_
Mapper.class_manager
Mapper.column_attrs
Mapper.columns
Mapper.common_parent()
Mapper.composites
Mapper.concrete
Mapper.configured
Mapper.entity
Mapper.get_property()
Mapper.get_property_by_column()
Mapper.identity_key_from_instance()
Mapper.identity_key_from_primary_key()
Mapper.identity_key_from_row()
Mapper.inherits
Mapper.is_mapper
Mapper.is_sibling()
Mapper.isa()
Mapper.iterate_properties
Mapper.local_table
Mapper.mapped_table
映射器.mapper
Mapper.non_primary
Mapper.persist_selectable
Mapper.polymorphic_identity
Mapper.polymorphic_iterator()
Mapper.polymorphic_map
Mapper.polymorphic_on
Mapper.primary_key
Mapper.primary_key_from_instance()
Mapper.primary_mapper()
映射器关系
Mapper.selectable
Mapper.self_and_descendants
Mapper.single
Mapper.同义词
Mapper.tables
Mapper.validators
Mapper.with_polymorphic_mappers
MappedAsData类
MappedClassProtocol
协议