[sqlalchemy] Re: sqlalchemy: stopping a long-running query

2012-02-24 Thread Cody Django
and not any SQLAlchemy, lest they dismiss your issue as something specific to SQLAlchemy. On Feb 24, 2012, at 3:47 PM, Cody Django wrote: Hi guys -- hopefully this is an easy answer for someone!  I've also posted the problem to stack overflow: http://stackoverflow.com/questions/9437498

[sqlalchemy] dynamically set table_name at runtime

2011-06-20 Thread Cody Django
Hello! I would like to dynamically set/change the table that is mapped in my python object, as instantiated through the declarative style. class Feature(Base, GeometryTableMixIn): this is dynamically created to use a table and pk_column determined at runtime __table_args__ = {

[sqlalchemy] Re: dynamically set table_name at runtime

2011-06-20 Thread Cody Django
Wow somebody already brought this to light! http://stackoverflow.com/questions/2768607/dynamic-class-creation-in-sqlalchemy On Jun 20, 11:36 am, Cody Django codydja...@gmail.com wrote: Hello! I would like to dynamically set/change the table that is mapped in my python object

[sqlalchemy] Re: Declaring compound primary key on reflective model

2011-06-13 Thread Cody Django
Thanks! On Jun 10, 1:06 pm, A.M. age...@themactionfaction.com wrote: On Jun 10, 2011, at 2:25 PM, Cody Django wrote: Hi all -- I'm new on pylons, coming from a django background.  I'm working on a mapfish project. I'd like to autoload a model based on a db table, but in doing so I get

[sqlalchemy] Declaring compound primary key on reflective model

2011-06-10 Thread Cody Django
Hi all -- I'm new on pylons, coming from a django background. I'm working on a mapfish project. I'd like to autoload a model based on a db table, but in doing so I get the error could not assemble any primary key columns for mapped table. The table itself is a postgres view with no declared

[sqlalchemy] Re: Declaring compound primary key on reflective model

2011-06-10 Thread Cody Django
A related query: reflecting two tables, and wanting to identity a one- to-one relation based on a mutual id field on the model class. Cody On Jun 10, 11:25 am, Cody Django codydja...@gmail.com wrote: Hi all -- I'm new on pylons, coming from a django background.  I'm working on a mapfish