Peewee v3.12.0 Release Notes
Release Date: 2019-11-24 // over 4 years ago-
- Bulk insert (
insert_many()
andinsert_from()
) will now return the row count instead of the last insert ID. If you are using Postgres, peewee will continue to return a cursor that provides an iterator over the newly-inserted primary-key values by default. This behavior is being retained by default for compatibility. Postgres users can simply specify an emptyreturning()
call to disable the cursor and retrieve the rowcount instead. - ๐ Migration extension now supports altering a column's data-type, via the new
alter_column_type()
method. - Added
Database.is_connection_usabe()
method, which attempts to look at the status of the underlying DB-API connection to determine whether the connection is usable. - Common table expressions include a
materialized
parameter, which can be used to control Postgres' optimization fencing around CTEs. - โ Added
BloomFilter.from_buffer()
method for populating a bloom-filter from the output of a previous call to theto_buffer()
method. - ๐ Fixed APSW extension's
commit()
androllback()
methods to no-op if the database is in auto-commit mode. - โ Added
generate_always=
option to theIdentityField
(defaults to False).
- Bulk insert (