[sqlalchemy] Re: How to dynamically create where-clauses

2007-08-10 Thread Christoph Haas
On Fri, Aug 10, 2007 at 02:51:51PM +0200, Hermann Himmelbauer wrote: My web-application, that is in front of SQLAlchemy has various input-fields, which should act as a where-clause (with like()), a query looks e.g. like this:

[sqlalchemy] Re: How to dynamically create where-clauses

2007-08-10 Thread Dave Marsh
I haven't tried it with your specific example, but I'm pretty sure the theory should work just the same. The first thing you need to do is create a list of the clause objects. The other thing you'll need is a way to associate the input names with the column names (either make them the same or