./databases/py-peewee, Small, expressive ORM for PostgreSQL, MySQL and SQLite

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 3.17.1, Package name: py311-peewee-3.17.1, Maintainer: pkgsrc-users

Peewee is a simple and small ORM. It has few (but expressive)
concepts, making it easy to learn and intuitive to use.
Supports SQLite, MySQL and PostgreSQL.


Required to run:
[databases/py-sqlite3] [devel/py-cython] [lang/python310]

Required to build:
[textproc/py-sphinx]

Master sites:

Filesize: 2882.457 KB

Version history: (Expand)


CVS history: (Expand)


   2024-02-09 11:34:29 by Adam Ciarcinski | Files touched by this commit (4)
Log message:
Replace databases/py-mysqldb with databases/py-mysqlclient
   2024-02-05 22:15:50 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-peewee: updated to 3.17.1

3.17.1

* Add bitwise and other helper methods to `BigBitField`.
* Add `add_column_default` and `drop_column_default` migrator methods for
  specifying a server-side default value.
* The new `star` attribute was causing issues for users who had a field named
  star on their models. This attribute is now renamed to `__star__`.
* Fix compatibility issues with 3.12 related to utcnow() deprecation.
* Add stricter locking on connection pool to prevent race conditions.
* Add adapters and converters to Sqlite to replace ones deprecated in 3.12.
* Fix bug in `model_to_dict()` when only aliases are present.
* Fix version check for Sqlite native drop column support.
* Do not specify a `reconnect=` argument to `ping()` if using MySQL 8.x.
   2023-11-08 14:21:43 by Thomas Klausner | Files touched by this commit (2377)
Log message:
*: recursive bump for icu 74.1
   2023-11-07 23:38:10 by Thomas Klausner | Files touched by this commit (112)
Log message:
*: latest py-sphinx only support Python 3.9+
   2023-10-16 15:05:30 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
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.
   2023-08-25 17:21:43 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-peewee: updated to 3.16.3

3.16.3

Support for Cython 3.0.
Add flag to ManyToManyField to prevent setting/getting values on unsaved \ 
instances. This is worthwhile, since reading or writing a many-to-many has no \ 
meaning when the instance is unsaved.
Adds a star() helper to Source base-class for selecting all columns.
Fix missing binary types for mysql-connector and mariadb-connector.
Add extract() method to MySQL JSONField for extracting a jsonpath.
   2023-06-06 14:42:56 by Taylor R Campbell | Files touched by this commit (1319)
Log message:
Mass-change BUILD_DEPENDS to TOOL_DEPENDS outside mk/.

Almost all uses, if not all of them, are wrong, according to the
semantics of BUILD_DEPENDS (packages built for target available for
use _by_ tools at build-time) and TOOL_DEPEPNDS (packages built for
host available for use _as_ tools at build-time).

No change to BUILD_DEPENDS as used correctly inside buildlink3.

As proposed on tech-pkg:
https://mail-index.netbsd.org/tech-pkg/2023/06/03/msg027632.html
   2023-04-23 12:47:27 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-peewee: updated to 3.16.2

3.16.2

Fixes a longstanding issue with thread-safety of various decorators, including
`atomic()`, `transaction()`, `savepoint()`. The context-managers are
unaffected.