Re: [sqlalchemy] Re: views & declarative?

2013-04-17 Thread Simon King
On Wed, Apr 17, 2013 at 2:59 PM, James Hartley wrote: > On Wed, Apr 17, 2013 at 6:20 AM, Lele Gaifax wrote: >> >> James Hartley writes: >> > Is it possible to map Table instances back to classes defined through >> > declarative_base()? >> >> ...I assume you are asking whether you can map a "view

Re: [sqlalchemy] Re: views & declarative?

2013-04-17 Thread James Hartley
On Wed, Apr 17, 2013 at 6:20 AM, Lele Gaifax wrote: > James Hartley writes: > > Is it possible to map Table instances back to classes defined through > > declarative_base()? > > ...I assume you are asking whether you can map a "view" onto a > Python class using the declarative layer. If so, yes,

[sqlalchemy] Re: views & declarative?

2013-04-17 Thread Lele Gaifax
James Hartley writes: > Starting with the Wiki article on implementing views: > > http://www.sqlalchemy.org/trac/wiki/UsageRecipes/Views > > Is it possible to map Table instances back to classes defined through > declarative_base()? I'm not sure I understand the question, but given the reference