keredson / peewee

a small, expressive orm -- supports postgresql, mysql and sqlite
http://docs.peewee-orm.com/
MIT License
13 stars 4 forks source link

A couple comparisons to Peewee on README are no longer current. #20

Open coleifer opened 7 years ago

coleifer commented 7 years ago

The section on first() method using a limit is no longer current. Peewee applies a LIMIT 1 to calls to first():

In [6]: Paste.select().first()
('SELECT "t1"."filename", "t1"."description", "t1"."content", "t1"."timestamp" FROM "paste" AS t1 LIMIT 1', [])

The section of the DeferredRelation syntax is no longer current, as Peewee supports the nice API you've created.

The section on passing an empty list to IN is also no longer current, and Peewee has adopted the same solution of injecting a false condition instead of the empty IN ().