Jaymon / prom

A PostgreSQL or SQLite orm for Python
MIT License
22 stars 4 forks source link

Query should be able to set ifilter #65

Closed Jaymon closed 3 years ago

Jaymon commented 6 years ago

so you can do something like:

q = Orm.query.is_foo(1).is_bar(2)
q.ifilter = lambda o: o.che > 0

for o in q.get():
    # o.che will be > 0

So the ifilter set on Query will be passed to the Iterator.ifilter property.

Jaymon commented 3 years ago

https://github.com/Jaymon/prom/issues/71