Re: [sqlalchemy] Representing Tree Structures with sqlAlchemy

2017-07-23 Thread Nathan Mooth
Thanks for the example, it was exactly what I was looking for. On Friday, July 21, 2017 at 10:47:16 AM UTC-6, Mike Bayer wrote: > > On Fri, Jul 21, 2017 at 11:40 AM, Nathan Mooth > wrote: > > So I have a tree-like data structure that I need to store in a way so > that I

Re: [sqlalchemy] Representing Tree Structures with sqlAlchemy

2017-07-21 Thread Mike Bayer
On Fri, Jul 21, 2017 at 11:40 AM, Nathan Mooth wrote: > So I have a tree-like data structure that I need to store in a way so that I > can see all children or all parents of a query as well as their relative > depth from the query item. In the past I have been using the

[sqlalchemy] Representing Tree Structures with sqlAlchemy

2017-07-21 Thread Nathan Mooth
So I have a tree-like data structure that I need to store in a way so that I can see all children or all parents of a query as well as their relative depth from the query item. In the past I have been using the closure table method demonstrated in this blog post