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] Association proxy in classical mapping keeping the business logic and the db schema separated

2017-07-23 Thread Mike Bayer
On Sun, Jul 23, 2017 at 11:26 AM, Ruben Di Battista wrote: > Hello, > > I'm trying to introduce database persistence into an already existent class > hierarchy. That mean I have in a separate module all the class representing > the models of my application (without SQL

[sqlalchemy] Association proxy in classical mapping keeping the business logic and the db schema separated

2017-07-23 Thread Ruben Di Battista
Hello, I'm trying to introduce database persistence into an already existent class hierarchy. That mean I have in a separate module all the class representing the models of my application (without SQL interaction methods), then I have in another module the SQL schema and the mapping (so I'm