views:

90

answers:

0

Hello

I am trying to make the where clause in sqlalchemy

for where condition like a==b and id in(1,2,3,4,5) and (x==y or t==y)

i get input as

[['a==b'], 'and', [<object of sqlalchemmy binary expression>], 'and', '(', ['x==y'], 'or', ['t==y'], ')']

Now from this list input i want to make the where expression.

I tried making all to the string but the objects (binary expression) create problem.

Thnaks in advance