SQLAlchemy

1 view
Skip to first unread message

Laureano Arcanio

unread,
Mar 29, 2008, 12:57:38 AM3/29/08
to turbo...@googlegroups.com
Hi, is there any one who knows a "canonical" way to implement a Recursive Pattern into my database relations ?

I suppose it can be implemented as a one to many relationship with himself, but i'm really not sure this can work neither if there is "a way to do it".

thaks

Hugo Truffe

unread,
Mar 29, 2008, 9:16:41 AM3/29/08
to turbo...@googlegroups.com
Laureano Arcanio escribió:
Hola Laureano, estoy por arrancar con SQLAlchemy, decime que necesitas.
Un BArazo

Bobby Impollonia

unread,
Mar 29, 2008, 9:26:37 AM3/29/08
to turbo...@googlegroups.com
The SA documentation has a little discussion of how to do queries
involving self-joins:
http://www.sqlalchemy.org/docs/04/mappers.html#advdatamapping_relation_selfreferential_query

Laureano Arcanio

unread,
Mar 29, 2008, 11:52:33 AM3/29/08
to turbo...@googlegroups.com
Thanks Bobby!

I'm taking a look at that, looks good.




Laureano Arcanio

unread,
Mar 29, 2008, 11:54:21 AM3/29/08
to turbo...@googlegroups.com
Hola Hugo !

Estaba preguntando si alguien sabe como hacer una Relación recursiva de forma "canónica" es decir, como se debe hacer.

Parece que no es complicado, el link de Bobby explica algunos ejemplos.

Saludos!
Reply all
Reply to author
Forward
0 new messages