Skip to content

311devs/peewee

 
 

Repository files navigation

http://media.charlesleifer.com/blog/photos/peewee3-logo.png

peewee

This is just peewee-3.6.4 <https://github.com/coleifer/peewee> with some changes we need:

  • Simple LEFT JOIN LATERAL. No need make subquery, just join to model.
# make some compound select query
subq = ModelB.select(ModelB.id).where(ModelB.id > ModelA.id).limit(1)
# make query lateral joining subquery
ModelA.select(ModelA, subq.c.id).join(subq, join_type=JOIN.LATERAL)
  • Add off argument to for_update method

About

a small, expressive orm -- supports postgresql, mysql and sqlite

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 95.8%
  • C 3.9%
  • Other 0.3%