Describes an object attribute that corresponds to a table column or other column expression. Public constructor is the :func:`_orm.column_property` function.
| 96 | |
| 97 | @log.class_logger |
| 98 | class ColumnProperty( |
| 99 | _MapsColumns[_T], |
| 100 | StrategizedProperty[_T], |
| 101 | _IntrospectsAnnotations, |
| 102 | log.Identified, |
| 103 | ): |
| 104 | """Describes an object attribute that corresponds to a table column |
| 105 | or other column expression. |
| 106 | |
| 107 | Public constructor is the :func:`_orm.column_property` function. |
| 108 | |
| 109 | """ |
| 110 | |
| 111 | strategy_wildcard_key = _COLUMN_TOKEN |
| 112 | inherit_cache = True |
| 113 | """:meta private:""" |
| 114 | |
| 115 | _links_to_entity = False |
| 116 | |
| 117 | columns: List[NamedColumn[Any]] |
| 118 | |
| 119 | _is_polymorphic_discriminator: bool |
| 120 | |
| 121 | _mapped_by_synonym: Optional[str] |
| 122 | |
| 123 | comparator_factory: Type[PropComparator[_T]] |
| 124 | |
| 125 | __slots__ = ( |
| 126 | "columns", |
| 127 | "group", |
| 128 | "deferred", |
| 129 | "instrument", |
| 130 | "comparator_factory", |
| 131 | "active_history", |
| 132 | "expire_on_flush", |
| 133 | "_creation_order", |
| 134 | "_is_polymorphic_discriminator", |
| 135 | "_mapped_by_synonym", |
| 136 | "_deferred_column_loader", |
| 137 | "_raise_column_loader", |
| 138 | "_renders_in_subqueries", |
| 139 | "raiseload", |
| 140 | ) |
| 141 | |
| 142 | def __init__( |
| 143 | self, |
| 144 | column: _ORMColumnExprArgument[_T], |
| 145 | *additional_columns: _ORMColumnExprArgument[Any], |
| 146 | attribute_options: Optional[_AttributeOptions] = None, |
| 147 | group: Optional[str] = None, |
| 148 | deferred: bool = False, |
| 149 | raiseload: bool = False, |
| 150 | comparator_factory: Optional[Type[PropComparator[_T]]] = None, |
| 151 | active_history: bool = False, |
| 152 | expire_on_flush: bool = True, |
| 153 | info: Optional[_InfoType] = None, |
| 154 | doc: Optional[str] = None, |
| 155 | _instrument: bool = True, |
no outgoing calls
no test coverage detected