Hello.
I have the following example (Base is the usual declarative_base instance):
class Node(Base):
__tablename__ = 'node'
id = Column(Integer(), primary_key=True)
parent_id = Column(Integer(), ForeignKey('node.id'))
def path(self, root_id):
Query to return a list of
On Sep 5, 2012, at 9:05 AM, Ladislav Lenart wrote:
Hello.
I have the following example (Base is the usual declarative_base instance):
class Node(Base):
__tablename__ = 'node'
id = Column(Integer(), primary_key=True)
parent_id = Column(Integer(), ForeignKey('node.id'))