co3.mappers package¶
- class co3.mappers.ComposableMapper(schema)[source]¶
Bases:
Mapper
,Generic
- classmethod compose(outer=False, conversion=False, full=False)[source]¶
Note
Comparing to ORM, this method would likely also still be needed, since it may not be explicitly clear how some JOINs should be handled up the inheritance chain (for components / sa.Relationships, it’s a little easier).
- Parameters:
outer – whether to use outer joins down the chain
conversion – whether to return conversion joins or base primitives
full – whether to return fully connected primitive and conversion table
- join_attribute_relations(r1, r2)[source]¶
Specific mechanism for joining attribute-based relations.
- Return type:
TypeVar
(C
, bound=ComposableComponent
)
- join_collation_relations(r1, r2)[source]¶
Specific mechanism for joining collation-based relations.
- Return type:
TypeVar
(C
, bound=ComposableComponent
)