agateblue / lifter

A generic query engine, inspired by Django ORM
ISC License
449 stars 16 forks source link

Can now query for field existences, fix #26 #27

Closed agateblue closed 8 years ago

agateblue commented 8 years ago

The API is as follow.

Filter objects with the field:

manager.filter(Model.optional_field.exists())

Filter objects without the field:

manager.filter(~Model.optional_field.exists())