| 3957 | Base = cls.DeclarativeBasic |
| 3958 | |
| 3959 | class Venue(Base): |
| 3960 | __tablename__ = "venue" |
| 3961 | id = Column(Integer, primary_key=True) |
| 3962 | name = Column(String) |
| 3963 | |
| 3964 | descendants = relationship( |
| 3965 | "Venue", |
| 3966 | primaryjoin=func.instr( |
| 3967 | remote(foreign(name)), name + "/" |
| 3968 | ).as_comparison(1, 2) |
| 3969 | == 1, |
| 3970 | viewonly=True, |
| 3971 | order_by=name, |
| 3972 | ) |
| 3973 | |
| 3974 | @classmethod |
| 3975 | def insert_data(cls, connection): |