| 2606 | """ |
| 2607 | |
| 2608 | class A(decl_base): |
| 2609 | __tablename__ = "a" |
| 2610 | |
| 2611 | id = Column(Integer, primary_key=True) |
| 2612 | data = Column(String) |
| 2613 | |
| 2614 | if remote_anno_type == "annotation": |
| 2615 | if use_col_from == "core_col": |
| 2616 | bs = relationship( |
| 2617 | "B", |
| 2618 | primaryjoin=lambda: remote(A.__table__.c.id) |
| 2619 | == B.__table__.c.a_id, |
| 2620 | ) |
| 2621 | elif use_col_from == "orm_col": |
| 2622 | bs = relationship( |
| 2623 | "B", primaryjoin="remote(A.id) == B.a_id" |
| 2624 | ) |
| 2625 | elif remote_anno_type == "local_remote": |
| 2626 | if use_col_from == "core_col": |
| 2627 | bs = relationship( |
| 2628 | "B", remote_side=lambda: A.__table__.c.id |
| 2629 | ) |
| 2630 | elif use_col_from == "orm_col": |
| 2631 | bs = relationship("B", remote_side="A.id") |
| 2632 | |
| 2633 | class B(decl_base): |
| 2634 | __tablename__ = "b" |
nothing calls this directly
no test coverage detected