]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
5 years agoMerge "Don't apply sets or similar to objects in IdentitySet"
mike bayer [Mon, 4 May 2020 17:09:57 +0000 (17:09 +0000)] 
Merge "Don't apply sets or similar to objects in IdentitySet"

5 years agoBaked query needs to spoil fully on uncachable option
Mike Bayer [Sun, 3 May 2020 23:35:54 +0000 (19:35 -0400)] 
Baked query needs to spoil fully on uncachable option

Fixed issue in the area of where loader options such as selectinload()
interact with the baked query system, such that the caching of a query is
not supposed to occur if the loader options themselves have elements such
as with_polymorphic() objects in them that currently are not
cache-compatible.  The baked loader could sometimes not fully invalidate
itself in these some of these scenarios leading to missed eager loads.

Fixes: #5303
Change-Id: Iecf847204a619694d89297f83b63b613ef9767de

5 years agoDon't apply sets or similar to objects in IdentitySet
Mike Bayer [Mon, 4 May 2020 00:27:24 +0000 (20:27 -0400)] 
Don't apply sets or similar to objects in IdentitySet

Modified the internal "identity set" implementation, which is a set that
hashes objects on their id() rather than their hash values, to not actually
call the ``__hash__()`` method of the objects, which are typically
user-mapped objects.  Some methods were calling this method as a side
effect of the implementation.

Fixes: #5304
Change-Id: I0ed8762f47622215a54dcad9f210377b1becf8e8

5 years agoFix links in future engine to refer to engine.Result
Mike Bayer [Sat, 2 May 2020 18:59:15 +0000 (14:59 -0400)] 
Fix links in future engine to refer to engine.Result

Change-Id: I1d24db707de15fbdc05e80e0705590eb93d055d0

5 years agoIntegrate new Result into ORM query
Mike Bayer [Fri, 24 Apr 2020 19:34:19 +0000 (15:34 -0400)] 
Integrate new Result into ORM query

The next step in the 2.0 ORM changes is to have the
ORM integrate with the new Result object fully.

this patch uses Result to represent ORM objects rather
than lists.  public API to get at this Result is not
added yet.   dogpile.cache and horizontal sharding
recipe/extensions have small adjustments to accommodate
this change.

Callcounts have fluctuated, some slightly better and
some slightly worse.  A few have gone up by a bit,
however as the codebase is still in flux it is anticipated
there will be some performance gains later on as
ORM fetching is refined to no longer need to accommodate
for extensive aliasing.   The addition of caching
will then change the entire story.

References: #5087
References: #4395

Change-Id: If1a23824ffb77d8d58cf2338cf35dd6b5963b17f

5 years agoMerge "Capitalize documentation for relationship params"
mike bayer [Sat, 2 May 2020 03:34:07 +0000 (03:34 +0000)] 
Merge "Capitalize documentation for relationship params"

5 years agoMerge "Handle non-string, non column expression in index for deferred attach"
mike bayer [Sat, 2 May 2020 03:33:18 +0000 (03:33 +0000)] 
Merge "Handle non-string, non column expression in index for deferred attach"

5 years agoDocumentation updates for ResultProxy -> Result
Mike Bayer [Sun, 26 Apr 2020 14:59:34 +0000 (10:59 -0400)] 
Documentation updates for ResultProxy -> Result

This is based off of
I8091919d45421e3f53029b8660427f844fee0228 and includes
all documentation-only changes as a separate merge,
once the parent is merged.

Change-Id: I711adea23df0f9f0b1fe7c76210bd2de6d31842d

5 years agoHandle non-string, non column expression in index for deferred attach
Mike Bayer [Sat, 2 May 2020 00:30:18 +0000 (20:30 -0400)] 
Handle non-string, non column expression in index for deferred attach

Fixed issue where an :class:`.Index` that is deferred in being associated
with a table, such as as when it contains a :class:`.Column` that is not
associated with any :class:`.Table` yet,  would fail to attach correctly if
it also contained a non table-oriented expession.

Fixes: #5298
Change-Id: I0111c400f6bd4a9f31bf00a9957816c7a3fac783

5 years agoMerge "Propose Result as immediate replacement for ResultProxy"
mike bayer [Fri, 1 May 2020 23:19:32 +0000 (23:19 +0000)] 
Merge "Propose Result as immediate replacement for ResultProxy"

5 years agoPropose Result as immediate replacement for ResultProxy
Mike Bayer [Tue, 21 Apr 2020 16:51:13 +0000 (12:51 -0400)] 
Propose Result as immediate replacement for ResultProxy

As progress is made on the _future.Result, including breaking
it out such that DBAPI behaviors are local to specific
implementations, it becomes apparent that the Result object
is a functional superset of ResultProxy and that basic
operations like fetchone(), fetchall(), and fetchmany()
behave pretty much exactly the same way on the new object.
Reorganize things so that ResultProxy is now referred to
as LegacyCursorResult, which subclasses CursorResult
that represents the DBAPI-cursor version of Result,
making use of a multiple inheritance pattern so that
the functionality of Result is also available in non-DBAPI
contexts, as will be necessary for some ORM
patterns.

Additionally propose the composition system for Result
that will form the basis for ORM-alternative result
systems such as horizontal sharding and dogpile cache.
As ORM results will soon be coming directly from
instances of Result, these extensions will instead
build their own ResultFetchStrategies that perform
the special steps to create composed or cached
result sets.

Also considering at the moment not emitting deprecation
warnings for fetchXYZ() methods; the immediate issue
is Keystone tests are calling upon it, but as the
implementations here are proving to be not in any
kind of conflict with how Result works, there's
not too much issue leaving them around and deprecating
at some later point.

References: #5087
References: #4395
Fixes: #4959
Change-Id: I8091919d45421e3f53029b8660427f844fee0228

5 years agoMerge "Enable loading of external Firebird dialect, if available"
Gord Thompson [Fri, 1 May 2020 16:27:07 +0000 (16:27 +0000)] 
Merge "Enable loading of external Firebird dialect, if available"

5 years agorepair test_fetch_results
Mike Bayer [Thu, 30 Apr 2020 19:06:03 +0000 (15:06 -0400)] 
repair test_fetch_results

this profiling test was not actually loading the related
objects.

Change-Id: I9d18a44f50f72f6653f736708829365eb561160e

5 years agoEnable loading of external Firebird dialect, if available
Gord Thompson [Fri, 24 Apr 2020 15:05:47 +0000 (09:05 -0600)] 
Enable loading of external Firebird dialect, if available

Fixes: #5278
Change-Id: I1660abb11c02656fbf388f2f9c4257075111be58

5 years agoDeprecate unsupported dialects and dbapi
Federico Caselli [Sat, 18 Apr 2020 18:58:41 +0000 (20:58 +0200)] 
Deprecate unsupported dialects and dbapi

- Deprecate dialects firebird and sybase.

- Deprecate DBAPI

  - mxODBC for mssql

  - oursql for mysql

  - pygresql and py-postgresql for postgresql

- Removed adodbapi DBAPI for mssql

Fixes: #5189
Change-Id: Id9025f4f4de7e97d65aacd0eb4b0c21beb9a67b5

5 years agoRestore a line break that is needed for a clean merge
Mike Bayer [Wed, 29 Apr 2020 14:44:48 +0000 (10:44 -0400)] 
Restore a line break that is needed for a clean merge

Change-Id: Ib433920080ba159a1478c48d2f837bc71bf5bbbc

5 years agoCapitalize documentation for relationship params
Federico Caselli [Tue, 28 Apr 2020 20:28:33 +0000 (22:28 +0200)] 
Capitalize documentation for relationship params

Change-Id: Iec1f0afcc57177a7463d8238f1c5d6bb8b86bbb3

5 years agoMerge "Alias the onclause if ORM join is to same polymorphic selectable"
mike bayer [Tue, 28 Apr 2020 18:37:43 +0000 (18:37 +0000)] 
Merge "Alias the onclause if ORM join is to same polymorphic selectable"

5 years agoother minor cleanups 5287/head
Federico Caselli [Tue, 28 Apr 2020 17:11:30 +0000 (19:11 +0200)] 
other minor cleanups

Change-Id: Ie7b8cec01ce36f2619b3e3bcb3152747be673ca3

5 years agoAlias the onclause if ORM join is to same polymorphic selectable
Mike Bayer [Mon, 27 Apr 2020 20:51:43 +0000 (16:51 -0400)] 
Alias the onclause if ORM join is to same polymorphic selectable

Fixed bug where using :func:`.with_polymorphic` as the target of a join via
:meth:`.RelationshipComparator.of_type` on a mapper that already has a
subquery-based with_polymorphic setting that's equivalent to the one
requested would not correctly alias the ON clause in the join.

Fixes: #5288
Change-Id: I0212a990ee67a344c87fe21833bf47fdb72ca0cc

5 years agofix typo SQLAchemy -> SQLAlchemy
Federico Caselli [Mon, 27 Apr 2020 19:10:32 +0000 (21:10 +0200)] 
fix typo SQLAchemy -> SQLAlchemy

Change-Id: If03ccc2c2bec1c48eb6ed26091e1588b3b46e781

5 years agoUpdate automatic label 5279/head
Federico Caselli [Fri, 24 Apr 2020 16:42:46 +0000 (18:42 +0200)] 
Update automatic label

Change-Id: I5a1496a3bd55eb8f9863b9b8cb84f1784c26dbf0

5 years agoImprove bug report
Federico Caselli [Thu, 23 Apr 2020 19:11:17 +0000 (21:11 +0200)] 
Improve bug report

5 years agoUpdate issue templates
Federico Caselli [Thu, 23 Apr 2020 18:58:30 +0000 (20:58 +0200)] 
Update issue templates

5 years agoAdd code of conduct and contributing
Federico Caselli [Thu, 23 Apr 2020 18:51:28 +0000 (20:51 +0200)] 
Add code of conduct and contributing

Change-Id: I9793920a9f082ee85be0f4c94f2ce208cf2c6be9

5 years agoMerge "Fix regression when reflecting tables in MSSQL"
mike bayer [Wed, 22 Apr 2020 21:23:15 +0000 (21:23 +0000)] 
Merge "Fix regression when reflecting tables in MSSQL"

5 years agoFix regression when reflecting tables in MSSQL
Federico Caselli [Thu, 16 Apr 2020 21:01:03 +0000 (23:01 +0200)] 
Fix regression when reflecting tables in MSSQL

Fix a regression introduced by the reflection of computed column in
MSSQL when using SQL server versions before 2012, which does not support
the ``concat`` function and when using the legacy TDS version 4.2.
The dialect will try to detect the protocol version of first connect
and run in compatibility mode if it cannot detect it.

Fixes: #5255
Fixes: #5271
Change-Id: I7b33f7889ac0784cd8ae5385cbd50bc8c862398a

5 years agoMerge "Add ColumnProperty.Comparator.expressions"
mike bayer [Tue, 21 Apr 2020 16:11:37 +0000 (16:11 +0000)] 
Merge "Add ColumnProperty.Comparator.expressions"

5 years agoAdd ColumnProperty.Comparator.expressions
Mike Bayer [Mon, 20 Apr 2020 16:24:40 +0000 (12:24 -0400)] 
Add ColumnProperty.Comparator.expressions

Added an accessor :attr:`.ColumnProperty.Comparator.expressions` which
provides access to the group of columns mapped under a multi-column
:class:`.ColumnProperty` attribute.

Fixes: #5262
Change-Id: I44cf53ff0e6cf76a0c90eee4638ca96da3df8088

5 years agoFix typo in pymssql documentation; minor clarification
Gord Thompson [Mon, 20 Apr 2020 19:16:20 +0000 (13:16 -0600)] 
Fix typo in pymssql documentation; minor clarification

Change-Id: I4aaf0627d2f1ccae82c2eb41db9ec219d73ce4ea

5 years agoMerge "Deprecate ``DISTINCT ON`` when not targeting PostgreSQL"
mike bayer [Mon, 20 Apr 2020 17:15:54 +0000 (17:15 +0000)] 
Merge "Deprecate ``DISTINCT ON`` when not targeting PostgreSQL"

5 years agoMerge "Support `ARRAY` of `Enum`, `JSON` or `JSONB`"
mike bayer [Mon, 20 Apr 2020 17:12:22 +0000 (17:12 +0000)] 
Merge "Support `ARRAY` of `Enum`, `JSON` or `JSONB`"

5 years agoSupport `ARRAY` of `Enum`, `JSON` or `JSONB`
Federico Caselli [Sun, 19 Apr 2020 18:09:39 +0000 (20:09 +0200)] 
Support `ARRAY` of `Enum`, `JSON` or `JSONB`

Added support for columns or type :class:`.ARRAY` of :class:`.Enum`,
:class:`.JSON` or :class:`_postgresql.JSONB` in PostgreSQL.
Previously a workaround was required in these use cases.
Raise an explicit :class:`.exc.CompileError` when adding a table with a
column of type :class:`.ARRAY` of :class:`.Enum` configured with
:paramref:`.Enum.native_enum` set to ``False`` when
:paramref:`.Enum.create_constraint` is not set to ``False``

Fixes: #5265
Fixes: #5266
Change-Id: I83a2d20a599232b7066d0839f3e55ff8b78cd8fc

5 years agoMerge "Raise informative error when non-object m2o comparison used"
mike bayer [Mon, 20 Apr 2020 15:31:05 +0000 (15:31 +0000)] 
Merge "Raise informative error when non-object m2o comparison used"

5 years agoDeprecate ``DISTINCT ON`` when not targeting PostgreSQL
Federico Caselli [Thu, 16 Apr 2020 21:16:32 +0000 (23:16 +0200)] 
Deprecate ``DISTINCT ON`` when not targeting PostgreSQL

Deprecate usage of ``DISTINCT ON`` in dialect other than PostgreSQL.
Previously this was silently ignored.
Deprecate old usage of string distinct in MySQL dialect

Fixes: #4002
Change-Id: I38fc64aef75e77748083c11d388ec831f161c9c9

5 years agoClean up .execute in test/sql/test_functions.py
Gord Thompson [Tue, 14 Apr 2020 13:15:07 +0000 (07:15 -0600)] 
Clean up .execute in test/sql/test_functions.py

Change-Id: I2bc7a50893f90c6ea7e119a8558731ee32965871

5 years agoMerge remote-tracking branch 'origin/pr/5247'
Mike Bayer [Mon, 20 Apr 2020 13:43:27 +0000 (09:43 -0400)] 
Merge remote-tracking branch 'origin/pr/5247'

Change-Id: I781c1083c373a417cbf33946daae556249fcd487

5 years agoMerge "Update pymssql information for mssql dialect"
mike bayer [Mon, 20 Apr 2020 13:12:51 +0000 (13:12 +0000)] 
Merge "Update pymssql information for mssql dialect"

5 years agoUpdate pymssql information for mssql dialect
Gord Thompson [Sat, 18 Apr 2020 23:04:03 +0000 (17:04 -0600)] 
Update pymssql information for mssql dialect

Change-Id: I94cf63299a094b53e7078b282311f7d0faa256a6

5 years agoMerge "Rename py.test to pytest"
mike bayer [Mon, 20 Apr 2020 13:04:32 +0000 (13:04 +0000)] 
Merge "Rename py.test to pytest"

5 years agoRaise informative error when non-object m2o comparison used
Mike Bayer [Sun, 19 Apr 2020 20:52:54 +0000 (16:52 -0400)] 
Raise informative error when non-object m2o comparison used

An informative error message is raised when an ORM many-to-one comparison
is attempted against an object that is not an actual mapped instance.
Comparisons such as those to scalar subqueries aren't supported;
generalized comparison with subqueries is better achieved using
:meth:`~.RelationshipProperty.Comparator.has`.

Fixes: #5269
Change-Id: I2e23178eb59728c39241a46bfa7411239a87492e

5 years agoAdd @requirements.schemas to test_create_table_schema
Gord Thompson [Sat, 18 Apr 2020 14:41:04 +0000 (08:41 -0600)] 
Add @requirements.schemas to test_create_table_schema

Prevent test_create_table_schema from failing for databases that do not support schemas.

Change-Id: I0f5f129c313ee6023be2e6d84610355afc48c05c

5 years agoRename py.test to pytest
Gord Thompson [Thu, 16 Apr 2020 22:06:36 +0000 (16:06 -0600)] 
Rename py.test to pytest

Change-Id: I431e1ef41e26d490343204a75a5c097768749768

5 years agoCreate initial 2.0 engine implementation
Mike Bayer [Tue, 7 Apr 2020 18:15:43 +0000 (14:15 -0400)] 
Create initial 2.0 engine implementation

Implemented the SQLAlchemy 2 :func:`.future.create_engine` function which
is used for forwards compatibility with SQLAlchemy 2.   This engine
features always-transactional behavior with autobegin.

Allow execution options per statement execution.  This includes
that the before_execute() and after_execute() events now accept
an additional dictionary with these options, empty if not
passed; a legacy event decorator is added for backwards compatibility
which now also emits a deprecation warning.

Add some basic tests for execution, transactions, and
the new result object.   Build out on a new testing fixture
that swaps in the future engine completely to start with.

Change-Id: I70e7338bb3f0ce22d2f702537d94bb249bd9fb0a
Fixes: #4644
5 years agoMerge "Pass connection to TablesTest.insert_data()"
mike bayer [Wed, 15 Apr 2020 18:31:30 +0000 (18:31 +0000)] 
Merge "Pass connection to TablesTest.insert_data()"

5 years agoPass connection to TablesTest.insert_data()
Mike Bayer [Tue, 14 Apr 2020 19:30:28 +0000 (15:30 -0400)] 
Pass connection to TablesTest.insert_data()

towards the goal of reducing verbosity and repetition
in test fixtures as well as that we are moving to
connection only for execution, move the insert_data()
classmethod to accept a connection and adjust all
fixtures to use it.

Change-Id: I3bf534acca0d5f4cda1d4da8ae91f1155b829b09

5 years agoSet up absolute references for create_engine and related
Mike Bayer [Tue, 14 Apr 2020 20:39:42 +0000 (16:39 -0400)] 
Set up absolute references for create_engine and related

includes more replacements for create_engine(), Connection,
disambiguation of Result from future/baked

Change-Id: Icb60a79ee7a6c45ea9056c211ffd1be110da3b5e

5 years agoMerge "Run search and replace of symbolic module names"
mike bayer [Tue, 14 Apr 2020 19:48:20 +0000 (19:48 +0000)] 
Merge "Run search and replace of symbolic module names"

5 years agoMerge "Clean up .execute calls in test_results.py"
mike bayer [Tue, 14 Apr 2020 19:01:53 +0000 (19:01 +0000)] 
Merge "Clean up .execute calls in test_results.py"

5 years agoMerge "Clean up .execute calls in test_select.py"
mike bayer [Tue, 14 Apr 2020 19:01:18 +0000 (19:01 +0000)] 
Merge "Clean up .execute calls in test_select.py"

5 years agoMerge "Clean up .execute in test/sql/test_returning.py"
mike bayer [Tue, 14 Apr 2020 18:58:50 +0000 (18:58 +0000)] 
Merge "Clean up .execute in test/sql/test_returning.py"

5 years agoMerge "Clean up .execute in test/sql/test_query.py"
mike bayer [Tue, 14 Apr 2020 18:57:34 +0000 (18:57 +0000)] 
Merge "Clean up .execute in test/sql/test_query.py"

5 years agoMerge "Clean up .execute in test/sql/test_deprecations.py"
mike bayer [Tue, 14 Apr 2020 18:54:24 +0000 (18:54 +0000)] 
Merge "Clean up .execute in test/sql/test_deprecations.py"

5 years agoMerge "Clean up .execute in test/sql/test_resultset.py"
mike bayer [Tue, 14 Apr 2020 18:53:35 +0000 (18:53 +0000)] 
Merge "Clean up .execute in test/sql/test_resultset.py"

5 years agoMerge "Clean up .execute calls in remaining suite tests"
mike bayer [Tue, 14 Apr 2020 18:50:28 +0000 (18:50 +0000)] 
Merge "Clean up .execute calls in remaining suite tests"

5 years agoMerge "Clean up .execute calls in test_sequence.py"
mike bayer [Tue, 14 Apr 2020 18:48:58 +0000 (18:48 +0000)] 
Merge "Clean up .execute calls in test_sequence.py"

5 years agoMerge "Clean up .execute calls in test_insert.py"
mike bayer [Tue, 14 Apr 2020 18:48:13 +0000 (18:48 +0000)] 
Merge "Clean up .execute calls in test_insert.py"

5 years agoRun search and replace of symbolic module names
Mike Bayer [Tue, 14 Apr 2020 17:15:21 +0000 (13:15 -0400)] 
Run search and replace of symbolic module names

Replaces a wide array of Sphinx-relative doc references
with an abbreviated absolute form now supported by
zzzeeksphinx.

Change-Id: I94bffcc3f37885ffdde6238767224296339698a2

5 years agoMerge "Enable zzzeeksphinx module prefixes"
mike bayer [Tue, 14 Apr 2020 17:04:26 +0000 (17:04 +0000)] 
Merge "Enable zzzeeksphinx module prefixes"

5 years agoEnable zzzeeksphinx module prefixes
Mike Bayer [Sun, 12 Apr 2020 19:18:02 +0000 (15:18 -0400)] 
Enable zzzeeksphinx module prefixes

zzzeeksphinx 1.1.2 in git can now convert short
prefix names in a configured lookup to fully qualified module
names, so that
we can have succinct and portable pyrefs
that still resolve absolutely.
It also includes a formatter that will format all pyrefs
in a fully consistent way regardless of the package path,
by unconditionally removing all package tokens but always
leaving class names in place including for methods, which
means we no longer have to deal with tildes in pyrefs.

The most immediate goal of the absolute prefixes is
that we have lots of
"ambiguous" names that appear in muliple places, like select(),
ARRAY, ENUM etc.   With the incoming future packages there
is going to be lots of name overlap so it is necessary
that all names eventually use absolute package paths
when Sphinx receives them.

In multiple stages, pyrefs will be converted using the
zzzeeksphinx tools/fix_xrefs.py tool so that doclinks can
be made absolute using symbolic prefixes.

For this review, the actual search and replace of symbols
is not performed, instead some general cleanup to prepare
the docs as well as a lookup file used by the tool
to do the conversion.   this relatively small patch will
be backported
with appropriate changes to 1.3, 1.2, 1.1 and the tool
can then be run on each branch individually.  We are shooting
for almost no warnings at all for master (still a handful
I can't figure out which don't seem to have any impact)
, very few for 1.3,
and for 1.2 / 1.1 we hope for a significant reduction
in warnings.

Overall for all versions pyrefs should
always point to the correct target, if they are in fact
hyperlinked.  it's better for a ref to go nowhere and
be plain text than go to the wrong thing.  Right now,
hundreds of API links are pointing to the wrong thing
as they are ambiguous names such as refresh(), insert(),
update(), select(), join(), JSON etc. and Sphinx sends these all
to essesntially random destinations among as many as five
or six possible choices per symbol.  A shorthand system
that allows us to use absolute refs without having
to type out a full blown absoulte module is the only
way this is going to work, and we should ultimately
seek to abandon any use of prefix dot for lookups.  Everything
should be on an underscore token so at the very least the module
spaces can be reorganized without having to search and replace
the entire documentation every time.

Change-Id: I484a7329034af275fcdb322b62b6255dfeea9151

5 years agoClean up .execute in test/sql/test_returning.py
Gord Thompson [Tue, 14 Apr 2020 11:34:35 +0000 (05:34 -0600)] 
Clean up .execute in test/sql/test_returning.py

Change-Id: I390b0c9926345f9f4deec06b51d1a11a18a72ca9

5 years agoAdjust changelog files for removed directories
Mike Bayer [Mon, 13 Apr 2020 22:39:47 +0000 (18:39 -0400)] 
Adjust changelog files for removed directories

unreleased_11 and unreleased_12 are gone so remove these

also there's no place for the 4065 file to go, this is an old
and very small change and it looks like the file was not published in any
case, so just remove it.

Change-Id: I2b890ac4c7142e7b4462a7f45d7caa856edf3d4f

5 years agoSquashed commit of the following:
Mike Bayer [Mon, 13 Apr 2020 22:29:46 +0000 (18:29 -0400)] 
Squashed commit of the following:

commit 571da00f2c6fe905591b398a1e2fbc8ee2d05873
Author: jonathan vanasco <jonathan@2xlp.com>
Date:   Mon Apr 13 18:16:23 2020 -0400

    more examples, as suggested

commit c7b154eaf47719923c41498453571e04b6de1141
Author: jonathan vanasco <jonathan@2xlp.com>
Date:   Mon Apr 13 17:24:47 2020 -0400

    consolidating README

commit ff294507b664e9c414944a7509a0f71338957fbf
Author: jonathan vanasco <jonathan@2xlp.com>
Date:   Mon Apr 6 14:59:45 2020 -0400

    adding example readme

plus some mike changes

Change-Id: I09a11164df034ddcfe7c4e7d52308ea0b1ec509c

5 years agoAdd missing definitions to glossary
Mike Bayer [Mon, 13 Apr 2020 19:24:23 +0000 (15:24 -0400)] 
Add missing definitions to glossary

improve formatting

Change-Id: Iea3b72187d7c8020e18babb72a53c39c5aeec68c

5 years agoMerge remote-tracking branch 'origin/pr/5241'
Mike Bayer [Mon, 13 Apr 2020 18:07:37 +0000 (14:07 -0400)] 
Merge remote-tracking branch 'origin/pr/5241'

Change-Id: Ia2662c5fd9c7f544586a9450626cba738e5e9e7d

5 years agoMerge "Clean up .execute in test/sql/test_types.py"
mike bayer [Mon, 13 Apr 2020 15:47:19 +0000 (15:47 +0000)] 
Merge "Clean up .execute in test/sql/test_types.py"

5 years agoMerge "Repair find tables"
mike bayer [Mon, 13 Apr 2020 15:30:05 +0000 (15:30 +0000)] 
Merge "Repair find tables"

5 years agoMerge "Add ``comment`` attribute to :class:`.Column` ``__repr__`` method."
mike bayer [Mon, 13 Apr 2020 15:26:45 +0000 (15:26 +0000)] 
Merge "Add ``comment`` attribute to :class:`.Column` ``__repr__`` method."

5 years agoClean up .execute in test/sql/test_types.py
Gord Thompson [Mon, 13 Apr 2020 12:31:07 +0000 (06:31 -0600)] 
Clean up .execute in test/sql/test_types.py

Change-Id: I917264ecefcc7e2fd60e7170a0a0ad83d8167571

5 years agoClean up .execute in test/sql/test_query.py
Gord Thompson [Sun, 12 Apr 2020 23:38:04 +0000 (17:38 -0600)] 
Clean up .execute in test/sql/test_query.py

Change-Id: I3f3a3b3f7a7ec67ef475a9792372e1c9a600fafb

5 years agoMerge "Use define_tables for IsOrIsNotDistinctFromTest"
mike bayer [Mon, 13 Apr 2020 01:33:49 +0000 (01:33 +0000)] 
Merge "Use define_tables for IsOrIsNotDistinctFromTest"

5 years agoClean up .execute in test/sql/test_deprecations.py
Gord Thompson [Sun, 12 Apr 2020 21:27:06 +0000 (15:27 -0600)] 
Clean up .execute in test/sql/test_deprecations.py

Change-Id: I488f0992d5f26e164a903cbced11422046403647

5 years agoClean up .execute in test/sql/test_resultset.py
Gord Thompson [Sun, 12 Apr 2020 17:58:58 +0000 (11:58 -0600)] 
Clean up .execute in test/sql/test_resultset.py

Change-Id: Ie4bb2b8e94361d15a3f1f1c21ce1c59cff1cf735

5 years agoClean up .execute calls in remaining suite tests
Gord Thompson [Sun, 12 Apr 2020 13:03:25 +0000 (07:03 -0600)] 
Clean up .execute calls in remaining suite tests

Change-Id: Ib5c7f46067bcf5b162060476cc323bf671db101a

5 years agoClean up .execute calls in test_sequence.py
Gord Thompson [Sat, 11 Apr 2020 23:03:46 +0000 (17:03 -0600)] 
Clean up .execute calls in test_sequence.py

Change-Id: If92353297fc1b4bc843f6ec74cb29079b52c611b

5 years agoClean up .execute calls in test_results.py
Gord Thompson [Sat, 11 Apr 2020 20:11:55 +0000 (14:11 -0600)] 
Clean up .execute calls in test_results.py

Change-Id: I08b9046a48270f664ea8b8ba38d8be7763973a40

5 years agoAdd ``comment`` attribute to :class:`.Column` ``__repr__`` method.
Federico Caselli [Sat, 11 Apr 2020 18:50:37 +0000 (20:50 +0200)] 
Add ``comment`` attribute to :class:`.Column` ``__repr__`` method.

Fixes #4138

Change-Id: Ia93f7d7b1d2f38509421725fbe152a2ff163d5f3

5 years agoClean up .execute calls in test_select.py
Gord Thompson [Sat, 11 Apr 2020 18:27:22 +0000 (12:27 -0600)] 
Clean up .execute calls in test_select.py

Change-Id: I97dfb59d13a7c27c79c3dbcbcb5ba61948569e46

5 years agoFix almost all read-level sphinx warnings
Mike Bayer [Sat, 11 Apr 2020 17:46:56 +0000 (13:46 -0400)] 
Fix almost all read-level sphinx warnings

There are some related to changelog that I can't figure out
and are likely due to something in the changelog extension.
also one thing with a "collection" I can't figure out.

Change-Id: I0a9e6f4291c3589aa19a4abcb9245cd22a266fe0

5 years agoClean up .execute calls in test_insert.py
Gord Thompson [Sat, 11 Apr 2020 16:52:15 +0000 (10:52 -0600)] 
Clean up .execute calls in test_insert.py

Change-Id: I87e144d00577b53baab203c675caeaf8ad46cb5c

5 years agoMerge "The :meth:`.Inspector.reflecttable` was renamed to :meth:`.Inspector.reflect_t...
mike bayer [Sat, 11 Apr 2020 16:11:59 +0000 (16:11 +0000)] 
Merge "The :meth:`.Inspector.reflecttable` was renamed to :meth:`.Inspector.reflect_table`."

5 years agoThe :meth:`.Inspector.reflecttable` was renamed to :meth:`.Inspector.reflect_table`.
Federico Caselli [Fri, 10 Apr 2020 19:38:02 +0000 (21:38 +0200)] 
The :meth:`.Inspector.reflecttable` was renamed to :meth:`.Inspector.reflect_table`.

Fixes: #5244
Change-Id: I2b12fd69ed24ce1ede8f6ed5cb14cc7761308ee3

5 years agoUse define_tables for IsOrIsNotDistinctFromTest
Mike Bayer [Fri, 10 Apr 2020 20:58:41 +0000 (16:58 -0400)] 
Use define_tables for IsOrIsNotDistinctFromTest

In Ie8127ef29f1ec91e7afb88e1429538c27a321784 Mike
failed to notice that this test is build on TablesTest and
has just the one test function, which means the table is
built up by the fixture.

Change-Id: I855431bc976fe8ec96559ec1a22bb294aecf3c40

5 years agofix changelog 5247/head
Federico Caselli [Fri, 10 Apr 2020 20:54:13 +0000 (22:54 +0200)] 
fix changelog

5 years agoMerge "Fix distinct_from test for Firebird et al."
mike bayer [Fri, 10 Apr 2020 20:53:54 +0000 (20:53 +0000)] 
Merge "Fix distinct_from test for Firebird et al."

5 years agoMerge "Evaluate fixes for cx_Oracle 8 API changes"
mike bayer [Fri, 10 Apr 2020 20:50:47 +0000 (20:50 +0000)] 
Merge "Evaluate fixes for cx_Oracle 8 API changes"

5 years agoEvaluate fixes for cx_Oracle 8 API changes
Mike Bayer [Fri, 10 Apr 2020 16:23:32 +0000 (12:23 -0400)] 
Evaluate fixes for cx_Oracle 8 API changes

in [1] we have reported some behavioral changes in cx_Oracle
symbols.   As it is unclear if these are intended changes in
cx_Oracle, test workarounds for these changes against
cx_Oracle master.

[1] https://github.com/oracle/python-cx_Oracle/issues/415

Fixes: #5246
Change-Id: If63f92553c46484bf2b61b53a9e6d85cb08e800a

5 years agoRepair CTE a in b tests
Mike Bayer [Fri, 10 Apr 2020 18:28:54 +0000 (14:28 -0400)] 
Repair CTE a in b tests

In I27cac9bd265c86ff2a3381ff9f844f60ef991cfc we modernized
the default tests and converted the "a in b" CTE tests to combinations,
however apparently the existing tests were not testing all
combinations and had repeats instead.   The combinations
decorator has made this much easier to spot, so use
the correct combinations that were originally intended.

Change-Id: Icd904887bff00c31525497d0b1508fabaf052dc9

5 years agoMerge "Remove code deprecated before version 1.1"
mike bayer [Fri, 10 Apr 2020 17:52:47 +0000 (17:52 +0000)] 
Merge "Remove code deprecated before version 1.1"

5 years agoModernize test_defaults
Mike Bayer [Thu, 9 Apr 2020 22:03:30 +0000 (18:03 -0400)] 
Modernize test_defaults

Use modern execution patterns, goal is so that these same tests
can work for the future engine

break sequence tests into test_sequences suite

sequence tests that are testing implicit execution patterns
at least move into their own suite that will go into test_deprecations
eventually.

Change-Id: I27cac9bd265c86ff2a3381ff9f844f60ef991cfc

5 years agoimprove linux build 5241/head
Federico Caselli [Thu, 9 Apr 2020 21:02:12 +0000 (23:02 +0200)] 
improve linux build

Change-Id: I9bde5fb2cd9997c620d8ee3173fcd7fc6d80cae7

5 years agoFix distinct_from test for Firebird et al.
Gord Thompson [Wed, 8 Apr 2020 11:40:36 +0000 (05:40 -0600)] 
Fix distinct_from test for Firebird et al.

Firebird (and perhaps others) allow us to CREATE TABLE inside a transaction but we can't INSERT INTO that table unless we COMMIT first.

Change-Id: Ie8127ef29f1ec91e7afb88e1429538c27a321784

5 years agoRepair find tables
Mike Bayer [Thu, 9 Apr 2020 15:15:03 +0000 (11:15 -0400)] 
Repair find tables

The recipe given out on the ML for improving ABC
fails in 1.4 due to find_tables() missing out on subqueries,
which is due to the refactor of Alias into multiple sub-types.

Change-Id: Idd2803b26a84b28db28e0b8c328b8f24550577e4

5 years agoallow for no spaced near the = in the tag_build
Federico Caselli [Wed, 8 Apr 2020 22:56:42 +0000 (00:56 +0200)] 
allow for no spaced near the = in the tag_build

Change-Id: I67b524025467fc2ee1faf34f3fe241a19b9c72f3

5 years agoremove duplicated pip update command
Federico Caselli [Wed, 8 Apr 2020 22:43:48 +0000 (00:43 +0200)] 
remove duplicated pip update command

Change-Id: I5f1d888a13dbdf4c9ded85a6922c9ffcdaea5a0f

5 years agoRemove code deprecated before version 1.1
Federico Caselli [Wed, 8 Apr 2020 18:26:21 +0000 (20:26 +0200)] 
Remove code deprecated before version 1.1

- Remove deprecated method ``get_primary_keys` in the :class:`.Dialect` and
  :class:`.Inspector` classes.
- Remove deprecated event ``dbapi_error`` and the method ``ConnectionEvents.dbapi_error`.
- Remove support for deprecated engine URLs of the form ``postgres://``.
- Remove deprecated dialect ``mysql+gaerdbms``.
- Remove deprecated parameter ``quoting`` from :class:`.mysql.ENUM`
  and :class:`.mysql.SET` in the ``mysql`` dialect.
- Remove deprecated function ``comparable_property``. and function
  ``comparable_using`` in the declarative extension.
- Remove deprecated function ``compile_mappers``.
- Remove deprecated method ``collection.linker``.
- Remove deprecated method ``Session.prune`` and parameter ``Session.weak_identity_map``.
  This change also removes the class ``StrongInstanceDict``.
- Remove deprecated parameter ``mapper.order_by``.
- Remove deprecated parameter ``Session._enable_transaction_accounting`.
- Remove deprecated parameter ``Session.is_modified.passive``.
- Remove deprecated class ``Binary``. Please use :class:`.LargeBinary`.
- Remove deprecated methods ``Compiled.compile``, ``ClauseElement.__and__`` and
  ``ClauseElement.__or__`` and attribute ``Over.func``.
- Remove deprecated ``FromClause.count`` method.
- Remove deprecated parameter ``Table.useexisting``.
- Remove deprecated parameters ``text.bindparams`` and ``text.typemap``.

- Remove boolean support for the ``passive`` parameter in ``get_history``.
- Remove deprecated ``adapt_operator`` in ``UserDefinedType.Comparator``.

Fixes: #4643
Change-Id: Idcd390c77bf7b0e9957907716993bdaa3f1a1763

5 years agoremove tag_build from setup.cfg
Federico Caselli [Wed, 8 Apr 2020 22:27:09 +0000 (00:27 +0200)] 
remove tag_build from setup.cfg

Change-Id: I547aecb28cda29607371138bf3a0c559a786c818

5 years agoAdd github workflow to generate wheel running after a release has beed created
Federico Caselli [Wed, 8 Apr 2020 20:17:42 +0000 (22:17 +0200)] 
Add github workflow to generate wheel running after a release has beed created

Change-Id: I916491f8f6bdbf7de7970a0ad4b24b9965003786

5 years agoChange ``orm.future`` to ``future.orm`` 5240/head
Federico Caselli [Wed, 8 Apr 2020 17:19:02 +0000 (19:19 +0200)] 
Change ``orm.future`` to ``future.orm``

Change-Id: I7fcf8b691134a0c52fbbf7879da071a41ec28102

5 years agotop link to 2.0 from the 1.4 docs
Mike Bayer [Wed, 8 Apr 2020 15:39:54 +0000 (11:39 -0400)] 
top link to 2.0 from the 1.4 docs

as these two versions are highly interrelated

Change-Id: I353ba3d40584781a547435e3ba2b3c36d926ba94