github coleifer/peewee 2.6.4

latest releases: 3.14.10, 3.14.9, 3.14.8...
8 years ago

Updating so some of the new APIs are available on pypi. Note that I did not draft any notes for 2.6.3, so most of those changes are included here.

Bugs fixed

  • #646, fixed a bug with the Cython speedups not being included in package.
  • #654, documented how to create models with no primary key.
  • #659, allow bare INSERT statements.
  • #674, regarding foreign key / one-to-one relationships.
  • #676, allow ArrayField to accept tuples in addition to lists.
  • #679, fix regarding unsaved relations.
  • #682, refactored QueryResultWrapper to allow multiple independent iterations over the same underlying result cache.
  • #692, fix bug with multiple joins to same table + eager loading.
  • #695, fix bug when connection fails while using an execution context.
  • #698, use correct column names with non-standard django foreign keys.
  • #706, return datetime.time instead of timedelta for MySQL time fields.
  • #712, fixed SQLite migrator regular expressions. Thanks @sroebert.

New features

  • #647, #649, #650, added support for RETURNING clauses. Update, Insert and Delete queries can now be called with RETURNING to retrieve the rows that were affected. See docs.
  • #685, added web request hook docs.
  • #691, allowed arbitrary model attributes and methods to be serialized by model_to_dict(). Docs.
  • #696, allow model_to_dict() to introspect query for which fields to serialize.
  • Moved custom fields into their own playhouse module. Docs.
  • Added backend-agnostic truncate_date() implementation.
  • Added a FixedCharField which uses column type CHAR.
  • Added support for arbitrary PRAGMA statements to be run on new SQLite connections. Docs.
  • Removed berkeley_build.sh script. See instructions on my blog instead.

View commits

Don't miss a new peewee release

NewReleases is sending notifications on new releases.