[sqlalchemy] Unable to configure Column server_default attribute when using automap

2017-01-31 Thread derek . miller
I am attempting to reflect an existing PostgreSQL database that has triggers setting a version_num column. Reading the docs SQLAlchemy needs to be told the the value is a FetchedValue(), however there is no way to do this via the the "column_reflect" event handler. I also attempted to manually

Re: [sqlalchemy] polymorphic_on using relationship discriminator

2017-01-31 Thread Shane Carey
Thanks for you help, Mike! On Monday, January 30, 2017 at 10:36:06 AM UTC-6, Mike Bayer wrote: > > > > On 01/30/2017 11:06 AM, Shane Carey wrote: > > Thanks for the help! I was able to get this working with > > > > select([Series.type]).where(Series.id == series_id).as_scalar() > > > > I