Path to this page:
Subject: CVS commit: pkgsrc/databases/py-peewee
From: Adam Ciarcinski
Date: 2023-10-16 15:05:30
Message id: 20231016130530.32D6AFADC@cvs.NetBSD.org
Log Message:
py-peewee: updated to 3.17.0
3.17.0
Only roll-back in the outermost @db.transaction decorator/ctx manager if an \
unhandled exception occurs. Previously, an unhandled exception that occurred in \
a nested transaction context would trigger a rollback. The use of nested \
transaction has long been discouraged in the documentation: the recommendation \
is to always use db.atomic, which will use savepoints to properly handle nested \
blocks. However, the new behavior should make it easier to reason about \
transaction boundaries.
Cover transaction BEGIN in the reconnect-mixin. Given that no transaction has \
been started, reconnecting when beginning a new transaction ensures that a \
reconnect will occur if it is safe to do so.
Add support for setting isolation_level in db.atomic() and db.transaction() when \
using Postgres and MySQL/MariaDB, which will apply to the wrapped transaction. \
Note: Sqlite has supported a similar lock_type parameter for some time.
Add support for the Sqlite SQLITE_DETERMINISTIC function flag. This allows \
user-defined Sqlite functions to be used in indexes and may be used by the query \
planner.
Fix unreported bug in dataset import when inferred field name differs from \
column name.
Files: