HN2new | past | comments | ask | show | jobs | submitlogin

I think the selling point of Pony ORM is that you can write variable and literals instead of string.

Django:

    Item.objects.filter(price__gt=3)
Pony ORM:

    select(o for o in Item if o.price>3)
Peewee:

    Item.select().where(Item.price>3)
Kohana:

    $Item->where('price', '>', 3)->find();
You see, the __gt or '>' here is kind of stupid.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: