pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/py-sqlalchemy py-sqlalchemy: updated to 1.3.1

branches:  trunk
changeset: 321842:a5da32051e86
user:      adam <>
date:      Tue Apr 02 08:59:13 2019 +0000

py-sqlalchemy: updated to 1.3.1

[orm] [bug] [ext] Fixed regression where an association proxy linked to a synonym would no longer work, both at instance level and at class level.


[mssql] [bug] A commit() is emitted after an isolation level change to SNAPSHOT, as both pyodbc and pymssql open an implicit transaction which blocks subsequent SQL from being emitted in the current 

This change is also backported to: 1.2.19

[mssql] [bug] Fixed regression in SQL Server reflection due to 4393 where the removal of open-ended **kw from the Float datatype caused reflection of this type to fail due to a ?scale? argument being 


[orm] [feature] The Query.get() method can now accept a dictionary of attribute keys and values as a means of indicating the primary key value to load; is particularly useful for composite primary 
keys. Pull request courtesy Sanjana S.

[orm] [feature] A SQL expression can now be assigned to a primary key attribute for an ORM flush in the same manner as ordinary attributes as described in Embedding SQL Insert/Update Expressions into 
a Flush where the expression will be evaulated and then returned to the ORM using RETURNING, or in the case of pysqlite, works using the cursor.lastrowid attribute.Requires either a database that 
supports RETURNING (e.g. Postgresql, Oracle, SQL Server) or pysqlite.


[engine] [feature] Revised the formatting for StatementError when stringified. Each error detail is broken up over multiple newlines instead of spaced out on a single line. Additionally, the SQL 
representation now stringifies the SQL statement rather than using repr(), so that newlines are rendered as is. Pull request courtesy Nate Clark.

See also
Changed StatementError formatting (newlines and %s)

[sql] [bug] The Alias class and related subclasses CTE, Lateral and TableSample have been reworked so that it is not possible for a user to construct the objects directly. These constructs require 
that the standalone construction function or selectable-bound method be used to instantiate new objects.

[schema] [feature] Added new parameters Table.resolve_fks and MetaData.reflect.resolve_fks which when set to False will disable the automatic reflection of related tables encountered in ForeignKey 
objects, which can both reduce SQL overhead for omitted tables as well as avoid tables that can?t be reflected for database-specific reasons. Two Table objects present in the same MetaData collection 
can still refer to each other even if the reflection of the two tables occurred separately


 databases/py-sqlalchemy/Makefile |   4 ++--
 databases/py-sqlalchemy/PLIST    |  26 ++++++++++++++++----------
 databases/py-sqlalchemy/distinfo |  10 +++++-----
 3 files changed, 23 insertions(+), 17 deletions(-)

diffs (88 lines):

diff -r 0d42ad896d85 -r a5da32051e86 databases/py-sqlalchemy/Makefile
--- a/databases/py-sqlalchemy/Makefile  Tue Apr 02 08:58:56 2019 +0000
+++ b/databases/py-sqlalchemy/Makefile  Tue Apr 02 08:59:13 2019 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.50 2019/02/20 15:56:15 adam Exp $
+# $NetBSD: Makefile,v 1.51 2019/04/02 08:59:13 adam Exp $
-DISTNAME=      SQLAlchemy-1.2.18
+DISTNAME=      SQLAlchemy-1.3.1
 CATEGORIES=    databases python
diff -r 0d42ad896d85 -r a5da32051e86 databases/py-sqlalchemy/PLIST
--- a/databases/py-sqlalchemy/PLIST     Tue Apr 02 08:58:56 2019 +0000
+++ b/databases/py-sqlalchemy/PLIST     Tue Apr 02 08:59:13 2019 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.17 2018/07/03 05:34:20 adam Exp $
+@comment $NetBSD: PLIST,v 1.18 2019/04/02 08:59:13 adam Exp $
@@ -169,6 +169,9 @@
@@ -388,9 +391,18 @@
@@ -490,9 +502,6 @@
@@ -511,9 +520,6 @@
diff -r 0d42ad896d85 -r a5da32051e86 databases/py-sqlalchemy/distinfo
--- a/databases/py-sqlalchemy/distinfo  Tue Apr 02 08:58:56 2019 +0000
+++ b/databases/py-sqlalchemy/distinfo  Tue Apr 02 08:59:13 2019 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.45 2019/02/20 15:56:15 adam Exp $
+$NetBSD: distinfo,v 1.46 2019/04/02 08:59:13 adam Exp $
-SHA1 (SQLAlchemy-1.2.18.tar.gz) = 16e532601a0cbe0070af9207c22302c190cc2690
-RMD160 (SQLAlchemy-1.2.18.tar.gz) = fd43fe4e04b86b101f6b4ef14257d6faa680e852
-SHA512 (SQLAlchemy-1.2.18.tar.gz) = a3074e0f7b9a307937f02ad030811413f3c92b7edcc4f1c6eda7c94c1178708f8c920840385a9b33c7952e224fe46dc73223aee00123e863abf6d1d446aebdb2
-Size (SQLAlchemy-1.2.18.tar.gz) = 5675143 bytes
+SHA1 (SQLAlchemy-1.3.1.tar.gz) = b8475576917e12de1170305c6f9be9b6d3cafe4a
+RMD160 (SQLAlchemy-1.3.1.tar.gz) = 315ee1709bf2215e9fbbccb0174309da07ad4594
+SHA512 (SQLAlchemy-1.3.1.tar.gz) = a5f9506060cce7c688be5d0b25c5a34a904a64e07447e11d9a2e546c1020849038f370f5808d817f192ec36d6df7443ad328145be1af2baaad3913dab6b4cb8d
+Size (SQLAlchemy-1.3.1.tar.gz) = 5864223 bytes

Home | Main Index | Thread Index | Old Index