(mapper, class_)
| 1072 | pass |
| 1073 | |
| 1074 | def setup_props(mapper, class_): |
| 1075 | if property_type.ColumnProperty: |
| 1076 | col = Column("new_column", String(50)) |
| 1077 | mapper.local_table.append_column(col) |
| 1078 | mapper.add_property( |
| 1079 | col.key, deferred(col, group="deferred_group") |
| 1080 | ) |
| 1081 | elif property_type.Column: |
| 1082 | col = Column("new_column", String(50)) |
| 1083 | mapper.local_table.append_column(col) |
| 1084 | mapper.add_property(col.key, col) |
| 1085 | elif property_type.Relationship: |
| 1086 | mapper.add_property("addresses", relationship(Address)) |
| 1087 | else: |
| 1088 | property_type.fail() |
| 1089 | |
| 1090 | event.listen(User, event_name.name, setup_props) |
| 1091 |
nothing calls this directly
no test coverage detected