Roger Demetrescu | 27 May 16:56

Re: filtering by datetime elements


On Sat, May 17, 2008 at 12:17 PM,  <az <at> svilendobrev.com> wrote:

> wishlist suggestion: how about type-related attributes on columns,
> using which will autogenerate some expr off that column?
> e.g. select( mytable.c.mydate.year == '1998') to automagicaly yield
> something like func.substr(mytable.c.mydate,1,4)) == '1998'
> (supposing the type of mydate stores datetime as yyyymmdd string)

That sounds interesting...

+1 on that...  :)

Michael, is that feasible / desirable for SA 0.5 ?

Cheers,

Roger

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
To post to this group, send email to sqlalchemy <at> googlegroups.com
To unsubscribe from this group, send email to sqlalchemy-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---


Gmane