MCPcopy Create free account
hub / github.com/erans/pgsqlite / Comment

Class Comment

benchmarks/test_sqlalchemy.py:67–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 comments = relationship("Comment", back_populates="post", cascade="all, delete-orphan")
66
67class Comment(Base):
68 __tablename__ = 'comments'
69
70 id = Column(Integer, primary_key=True)
71 post_id = Column(Integer, ForeignKey('posts.id'))
72 user_id = Column(Integer, ForeignKey('users.id'))
73 content = Column(Text)
74 created_at = Column(DateTime, default=func.now())
75
76 # Relationships
77 post = relationship("Post", back_populates="comments")
78 user = relationship("User")
79
80class TestRunner:
81 def __init__(self, connection_string: str):

Callers 1

test_joinsMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_joinsMethod · 0.68