Re: [sqlalchemy] How to create multiple TABLES and INSERTS programatically ?

2018-03-31 Thread Prashanth Budihal
Hello testing my messages are being deleted On Tuesday, March 27, 2018 at 12:12:51 AM UTC+5:30, Mike Bayer wrote: > > On Mon, Mar 26, 2018 at 1:54 PM, Prashanth Budihal > wrote: > > I have this project(stock market data) where I need many tables(200+) > and > > each

Re: [sqlalchemy] How to create multiple TABLES and INSERTS programatically ?

2018-03-31 Thread Prashanth Budihal
For the benefit of others visiting this page. This is another way to do it. Uses Class type https://stackoverflow.com/questions/2768607/dynamic-class-creation-in-sqlalchemy On Tuesday, March 27, 2018 at 12:12:51 AM UTC+5:30, Mike Bayer wrote: > > On Mon, Mar 26, 2018 at 1:54 PM, Prashanth

Re: [sqlalchemy] How to create multiple TABLES and INSERTS programatically ?

2018-03-31 Thread Prashanth Budihal
> > @Mike Bayer > > I thought I will post here an alternate solution. > https://stackoverflow.com/questions/2768607/dynamic-class-creation-in-sqlalchemy > > > On Tuesday, March 27, 2018 at 12:12:51 AM UTC+5:30, Mike Bayer wrote: > > On Mon, Mar 26, 2018 at 1:54 PM, Prashanth Budihal >

Re: [sqlalchemy] How to create multiple TABLES and INSERTS programatically ?

2018-03-31 Thread Prashanth Budihal
For the benefit of other visitors to this page,another solution I found. https://stackoverflow.com/questions/2768607/dynamic-class-creation-in-sqlalchemy On Tuesday, March 27, 2018 at 12:12:51 AM UTC+5:30, Mike Bayer wrote: > > On Mon, Mar 26, 2018 at 1:54 PM, Prashanth Budihal >

Re: [sqlalchemy] Cascade delete-orphan: reattach child to another parent

2018-03-31 Thread Serhii Mozghovyi
Many thanks! On Wednesday, March 28, 2018 at 6:42:16 PM UTC+3, Mike Bayer wrote: > > the backrefs intentionally don't keep fanning deep into object graph > for this kind of thing, so if you want it to go one hop further you > can add an event to do that directly: > > from sqlalchemy import