summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* - flake8 refactor - test_ormflake8_12Mike Bayer2019-01-0531-164/+544
| | | | | | | | | | | | | | A full rewrite of all imports and pep8 formatting using zimports, black, commits are broken into sections. Directories included in this commit: test/orm/ test/ext/ did not fully merge this one, needs to be done from scratch Change-Id: I22b42d81bbc35c3a4a8ad4e48dbc78c363cdd4e3 (cherry picked from commit 380f75c051314e615694cdb9186e8ac7de128131)
* flake8 refactor - test_dialectMike Bayer2019-01-0510-22/+193
| | | | | | | | | | | | A full rewrite of all imports and pep8 formatting using zimports, black, commits are broken into sections. Directories included in this commit: test/dialect/ Change-Id: Iec0231a43eb00122fcaaec942f1528ac4a33e59d (cherry picked from commit e88e29bb8e1aced6898d2aa7105c6e9eae528291)
* flake8 refactor - test_coreMike Bayer2019-01-0511-801/+101
| | | | | | | | | | | | A full rewrite of all imports and pep8 formatting using zimports, black, commits are broken into sections. Directories included in this commit: test/sql/ test/aaa_profiling/ Change-Id: I2bad1bd95dcf5cf76aad242280587e541e44fa9b (cherry picked from commit a4df4fc8bdf556c4153026ac0aa1b55750eaa8da)
* flake8 refactor - test_baseMike Bayer2019-01-055-25/+40
| | | | | | | | | | | | A full rewrite of all imports and pep8 formatting using zimports, black, commits are broken into sections. Directories included in this commit: test/requirements.py test/base/ test/perf/ test/engine/ Change-Id: I7136f15024c358ded22a93d8b546c69464a718b3 (cherry picked from commit 0375550d6d6f413f90708c94b7474ee132694bf6)
* - flake8 for lib passesMike Bayer2019-01-0515-38/+31
| | | | Change-Id: I0d7f5105f838a0275f3c240441bdcdc9ae7444d0
* - imports in lib pass flake8Mike Bayer2019-01-054-20/+2
| | | | Change-Id: Ia661822e9d1792da8f965fe3cbb00cce288c8739
* - compatMike Bayer2019-01-051-29/+26
| | | | Change-Id: I33024885c8c7c98294f27460a1531be165b78f37
* - orm passing flake8Mike Bayer2019-01-051-3/+3
| | | | Change-Id: Iabd5a5724ee15db27db21327901a59257fb4f0a1
* - dialects passes flake8Mike Bayer2019-01-053-3/+1
| | | | Change-Id: I9fa269423619c1adfbaa6d63e0997153ea115d73
* - examples passing flake8Mike Bayer2019-01-0511-17/+1
| | | | Change-Id: Ia1e9e35ebf0f5c2ad30f7dcef0a5a42a0929b23e
* flake8 refactor - extMike Bayer2019-01-058-102/+112
| | | | | | | | | | | | A full rewrite of all imports and pep8 formatting using zimports, black, commits are broken into sections. Directories included in this commit: lib/sqlalchemy/ext/ Change-Id: I3dd7aed3f42675e9ada64446ffd2758db7c3bc93 (cherry picked from commit 0716a292e03040ad4f96b890691b9e2c888ec11d)
* flake8 refactor - dialectsMike Bayer2019-01-0533-300/+365
| | | | | | | | | | | | A full rewrite of all imports and pep8 formatting using zimports, black, commits are broken into sections. Directories included in this commit: lib/sqlalchemy/dialects/ lib/sqlalchemy/databases/ lib/sqlalchemy/connectors/ Change-Id: I7070d589303a760e6ed5eefde39efc11da818281 (cherry picked from commit aa46e6a9e2e3cd04f835c53ed4600e6f8e9ee13f)
* flake8 refactor - ormMike Bayer2019-01-0517-103/+184
| | | | | | | | | | | | A full rewrite of all imports and pep8 formatting using zimports, black, commits are broken into sections. Directories included in this commit: lib/sqlalchemy/orm/ Change-Id: Iad6a2e4a03a5bbfd5d68d174284aaabe69e2760a (cherry picked from commit 7eeed1cbb97b9b08bf74739a3b02d672d1858249)
* flake8 refactor - engineMike Bayer2019-01-0514-122/+335
| | | | | | | | | | | | A full rewrite of all imports and pep8 formatting using zimports, black, commits are broken into sections. Directories included in this commit: lib/sqlalchemy/*.py lib/sqlalchemy/engine/ lib/sqlalchemy/pool/ lib/sqlalchemy/event/ Change-Id: Idf6a7ba01bacd00fd9271fefd7e1bbab6f91f22b (cherry picked from commit e85ed21d2cdfcb215ff363592daecf9fe0d9e576)
* flake8 refactor - utilMike Bayer2019-01-0526-149/+371
| | | | | | | | | | | | A full rewrite of all imports and pep8 formatting using zimports, black, commits are broken into sections. Directories included in this commit: lib/sqlalchemy/testing/ lib/sqlalchemy/util/ Change-Id: Ia686b88e8b334874716de0be5e383c7b2abe5643 (cherry picked from commit 40ba6aca86362f54a27ae3380cb453ec6fd4448f)
* flake8 refactor - coreMike Bayer2019-01-0515-174/+304
| | | | | | | | | | | | A full rewrite of all imports and pep8 formatting using zimports, black, commits are broken into sections. Directories included in this commit: lib/sqlalchemy/sql/ Change-Id: Ia994322c398c55aaa01d11d21cb74f1d50ab683f (cherry picked from commit 0ae1a3ab57727b798da78befa1ee40537ae95b69)
* partial cherry-pick of master flake8. clean cherrypick for lib and test,Mike Bayer2019-01-0566-233/+313
| | | | | | | manually merged exaples. Change-Id: I9532d3b13d13f2769e6ca48eea23dd7d4041f68f (cherry picked from commit e3bdd80c6661c0e95fb67998c57540be667ce761)
* Straight zimports run on examplesMike Bayer2019-01-0545-321/+418
| | | | Change-Id: Id318122cb360b58604a658f3de1e5fce8b4a3e33
* - do a broken zimports run on libMike Bayer2019-01-05174-2086/+1737
|
* - prep for clean zimports runMike Bayer2019-01-053-19/+19
|
* zimports for all of test/Mike Bayer2019-01-05174-3232/+3676
|
* step 1, straight black -l 79 runMike Bayer2019-01-05423-78345/+109546
| | | | includes adjustment to setup.py to recognize __version__ correctly
* Prep for flake8 refactoringMike Bayer2019-01-037-19/+46
| | | | | | | | | a few code changes ahead of time to handle some __all__ issues better. also include new flake8 rules, since the existing flake8 doesn't pass in any case. Change-Id: I1efdf75124ae7bcac719c22e505bb5b13db06c04 (cherry picked from commit d229360a8d4071c2f150558897f37e13eb09f430)
* rework the exclusions spec expressionMike Bayer2018-12-311-12/+18
| | | | | | | | The expression was expecting spaces which means we were skipping Postgresql window function tests and possibly other things. Change-Id: I57c4aed558f4011f2f7b882a2d9b1fee210f9eaf (cherry picked from commit 1eaf9dc7776b9833a9fb62fe630b4b9ac63a31f4)
* commit 1b774808c926665047bf353222ecd191679a95d1Lele Gaifax2018-12-3021-64/+64
| | | | | | | | | | | | | | | | Author: Lele Gaifax <lele@metapensiero.it> Date: Tue Dec 25 12:35:41 2018 +0100 Consistently use "PostgreSQL", fixing also a few doc glitches commit 0e382aaee4427193926f0dc10ad29056bc12c85e Author: Lele Gaifax <lele@metapensiero.it> Date: Tue Dec 25 12:08:49 2018 +0100 Remove duplicated words Change-Id: Iaa586b9412f46a50fe6ff3bbb92e07d6cb1905c8 (cherry picked from commit c0f9708fde39175c8695fdd87873464f516fdf98)
* Add missing disambiguation to non-primary mapper exampleMike Bayer2018-12-281-4/+12
| | | | | | | | | | | The mapping to B over a join defines an alternate primary key based on all the primary key columns in the join unless we re-define it explicitly. Similarly, people expect that ``.id`` looks the same. make sure these line up with the old mapping. Change-Id: I1ab064c57019e79c34293f6588d1e033f7083974 (cherry picked from commit 16f08cbed5ff4f0f0b08dbd0dbd6e49aaee79163)
* - remove non-working dialects some of which are 404'sMike Bayer2018-12-242-45/+13
| | | | | | | | - put the five major dialect names on the front page - remove old change messages Change-Id: Ibf1dc2c499f10f98efb6c97d6c53e442e7746200 (cherry picked from commit eae62d00049a24c028ba95e13b5199cfa59a1180)
* Maintain compiled_params / replacement_expressions within expanding INMike Bayer2018-12-213-32/+87
| | | | | | | | | | Fixed issue in "expanding IN" feature where using the same bound parameter name more than once in a query would lead to a KeyError within the process of rewriting the parameters in the query. Fixes: #4394 Change-Id: Ibcadce9fefbcb060266d9447c2044ee6efeccf5a (cherry picked from commit c495769751e8b19d54fb92388ced587b5d13b85d)
* Handle PostgreSQL enums in remote schemasMike Bayer2018-12-217-56/+337
| | | | | | | | | | | | | | | | | | | Fixed issue where a :class:`.postgresql.ENUM` or a custom domain present in a remote schema would not be recognized within column reflection if the name of the enum/domain or the name of the schema required quoting. A new parsing scheme now fully parses out quoted or non-quoted tokens including support for SQL-escaped quotes. Fixed issue where multiple :class:`.postgresql.ENUM` objects referred to by the same :class:`.MetaData` object would fail to be created if multiple objects had the same name under different schema names. The internal memoization the Postgresql dialect uses to track if it has created a particular :class:`.postgresql.ENUM` in the database during a DDL creation sequence now takes schema name into account. Fixes: #4416 Change-Id: I8cf03069e10b12f409e9b6796e24fc5850979955 (cherry picked from commit 0b0a4c8ba2465fce5fa1954a0d31b44840f1b4b8)
* Rewrite the convert_unicode docs and add tons of dragonsMike Bayer2018-12-212-36/+75
| | | | | | | | These flags will all be going away as Python 3 has solved all of this. Change-Id: I4f581d8dd7826dd823b671d0d8e72250284236c8 (cherry picked from commit 7f12f63c3a8c77715135126aac88ac6055b279c0)
* Add missing parameter to docstringAgam Rafaeli2018-12-171-0/+3
| | | | | | | | | Closes: #4410 Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/4410 Pull-request-sha: 070a0f44f3a6ce651e6b8e9dcc84d2d507d00845 Change-Id: I7a026bf6a2041e7686d90d5f155b88d8001f2ba8 (cherry picked from commit b1e4b597811768378d964e16bd142e8ee8c448d8)
* Document and support nested compositesMike Bayer2018-12-123-1/+148
| | | | | | | | | | | Composites can behave in a "nested" fashion by defining the class in that way. To make the constructor more convenient, a callable can be passed to :func:`.composite` instead of the class itself. This works now, so add a test to ensure this pattern remains available. Change-Id: Ia009f274fca7269f41d6d824e0f70b6fb0ada081 (cherry picked from commit d4a130bb1b92869efe33675262c7b1fde364e477)
* Version 1.2.16 placeholderMike Bayer2018-12-112-1/+5
|
* - 1.2.15rel_1_2_15Mike Bayer2018-12-119-65/+72
|
* Refer to existing of_type when resolving string attribute nameMike Bayer2018-12-073-6/+198
| | | | | | | | | | | Fixed bug where chaining of mapper options using :meth:`.RelationshipProperty.of_type` in conjunction with a chained option that refers to an attribute name by string only would fail to locate the attribute. Fixes: #4400 Change-Id: I01bf449ec4d8f56bb8c34e25153c1c9b31ff8012 (cherry picked from commit 099f3fd812ff4424f90f3c2b41ddce7049a54022)
* Add versioned_update_old_row exampleMike Bayer2018-12-071-0/+279
| | | | | | | | | A modification to the "turn UPDATE into INSERT" recipe that also UPDATEs the previous row. The example is using timestamps to maintain a relationship between two objects. Change-Id: Ifdb8ee73616190384263bbe88c71d9278d616f6b (cherry picked from commit 5851bf113821af6ce2e61484f103a44f4fabe430)
* - fix formatting on examples to list the description first, some flake8Mike Bayer2018-12-0716-126/+107
| | | | | Change-Id: I57144a559f20abab02e745d052be5ff84edec7f8 (cherry picked from commit c89729cf67f441359da8289104050b01eb53160b)
* Fixed typo in docsadriennefranke2018-12-051-1/+1
| | | | | | | Fixes: #4166 Fixes: #4399 Change-Id: I49494209463089114e77dfc737c811837d49ea20 (cherry picked from commit 09856b911ba52befc330676ad831d7829f88ef20)
* Merge "Move CRUDTest, InlineDefaultTest from test_compiler" into rel_1_2mike bayer2018-12-045-259/+310
|\
| * Move CRUDTest, InlineDefaultTest from test_compilerMike Bayer2018-12-015-259/+310
| | | | | | | | | | | | | | | | | | | | | | test_compiler is mostly related to SELECT statements as well as smaller SQL elements. While it still has some DDL related tests, move out all the remaining insert/update tests into the already present test_insert.py, test_update.py Fixes: #2630 Change-Id: I4167618543fd1235d12d1717c8c629d2374b325a (cherry picked from commit 87cdda008673e01e2c32049f103e9cdebd2a5d77)
* | All sphinx dependencies move under the github sqlalchemy organizationMike Bayer2018-12-031-3/+3
| | | | | | | | | | Change-Id: I7a0dc1ef320b6abad0eeac8b24c20f821e5b8c81 (cherry picked from commit 89f95e9badb260b78a7f1f7487feb6f9811ae06b)
* | Merge "Fix PostgreSQL reflection of domains expressed as arrays" into rel_1_2mike bayer2018-12-033-5/+36
|\ \
| * | Fix PostgreSQL reflection of domains expressed as arraysJakub Synowiec2018-12-013-5/+36
| |/ | | | | | | | | | | | | | | | | | | Fixed issue where reflection of a PostgreSQL domain that is expressed as an array would fail to be recognized. Pull request courtesy Jakub Synowiec. Fixes: #4377 Change-Id: I252c79ca435b87d4d9172b1c84e0e74e789ef676 Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/4380 (cherry picked from commit 46f9c3c7d4d2c31f3f1627dcf777bd3215e13e3d)
* | "left" -> "accidentally placed at"Mike Bayer2018-12-022-13/+7
|/ | | | | | | | | | | | since "left" is kind of ambiguous, use more explicit terminology here. Also update the test to use a positive assertion that the warning is emitted; quote the attribute name. Change-Id: Ic2284c200a26b32b2da063cfaf6d59547309d587 References: https://github.com/zzzeek/sqlalchemy/pull/488 (cherry picked from commit eacb31a89fe883edd0ada7f2724239c1f8c5b685)
* Merge "Add the write_timeout option for mysql." into rel_1_2mike bayer2018-11-303-0/+8
|\
| * Add the write_timeout option for mysql.jun923.gu2018-11-303-0/+8
| | | | | | | | | | | | | | | | | | | | | | As MySQLdb support read_timeout and write_timeout option, and sqlalchemy just support read_timeout option. So sqlalchemy need to add write_timeout option. Fixes: #4381 Change-Id: I2bea80bdd6f20fafc72b48fa0e5d795626d9d9b9 Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/4385 (cherry picked from commit 6a8454ded311010927af04db30a57d683cf67dd4)
* | typoRaphael2018-11-301-1/+1
|/ | | | | | typo (cherry picked from commit 0a0b36686d5da0e7d04974c8df0ece574b71f3cb)
* Add a test harness for MySQL connect argsMike Bayer2018-11-281-0/+22
| | | | | | | This is to assist with #4381. Change-Id: I5ebfc0da906a13edc4fb3f0ca7ab2d843d43bb00 (cherry picked from commit 6837e875a3367b466e2ce04ca16c7bff8fa5c575)
* Merge "Warn for lower-case column attribute on declarative" into rel_1_2mike bayer2018-11-273-0/+78
|\
| * Warn for lower-case column attribute on declarativeMike Bayer2018-11-263-0/+78
| | | | | | | | | | | | | | | | | | | | A warning is emitted in the case that a :func:`.column` object is applied to a declarative class, as it seems likely this intended to be a :class:`.Column` object. Fixes: #4374 Change-Id: I2e617ef65547162e3ba6587c168548ad0cf6203d (cherry picked from commit 6ec40eca1a03a9156ee82f3ce75850778220b39e)