[sqlalchemy] Re: Materialized Path for SQLAlchemy Declarative Base

2009-08-13 Thread Anton Gritsay
Hi, Allen! You can use something like this (yeah, I know that it isn't declarative in any way): class Node(Base): __tablename__ = 'node' id = Column(Integer, primary_key=True) parent_id = Column(ForeignKey('node.id')) parent = relation(Node,

[sqlalchemy] Re: Materialized Path for SQLAlchemy Declarative Base

2009-08-13 Thread allen.fowler
On Aug 13, 2:37 pm, Anton Gritsay gene...@angri.ru wrote: Hi, Allen! You can use something like this (yeah, I know that it isn't declarative in any way):     class Node(Base):         __tablename__ = 'node'         id = Column(Integer, primary_key=True)         parent_id =

[sqlalchemy] Re: Materialized Path for SQLAlchemy Declarative Base

2009-08-13 Thread Michael Bayer
On Aug 13, 2009, at 9:23 PM, allen.fowler wrote: On Aug 13, 2:37 pm, Anton Gritsay gene...@angri.ru wrote: Hi, Allen! You can use something like this (yeah, I know that it isn't declarative in any way): class Node(Base): __tablename__ = 'node' id =

[sqlalchemy] Re: Materialized Path for SQLAlchemy Declarative Base

2009-08-09 Thread allen.fowler
Werner, On Aug 7, 12:36 pm, werner wbru...@free.fr wrote: Allen, allen.fowler wrote: On Aug 6, 6:54 pm, AF allen.fow...@yahoo.com wrote: Hello all, Has anyone here used the sqlamp: Materialized Path for SQLAlchemy library? I am wondering: 1) Does it seem to work well? 2)

[sqlalchemy] Re: Materialized Path for SQLAlchemy Declarative Base

2009-08-07 Thread allen.fowler
On Aug 6, 6:54 pm, AF allen.fow...@yahoo.com wrote: Hello all, Has anyone here used the sqlamp: Materialized Path for SQLAlchemy library? I am wondering: 1) Does it seem to work well? 2) Did you use it with Declarative Base, and if so, how did you configure it? Anybody?

[sqlalchemy] Re: Materialized Path for SQLAlchemy Declarative Base

2009-08-07 Thread werner
Allen, allen.fowler wrote: On Aug 6, 6:54 pm, AF allen.fow...@yahoo.com wrote: Hello all, Has anyone here used the sqlamp: Materialized Path for SQLAlchemy library? I am wondering: 1) Does it seem to work well? 2) Did you use it with Declarative Base, and if so, how did you