Peewee v3.14.5 Release Notes
-
๐ This release contains a number of bug-fixes and small improvements.
- Only raise
DoesNotExist
whenlazy_load
is enabled on ForeignKeyField, fixes issue #2377. - Add missing convenience method
ModelSelect.get_or_none()
- ๐ Allow
ForeignKeyField
to specify a customBackrefAccessorClass
, references issue #2391. - โก๏ธ Ensure foreign-key-specific conversions are applied on INSERT and UPDATE, fixes #2408.
- โ Add handling of MySQL error 4031 (inactivity timeout) to the
ReconnectMixin
helper class. Fixes #2419. - ๐ Support specification of conflict target for ON CONFLICT/DO NOTHING.
- โ Add
encoding
parameter to the DataSetfreeze()
andthaw()
methods, fixes #2425. - ๐ Fix bug which prevented
DeferredForeignKey
from being used as a model's primary key, fixes #2427. - Ensure foreign key's related object cache is cleared when the foreign-key is
set to
None
. Fixes #2428. - ๐ Allow specification of
(schema, table)
to be used with CREATE TABLE AS..., fixes #2423. - ๐ Allow reusing open connections with DataSet, refs #2441.
- โ Add
highlight()
andsnippet()
helpers to SqliteSearchField
, for use with full-text search extension. - ๐ Preserve user-provided aliases in column names. Fixes #2453.
- โ Add support for Sqlite 3.37 strict tables.
- ๐ Ensure database is inherited when using
ThreadSafeDatabaseMetadata
, and also adds an implementation inplayhouse.shortcuts
along with basic unit tests. - ๐ Better handling of Model's dirty fields when saving, fixes #2466.
- โ Add basic support for MariaDB connector driver in
playhouse.mysql_ext
, refs issue #2471. - Begin a basic implementation for a psycopg3-compatible pg database, refs issue #2473.
- โ Add provisional support for RETURNING when using the appropriate versions of Sqlite or MariaDB.
- Only raise