Randy Syring wrote:
>
> I am trying to write a datagrid library for sqlalchemy which will
> allow easy generation of tables from SA objects.  I would like the
> datagrid to be able to accept a table column, declarative attribute,
> or elixir entity attribute interchangeably.  Since I am building the
> SQL with queries, this has worked well so far, I just use the objects
> and SA takes care of the rest.
>
> However, I have recently run into a problem that requires the datagrid
> to be a little smarter.  If someone wants to filter on a date, but
> leaves the value as None, then I need to convert the empty string to a
> None.  However, I only want to do that for Date/Time SA columns.
>
> So, how can I extract the SA column object from a declarative
> attribute or elixir entity?

I'm not sure of the context here.  are you generating code or just
executing SQL ?  if the latter wouldn't you be using TypeEngine subclasses
to handle coersion of type values ?

>
> Thanks.
> >
>


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

Reply via email to