MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / Venue

Class Venue

test/orm/test_relationships.py:3959–3972  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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):

Callers 1

insert_dataMethod · 0.85

Calls 5

ColumnClass · 0.90
relationshipFunction · 0.90
remoteFunction · 0.90
foreignFunction · 0.90
as_comparisonMethod · 0.80

Tested by 1

insert_dataMethod · 0.68