Re: [sqlalchemy] Setting __tablename__ at runtime?

2015-08-19 Thread jkmacc
On Tuesday, August 18, 2015 at 11:24:08 PM UTC-6, Michael Bayer wrote: > > > > On 8/18/15 8:57 PM, Frank Horowitz wrote: > > Hi All, > > A noob question, that I've been struggling with off and on for a while. > I'm pretty sure that I'm missing something obvious... > > I'm creating tables and their

Re: [sqlalchemy] Single abstract declarative base, multiple inheriting children in one module...

2013-10-30 Thread jkmacc
On Wednesday, October 30, 2013 12:10:49 PM UTC-6, Michael Bayer wrote: > > > On Oct 30, 2013, at 1:43 PM, jkmacc > > wrote: > > > Hmm... The 'schema' problem was my dumb mistake, but I still haven't > found a use of @declared_attr that solves my pro

Re: [sqlalchemy] Single abstract declarative base, multiple inheriting children in one module...

2013-10-30 Thread jkmacc
On Wednesday, October 30, 2013 9:34:38 AM UTC-6, Michael Bayer wrote: > > > On Oct 30, 2013, at 10:58 AM, jkmacc > > wrote: > > Hi all, > > I've got a module defining a number of abstract declarative classes. They > represent standard generic classes/tables

[sqlalchemy] Single abstract declarative base, multiple inheriting children in one module...

2013-10-30 Thread jkmacc
Hi all, I've got a module defining a number of abstract declarative classes. They represent standard generic classes/tables. I'd like to take one of these abstract classes and subclass more than once, adding a 'schema' name to '__table_args__' and a '__tablename__'. This to me is like makin

[sqlalchemy] DeferredReflection with arbitrary Table.name and Table.schema?

2013-09-30 Thread jkmacc
Hi everyone, I've written a declarative model, 'Students,' that I'd like to use in the following ways: 1) Reflect an existing table with an arbitrary table and schema name. It may be an Oracle table called 'master.students2010', or it may be a SQLite table called 'mystudents_2010', but the co