type_bridge.typed.references¶
references
¶
Owner-aware typed-query references backed by opaque native handles.
Selection
¶
Bases: _ImmutableNativeValue, Generic[OutputT_co], ABC
Covariant output-only view of one native selection handle.
Predicate
¶
QueryOrder
¶
BoundField
¶
Bases: _ImmutableNativeValue
Opaque field bound to one invariant native variable occurrence.
Source code in type_bridge/typed/references.py
BoundRole
¶
Bases: _ImmutableNativeValue
Opaque relation role bound to one native relation variable.
Source code in type_bridge/typed/references.py
connects
¶
Require this role to connect a compatible native bound variable.
Source code in type_bridge/typed/references.py
BoundVar
¶
Bases: Selection[ModelT], _PlayerBinding[ModelT]
Invariant model variable backed by one fresh native binding handle.
Source code in type_bridge/typed/references.py
field
¶
field(reference: type[AttributeT]) -> BoundField[AttributeT]
field(reference: StringFieldRef[StringAttributeT, ModelT]) -> _StringBoundField[StringAttributeT]
field(reference: NumericFieldRef[NumericAttributeT, ModelT]) -> _OrderedBoundField[NumericAttributeT]
field(reference: OrderedFieldRef[OrderedAttributeT, ModelT]) -> _OrderedBoundField[OrderedAttributeT]
field(reference: FieldRef[AttributeT, ModelT]) -> BoundField[AttributeT]
Bind an owned attribute class or legacy model field reference.
Source code in type_bridge/typed/references.py
__field_name_for_attribute
¶
Resolve one exact attribute class through this binding's model owner.
Source code in type_bridge/typed/references.py
role
¶
Bind one owner-aware relation role reference to this variable.
Source code in type_bridge/typed/references.py
collect
¶
Return a persistent collected selection for this variable.
Source code in type_bridge/typed/references.py
Collected
¶
Bases: Selection[tuple[ModelT, ...]]
Persistent collected-output selection for one bound model variable.