Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- pgsql/pgAdmin 4/python/Lib/site-packages/Authlib-1.3.0.dist-info/INSTALLER +1 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/Authlib-1.3.0.dist-info/LICENSE +29 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/Authlib-1.3.0.dist-info/METADATA +104 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/Authlib-1.3.0.dist-info/RECORD +387 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/Authlib-1.3.0.dist-info/REQUESTED +0 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/Authlib-1.3.0.dist-info/WHEEL +6 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/Authlib-1.3.0.dist-info/top_level.txt +1 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/Babel-2.15.0.dist-info/INSTALLER +1 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/Babel-2.15.0.dist-info/LICENSE +27 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/Babel-2.15.0.dist-info/METADATA +36 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/Babel-2.15.0.dist-info/RECORD +1107 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/Babel-2.15.0.dist-info/WHEEL +5 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/Babel-2.15.0.dist-info/entry_points.txt +20 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/Babel-2.15.0.dist-info/top_level.txt +1 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/Brotli-1.1.0.dist-info/INSTALLER +1 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/Brotli-1.1.0.dist-info/LICENSE +19 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/Brotli-1.1.0.dist-info/METADATA +131 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/Brotli-1.1.0.dist-info/RECORD +9 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/Brotli-1.1.0.dist-info/WHEEL +5 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/Brotli-1.1.0.dist-info/top_level.txt +2 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/README.txt +2 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/_virtualenv.py +103 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/adodbapi/__init__.py +74 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/adodbapi/ado_consts.py +281 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/adodbapi/adodbapi.py +1223 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/adodbapi/apibase.py +794 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/adodbapi/is64bit.py +41 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/adodbapi/license.txt +506 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/adodbapi/process_connect_string.py +144 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/adodbapi/readme.txt +92 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/adodbapi/remote.py +634 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/adodbapi/schema_table.py +15 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/adodbapi/setup.py +70 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/alembic-1.13.1.dist-info/INSTALLER +1 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/alembic-1.13.1.dist-info/LICENSE +19 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/alembic-1.13.1.dist-info/METADATA +142 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/alembic-1.13.1.dist-info/RECORD +150 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/alembic-1.13.1.dist-info/WHEEL +5 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/alembic-1.13.1.dist-info/entry_points.txt +2 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/alembic-1.13.1.dist-info/top_level.txt +1 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/alembic/__init__.py +4 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/alembic/__main__.py +4 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/alembic/command.py +749 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/alembic/config.py +645 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/alembic/context.py +5 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/alembic/context.pyi +853 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/alembic/environment.py +1 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/alembic/migration.py +1 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/alembic/op.py +5 -0
- pgsql/pgAdmin 4/python/Lib/site-packages/alembic/op.pyi +1321 -0
pgsql/pgAdmin 4/python/Lib/site-packages/Authlib-1.3.0.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip
|
pgsql/pgAdmin 4/python/Lib/site-packages/Authlib-1.3.0.dist-info/LICENSE
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
BSD 3-Clause License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2017, Hsiaoming Yang
|
| 4 |
+
All rights reserved.
|
| 5 |
+
|
| 6 |
+
Redistribution and use in source and binary forms, with or without
|
| 7 |
+
modification, are permitted provided that the following conditions are met:
|
| 8 |
+
|
| 9 |
+
* Redistributions of source code must retain the above copyright notice, this
|
| 10 |
+
list of conditions and the following disclaimer.
|
| 11 |
+
|
| 12 |
+
* Redistributions in binary form must reproduce the above copyright notice,
|
| 13 |
+
this list of conditions and the following disclaimer in the documentation
|
| 14 |
+
and/or other materials provided with the distribution.
|
| 15 |
+
|
| 16 |
+
* Neither the name of the copyright holder nor the names of its
|
| 17 |
+
contributors may be used to endorse or promote products derived from
|
| 18 |
+
this software without specific prior written permission.
|
| 19 |
+
|
| 20 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
| 21 |
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
| 22 |
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
| 23 |
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
| 24 |
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
| 25 |
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
| 26 |
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
| 27 |
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
| 28 |
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 29 |
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
pgsql/pgAdmin 4/python/Lib/site-packages/Authlib-1.3.0.dist-info/METADATA
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.1
|
| 2 |
+
Name: Authlib
|
| 3 |
+
Version: 1.3.0
|
| 4 |
+
Summary: The ultimate Python library in building OAuth and OpenID Connect servers and clients.
|
| 5 |
+
Author-email: Hsiaoming Yang <me@lepture.com>
|
| 6 |
+
License: BSD-3-Clause
|
| 7 |
+
Project-URL: Documentation, https://docs.authlib.org/
|
| 8 |
+
Project-URL: Purchase, https://authlib.org/plans
|
| 9 |
+
Project-URL: Issues, https://github.com/lepture/authlib/issues
|
| 10 |
+
Project-URL: Source, https://github.com/lepture/authlib
|
| 11 |
+
Project-URL: Donate, https://github.com/sponsors/lepture
|
| 12 |
+
Project-URL: Blog, https://blog.authlib.org/
|
| 13 |
+
Classifier: Development Status :: 5 - Production/Stable
|
| 14 |
+
Classifier: Environment :: Console
|
| 15 |
+
Classifier: Environment :: Web Environment
|
| 16 |
+
Classifier: Intended Audience :: Developers
|
| 17 |
+
Classifier: License :: OSI Approved :: BSD License
|
| 18 |
+
Classifier: Operating System :: OS Independent
|
| 19 |
+
Classifier: Programming Language :: Python
|
| 20 |
+
Classifier: Programming Language :: Python :: 3
|
| 21 |
+
Classifier: Programming Language :: Python :: 3.8
|
| 22 |
+
Classifier: Programming Language :: Python :: 3.9
|
| 23 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 24 |
+
Classifier: Programming Language :: Python :: 3.11
|
| 25 |
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
| 26 |
+
Classifier: Topic :: Security
|
| 27 |
+
Classifier: Topic :: Security :: Cryptography
|
| 28 |
+
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
|
| 29 |
+
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Application
|
| 30 |
+
Requires-Python: >=3.8
|
| 31 |
+
Description-Content-Type: text/x-rst
|
| 32 |
+
License-File: LICENSE
|
| 33 |
+
Requires-Dist: cryptography
|
| 34 |
+
|
| 35 |
+
Authlib
|
| 36 |
+
=======
|
| 37 |
+
|
| 38 |
+
The ultimate Python library in building OAuth and OpenID Connect servers.
|
| 39 |
+
JWS, JWK, JWA, JWT are included.
|
| 40 |
+
|
| 41 |
+
Useful Links
|
| 42 |
+
------------
|
| 43 |
+
|
| 44 |
+
1. Homepage: https://authlib.org/
|
| 45 |
+
2. Documentation: https://docs.authlib.org/
|
| 46 |
+
3. Purchase Commercial License: https://authlib.org/plans
|
| 47 |
+
4. Blog: https://blog.authlib.org/
|
| 48 |
+
5. More Repositories: https://github.com/authlib
|
| 49 |
+
6. Twitter: https://twitter.com/authlib
|
| 50 |
+
7. Donate: https://www.patreon.com/lepture
|
| 51 |
+
|
| 52 |
+
Specifications
|
| 53 |
+
--------------
|
| 54 |
+
|
| 55 |
+
- RFC5849: The OAuth 1.0 Protocol
|
| 56 |
+
- RFC6749: The OAuth 2.0 Authorization Framework
|
| 57 |
+
- RFC6750: The OAuth 2.0 Authorization Framework: Bearer Token Usage
|
| 58 |
+
- RFC7009: OAuth 2.0 Token Revocation
|
| 59 |
+
- RFC7515: JSON Web Signature
|
| 60 |
+
- RFC7516: JSON Web Encryption
|
| 61 |
+
- RFC7517: JSON Web Key
|
| 62 |
+
- RFC7518: JSON Web Algorithms
|
| 63 |
+
- RFC7519: JSON Web Token
|
| 64 |
+
- RFC7521: Assertion Framework for OAuth 2.0 Client Authentication and Authorization Grants
|
| 65 |
+
- RFC7523: JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants
|
| 66 |
+
- RFC7591: OAuth 2.0 Dynamic Client Registration Protocol
|
| 67 |
+
- RFC7636: Proof Key for Code Exchange by OAuth Public Clients
|
| 68 |
+
- RFC7638: JSON Web Key (JWK) Thumbprint
|
| 69 |
+
- RFC7662: OAuth 2.0 Token Introspection
|
| 70 |
+
- RFC8037: CFRG Elliptic Curve Diffie-Hellman (ECDH) and Signatures in JSON Object Signing and Encryption (JOSE)
|
| 71 |
+
- RFC8414: OAuth 2.0 Authorization Server Metadata
|
| 72 |
+
- RFC8628: OAuth 2.0 Device Authorization Grant
|
| 73 |
+
- OpenID Connect 1.0
|
| 74 |
+
- OpenID Connect Discovery 1.0
|
| 75 |
+
- draft-madden-jose-ecdh-1pu-04: Public Key Authenticated Encryption for JOSE: ECDH-1PU
|
| 76 |
+
|
| 77 |
+
Implementations
|
| 78 |
+
---------------
|
| 79 |
+
|
| 80 |
+
- Requests OAuth 1 Session
|
| 81 |
+
- Requests OAuth 2 Session
|
| 82 |
+
- Requests Assertion Session
|
| 83 |
+
- HTTPX OAuth 1 Session
|
| 84 |
+
- HTTPX OAuth 2 Session
|
| 85 |
+
- HTTPX Assertion Session
|
| 86 |
+
- Flask OAuth 1/2 Client
|
| 87 |
+
- Django OAuth 1/2 Client
|
| 88 |
+
- Starlette OAuth 1/2 Client
|
| 89 |
+
- Flask OAuth 1.0 Server
|
| 90 |
+
- Flask OAuth 2.0 Server
|
| 91 |
+
- Flask OpenID Connect 1.0
|
| 92 |
+
- Django OAuth 1.0 Server
|
| 93 |
+
- Django OAuth 2.0 Server
|
| 94 |
+
- Django OpenID Connect 1.0
|
| 95 |
+
|
| 96 |
+
License
|
| 97 |
+
-------
|
| 98 |
+
|
| 99 |
+
Authlib is licensed under BSD. Please see LICENSE for licensing details.
|
| 100 |
+
|
| 101 |
+
If this license does not fit your company, consider to purchase a commercial
|
| 102 |
+
license. Find more information on `Authlib Plans`_.
|
| 103 |
+
|
| 104 |
+
.. _`Authlib Plans`: https://authlib.org/plans
|
pgsql/pgAdmin 4/python/Lib/site-packages/Authlib-1.3.0.dist-info/RECORD
ADDED
|
@@ -0,0 +1,387 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Authlib-1.3.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 2 |
+
Authlib-1.3.0.dist-info/LICENSE,sha256=jhtIUY3pxs0Ay0jH_luAI_2Q1VUsoS6-c2Kg3zDdvkU,1514
|
| 3 |
+
Authlib-1.3.0.dist-info/METADATA,sha256=_uPrSFp-N_CnFcdce_ly9u374GhUS8V56C_2tNPI5IU,3756
|
| 4 |
+
Authlib-1.3.0.dist-info/RECORD,,
|
| 5 |
+
Authlib-1.3.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 6 |
+
Authlib-1.3.0.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
|
| 7 |
+
Authlib-1.3.0.dist-info/top_level.txt,sha256=Rj3mJn0jhRuCs6x7ysI6hYE2PePbuxey6y6jswadAEY,8
|
| 8 |
+
authlib/__init__.py,sha256=CoObQJQX-YGSJy-HWbJPtK6XbpfKDBc21DJwjhLnIcM,476
|
| 9 |
+
authlib/__pycache__/__init__.cpython-311.pyc,,
|
| 10 |
+
authlib/__pycache__/consts.cpython-311.pyc,,
|
| 11 |
+
authlib/__pycache__/deprecate.cpython-311.pyc,,
|
| 12 |
+
authlib/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 13 |
+
authlib/common/__pycache__/__init__.cpython-311.pyc,,
|
| 14 |
+
authlib/common/__pycache__/encoding.cpython-311.pyc,,
|
| 15 |
+
authlib/common/__pycache__/errors.cpython-311.pyc,,
|
| 16 |
+
authlib/common/__pycache__/security.cpython-311.pyc,,
|
| 17 |
+
authlib/common/__pycache__/urls.cpython-311.pyc,,
|
| 18 |
+
authlib/common/encoding.py,sha256=sdiaZwuXZI-ruNPGAhJ0oIuZTcrzdawneS_PoJAnHYk,1546
|
| 19 |
+
authlib/common/errors.py,sha256=z8kGl0qRBnimrMYqVgi1aqLsqSng8YaMtcqCy6MHff8,1684
|
| 20 |
+
authlib/common/security.py,sha256=2xcxtJWVE26kosNJTWtnN3skeSzm3Jjtpm4wxoTCBYs,493
|
| 21 |
+
authlib/common/urls.py,sha256=gUpc_VB9emhmCE0EunlxDiQHHZhegGYdLVPT-qoEkco,4501
|
| 22 |
+
authlib/consts.py,sha256=WZWJbuAh8iBsbBm-KFWNYuT3bVDUtzMpNKydkisu3qw,300
|
| 23 |
+
authlib/deprecate.py,sha256=dIjr5VmDMK3bua0cOzJh0Q2RAlAtMhW6iM6ENIynIQ8,481
|
| 24 |
+
authlib/integrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 25 |
+
authlib/integrations/__pycache__/__init__.cpython-311.pyc,,
|
| 26 |
+
authlib/integrations/base_client/__init__.py,sha256=xCaZt-rH5n4g0tBVgrM4KKMzWUQ6NHUcLIHwlIuKqMM,653
|
| 27 |
+
authlib/integrations/base_client/__pycache__/__init__.cpython-311.pyc,,
|
| 28 |
+
authlib/integrations/base_client/__pycache__/async_app.cpython-311.pyc,,
|
| 29 |
+
authlib/integrations/base_client/__pycache__/async_openid.cpython-311.pyc,,
|
| 30 |
+
authlib/integrations/base_client/__pycache__/errors.cpython-311.pyc,,
|
| 31 |
+
authlib/integrations/base_client/__pycache__/framework_integration.cpython-311.pyc,,
|
| 32 |
+
authlib/integrations/base_client/__pycache__/registry.cpython-311.pyc,,
|
| 33 |
+
authlib/integrations/base_client/__pycache__/sync_app.cpython-311.pyc,,
|
| 34 |
+
authlib/integrations/base_client/__pycache__/sync_openid.cpython-311.pyc,,
|
| 35 |
+
authlib/integrations/base_client/async_app.py,sha256=3MbucTGkyEBz8W7SIvJSwYxdGR_8wquxNKee8BHt4i8,5847
|
| 36 |
+
authlib/integrations/base_client/async_openid.py,sha256=-OZl3g_8EYJNlLxCukcPAvOPd-o-OWP9b-updMs6Z-c,2803
|
| 37 |
+
authlib/integrations/base_client/errors.py,sha256=fwXW7ldF-TeCIHeANGWYqv5hhaFpXzLLsGRUBwgcy4c,632
|
| 38 |
+
authlib/integrations/base_client/framework_integration.py,sha256=12rBh8a-cj2r0mJkFKhREH49gv2D2v5aF1UZSUAD430,1871
|
| 39 |
+
authlib/integrations/base_client/registry.py,sha256=FAjZBN0n_e-3MbC2ZYCUSUxeHCrKSdoAE21taWxSAeA,4273
|
| 40 |
+
authlib/integrations/base_client/sync_app.py,sha256=eZajg-ruTMgQAIeaANMqOlYvzA8qqyzH1S7vvL3jx6w,12408
|
| 41 |
+
authlib/integrations/base_client/sync_openid.py,sha256=zZZ9vp0M_w8xpZU3tRahN715Q26tfwC-JCV5WtbMUcM,2721
|
| 42 |
+
authlib/integrations/django_client/__init__.py,sha256=ff_Kol2-pT-7E0zav2A6tkgqMT1YYLpmVuNaKh-Fz5g,458
|
| 43 |
+
authlib/integrations/django_client/__pycache__/__init__.cpython-311.pyc,,
|
| 44 |
+
authlib/integrations/django_client/__pycache__/apps.cpython-311.pyc,,
|
| 45 |
+
authlib/integrations/django_client/__pycache__/integration.cpython-311.pyc,,
|
| 46 |
+
authlib/integrations/django_client/apps.py,sha256=AR7-2aa1xMJj6UX_dl8PreAVw_H_rxABPV9paqioOuw,3334
|
| 47 |
+
authlib/integrations/django_client/integration.py,sha256=TfgtYs2X_IwismSdX8TI73EcpoYCfjS9OovOdEP8XLA,650
|
| 48 |
+
authlib/integrations/django_oauth1/__init__.py,sha256=yp66WLC43YdsICGgVDbu6AfIRyPR17M43umIUcxjH10,221
|
| 49 |
+
authlib/integrations/django_oauth1/__pycache__/__init__.cpython-311.pyc,,
|
| 50 |
+
authlib/integrations/django_oauth1/__pycache__/authorization_server.cpython-311.pyc,,
|
| 51 |
+
authlib/integrations/django_oauth1/__pycache__/nonce.cpython-311.pyc,,
|
| 52 |
+
authlib/integrations/django_oauth1/__pycache__/resource_protector.cpython-311.pyc,,
|
| 53 |
+
authlib/integrations/django_oauth1/authorization_server.py,sha256=UKkJuE4nwTPNrC8emL5ENqxwP1t3-Qu7kZn6c59zdng,4536
|
| 54 |
+
authlib/integrations/django_oauth1/nonce.py,sha256=m6j4FWsSeQ1S-LJEgF4BF0TPGRZQuseOumkrbuF6KhY,396
|
| 55 |
+
authlib/integrations/django_oauth1/resource_protector.py,sha256=TL1kRvuuF91kZBBe4FZzo7nY0iOKpGWIdjKvdlOcXAY,2343
|
| 56 |
+
authlib/integrations/django_oauth2/__init__.py,sha256=HGqxRud5D9EGZIthXmySYhB7d-90qzZlXZDrd4mPHnQ,278
|
| 57 |
+
authlib/integrations/django_oauth2/__pycache__/__init__.cpython-311.pyc,,
|
| 58 |
+
authlib/integrations/django_oauth2/__pycache__/authorization_server.cpython-311.pyc,,
|
| 59 |
+
authlib/integrations/django_oauth2/__pycache__/endpoints.cpython-311.pyc,,
|
| 60 |
+
authlib/integrations/django_oauth2/__pycache__/requests.cpython-311.pyc,,
|
| 61 |
+
authlib/integrations/django_oauth2/__pycache__/resource_protector.cpython-311.pyc,,
|
| 62 |
+
authlib/integrations/django_oauth2/__pycache__/signals.cpython-311.pyc,,
|
| 63 |
+
authlib/integrations/django_oauth2/authorization_server.py,sha256=rtlQlDyeNME3Hdv4Tnu5tYBZ2zJ9GUn-kHEvNCF5Jh8,4388
|
| 64 |
+
authlib/integrations/django_oauth2/endpoints.py,sha256=lKkDmQklHNTCXK_L-6-_PrHa6XvnFBT7a2BAciYkv7o,1853
|
| 65 |
+
authlib/integrations/django_oauth2/requests.py,sha256=_KpI8ecABAZ026y3OcjyNfYNK1MyiDhVH5cFIO5rrSs,1023
|
| 66 |
+
authlib/integrations/django_oauth2/resource_protector.py,sha256=O3Snq0LO4divy6sZwDjh4UoMoDVn3qhLvGILaqNUWnM,2595
|
| 67 |
+
authlib/integrations/django_oauth2/signals.py,sha256=8SlnOsi1IuBPmrCi7dOLXK70N_m9y6B3msjMCtBMnSk,236
|
| 68 |
+
authlib/integrations/flask_client/__init__.py,sha256=DCSIvVck7aBh-zDiGILsYJp_pJSl1qHzR3p-pDGfhNk,1677
|
| 69 |
+
authlib/integrations/flask_client/__pycache__/__init__.cpython-311.pyc,,
|
| 70 |
+
authlib/integrations/flask_client/__pycache__/apps.cpython-311.pyc,,
|
| 71 |
+
authlib/integrations/flask_client/__pycache__/integration.cpython-311.pyc,,
|
| 72 |
+
authlib/integrations/flask_client/apps.py,sha256=4LWY81JpXgg8C5TliVOsObegPqgzZdt9Jyr9rJx2x0w,3607
|
| 73 |
+
authlib/integrations/flask_client/integration.py,sha256=T_O0-YZbezOvvyJUJZKhW_lyHTbSkEZvdQkAGwHLyjY,805
|
| 74 |
+
authlib/integrations/flask_oauth1/__init__.py,sha256=PGDVdNJ9oGs5bYJr7oGdpQX0tE2nQJNcHJ8t-SxEAEY,260
|
| 75 |
+
authlib/integrations/flask_oauth1/__pycache__/__init__.cpython-311.pyc,,
|
| 76 |
+
authlib/integrations/flask_oauth1/__pycache__/authorization_server.cpython-311.pyc,,
|
| 77 |
+
authlib/integrations/flask_oauth1/__pycache__/cache.cpython-311.pyc,,
|
| 78 |
+
authlib/integrations/flask_oauth1/__pycache__/resource_protector.cpython-311.pyc,,
|
| 79 |
+
authlib/integrations/flask_oauth1/authorization_server.py,sha256=qa0C73Qu7lEOM24-dYQ6wOqmXoHiSdlwxcmtqTMYNug,6299
|
| 80 |
+
authlib/integrations/flask_oauth1/cache.py,sha256=x1bOuGhHKrCUO0X2XrR80f898ca8sM2edQfT6nuDFwY,2996
|
| 81 |
+
authlib/integrations/flask_oauth1/resource_protector.py,sha256=feMGEpwRI5DfgJjJhyumI3XdoaAEjhZHzId_-sFDkBE,3805
|
| 82 |
+
authlib/integrations/flask_oauth2/__init__.py,sha256=8xa6R7Otk9DSHzKFcyGeDv-H7OLUbFwtF73ybpe9jNY,243
|
| 83 |
+
authlib/integrations/flask_oauth2/__pycache__/__init__.cpython-311.pyc,,
|
| 84 |
+
authlib/integrations/flask_oauth2/__pycache__/authorization_server.cpython-311.pyc,,
|
| 85 |
+
authlib/integrations/flask_oauth2/__pycache__/errors.cpython-311.pyc,,
|
| 86 |
+
authlib/integrations/flask_oauth2/__pycache__/requests.cpython-311.pyc,,
|
| 87 |
+
authlib/integrations/flask_oauth2/__pycache__/resource_protector.cpython-311.pyc,,
|
| 88 |
+
authlib/integrations/flask_oauth2/__pycache__/signals.cpython-311.pyc,,
|
| 89 |
+
authlib/integrations/flask_oauth2/authorization_server.py,sha256=Lz4b_77aGIJ7Rmh3LxWQzWZeyWhtKpFpjBzy18JRibI,5859
|
| 90 |
+
authlib/integrations/flask_oauth2/errors.py,sha256=d4YT-I_atPUQjV8ohrHCossYpTvErOscXwBhCyLzidA,1090
|
| 91 |
+
authlib/integrations/flask_oauth2/requests.py,sha256=Z78A_rCTmmJW6FJ-PfWQTe5sdYHW3hYZg2s4SYgDkIk,765
|
| 92 |
+
authlib/integrations/flask_oauth2/resource_protector.py,sha256=Kpgw5UAy1dPXv3T2f5o2KbPXO6naRmsc25KL3VuMkC4,3843
|
| 93 |
+
authlib/integrations/flask_oauth2/signals.py,sha256=CKao8F778CkUzl7mKjF96smr7WKJ0nfxBT0onVFq10Y,341
|
| 94 |
+
authlib/integrations/httpx_client/__init__.py,sha256=zuO_FIAdLEJ9Ch25kTa-Nsyi2gqkPuAsXdHAeYc0nBI,804
|
| 95 |
+
authlib/integrations/httpx_client/__pycache__/__init__.cpython-311.pyc,,
|
| 96 |
+
authlib/integrations/httpx_client/__pycache__/assertion_client.cpython-311.pyc,,
|
| 97 |
+
authlib/integrations/httpx_client/__pycache__/oauth1_client.cpython-311.pyc,,
|
| 98 |
+
authlib/integrations/httpx_client/__pycache__/oauth2_client.cpython-311.pyc,,
|
| 99 |
+
authlib/integrations/httpx_client/__pycache__/utils.cpython-311.pyc,,
|
| 100 |
+
authlib/integrations/httpx_client/assertion_client.py,sha256=1T2ZEM3cboubUu2Zme-6KKTY1Y06BCIQMhHSQ_LC6ZY,3179
|
| 101 |
+
authlib/integrations/httpx_client/oauth1_client.py,sha256=rkb-wwh3Oqryj3QZop9bo3q0td2OjFptf6rDX5VUUBY,4084
|
| 102 |
+
authlib/integrations/httpx_client/oauth2_client.py,sha256=d7VLXPo_6Gboko6jVn9ooFRVFJWNKm9bLHKcsP_lzlY,8439
|
| 103 |
+
authlib/integrations/httpx_client/utils.py,sha256=XF8d4xz4d7tDoaaq3LQ3GZonED1_EtW8zH_FoTcUPL4,888
|
| 104 |
+
authlib/integrations/requests_client/__init__.py,sha256=Nco-Q1_wOswQ9qCgBgh0rVWPYO9ddEKnlnnJ9rGZE_U,652
|
| 105 |
+
authlib/integrations/requests_client/__pycache__/__init__.cpython-311.pyc,,
|
| 106 |
+
authlib/integrations/requests_client/__pycache__/assertion_session.cpython-311.pyc,,
|
| 107 |
+
authlib/integrations/requests_client/__pycache__/oauth1_session.cpython-311.pyc,,
|
| 108 |
+
authlib/integrations/requests_client/__pycache__/oauth2_session.cpython-311.pyc,,
|
| 109 |
+
authlib/integrations/requests_client/__pycache__/utils.cpython-311.pyc,,
|
| 110 |
+
authlib/integrations/requests_client/assertion_session.py,sha256=8TAEs9s_SuB1-LymwOgfkxUOgEWCWX0Lp7eagbw3xZo,1832
|
| 111 |
+
authlib/integrations/requests_client/oauth1_session.py,sha256=aXC3vFLy4ytV8G3yL-on6dJitNfdKmkttcItTHTejfU,2209
|
| 112 |
+
authlib/integrations/requests_client/oauth2_session.py,sha256=4USZnWGgw8v-67Os0y17UeNi0n2JjONvRoFvtbMYAv4,4498
|
| 113 |
+
authlib/integrations/requests_client/utils.py,sha256=4ohGF-9JUR9Ayw63glEednsZSbscrSD4Rx0BPkPrSeA,274
|
| 114 |
+
authlib/integrations/sqla_oauth2/__init__.py,sha256=d8g3ipiiPtyk1JnmTDzeAKCdm-ozjNoERDWLEkpBgL8,548
|
| 115 |
+
authlib/integrations/sqla_oauth2/__pycache__/__init__.cpython-311.pyc,,
|
| 116 |
+
authlib/integrations/sqla_oauth2/__pycache__/client_mixin.cpython-311.pyc,,
|
| 117 |
+
authlib/integrations/sqla_oauth2/__pycache__/functions.cpython-311.pyc,,
|
| 118 |
+
authlib/integrations/sqla_oauth2/__pycache__/tokens_mixins.cpython-311.pyc,,
|
| 119 |
+
authlib/integrations/sqla_oauth2/client_mixin.py,sha256=qxoJLpnH3ncdvQPYnk8HoqllOoiUZAl_md3RteELQpQ,4116
|
| 120 |
+
authlib/integrations/sqla_oauth2/functions.py,sha256=0smHFpiQ6srSLR-ynLCmbFIq7iPvbBjoQUDibtD_4e8,3195
|
| 121 |
+
authlib/integrations/sqla_oauth2/tokens_mixins.py,sha256=9cBNIUxKLsaP8DTkOKlkZQ1m5guxeOnpJ9t-K8Kuy0c,2008
|
| 122 |
+
authlib/integrations/starlette_client/__init__.py,sha256=3bOTtevT4LmMurKF6dz0HusPbiVrPjBLVRuf6P0wHXk,666
|
| 123 |
+
authlib/integrations/starlette_client/__pycache__/__init__.cpython-311.pyc,,
|
| 124 |
+
authlib/integrations/starlette_client/__pycache__/apps.cpython-311.pyc,,
|
| 125 |
+
authlib/integrations/starlette_client/__pycache__/integration.cpython-311.pyc,,
|
| 126 |
+
authlib/integrations/starlette_client/apps.py,sha256=BHO3DRhLv8x14DAF6CCJKaTVI6Lr9WKh4vIm4eTJPjY,3556
|
| 127 |
+
authlib/integrations/starlette_client/integration.py,sha256=b2ZUKcX_L9P3DA7tdeSP3mRCmiPfzwUwVzp9cepsBA0,1964
|
| 128 |
+
authlib/jose/__init__.py,sha256=qpIwbdODthy50cit_FeHECvwRGd7pIABiYEA4aiFV48,1399
|
| 129 |
+
authlib/jose/__pycache__/__init__.cpython-311.pyc,,
|
| 130 |
+
authlib/jose/__pycache__/errors.cpython-311.pyc,,
|
| 131 |
+
authlib/jose/__pycache__/jwk.cpython-311.pyc,,
|
| 132 |
+
authlib/jose/__pycache__/util.cpython-311.pyc,,
|
| 133 |
+
authlib/jose/drafts/__init__.py,sha256=A--_H-kGg_s_Yf4m_P3Whb7HRQbKynDGtQYZlnOtkFc,518
|
| 134 |
+
authlib/jose/drafts/__pycache__/__init__.cpython-311.pyc,,
|
| 135 |
+
authlib/jose/drafts/__pycache__/_jwe_algorithms.cpython-311.pyc,,
|
| 136 |
+
authlib/jose/drafts/__pycache__/_jwe_enc_cryptodome.cpython-311.pyc,,
|
| 137 |
+
authlib/jose/drafts/__pycache__/_jwe_enc_cryptography.cpython-311.pyc,,
|
| 138 |
+
authlib/jose/drafts/_jwe_algorithms.py,sha256=zbDaWazb4HdYtQmstf0MofDDaMexVwqkmnfIPfc6luY,6917
|
| 139 |
+
authlib/jose/drafts/_jwe_enc_cryptodome.py,sha256=a4Vb0AUZWZWlCoTKqOfBaLZ-o1D1bgS0hKuBKJT7Kqo,1860
|
| 140 |
+
authlib/jose/drafts/_jwe_enc_cryptography.py,sha256=N2Bm9zp7MMSe_kbPwjyUAyD3MMOTj5BmpEUc1k_IqUw,1743
|
| 141 |
+
authlib/jose/errors.py,sha256=j-vg5TV7uiIS-xBgq-0pwxuerCDV31n5VKerCsddJR4,2977
|
| 142 |
+
authlib/jose/jwk.py,sha256=VZiMATxt4UPyU6spf7wKE0rwql4udvl3jZqW85Endwo,490
|
| 143 |
+
authlib/jose/rfc7515/__init__.py,sha256=0NhWGkry69LiJH6cAkwIUNmQUpuGh463TNwIpoQjtE4,360
|
| 144 |
+
authlib/jose/rfc7515/__pycache__/__init__.cpython-311.pyc,,
|
| 145 |
+
authlib/jose/rfc7515/__pycache__/jws.cpython-311.pyc,,
|
| 146 |
+
authlib/jose/rfc7515/__pycache__/models.cpython-311.pyc,,
|
| 147 |
+
authlib/jose/rfc7515/jws.py,sha256=0JEEGLkI6vsERYdViRGRrZBQD9hJUS9j8OPoOxD0-2c,11270
|
| 148 |
+
authlib/jose/rfc7515/models.py,sha256=B3HygZbTamiXc-rhnncMwCHL1LlblU69TCkyV2gezTo,2445
|
| 149 |
+
authlib/jose/rfc7516/__init__.py,sha256=SCAxvSIWD0NF2_Gcq1BrIkKx3Bqr_6WYhFpDFt3AQ6A,465
|
| 150 |
+
authlib/jose/rfc7516/__pycache__/__init__.cpython-311.pyc,,
|
| 151 |
+
authlib/jose/rfc7516/__pycache__/jwe.cpython-311.pyc,,
|
| 152 |
+
authlib/jose/rfc7516/__pycache__/models.cpython-311.pyc,,
|
| 153 |
+
authlib/jose/rfc7516/jwe.py,sha256=j26ji9QSRTuWbH3E3vz10YtDzIoteqZ5bY5VDA7Vp7U,29706
|
| 154 |
+
authlib/jose/rfc7516/models.py,sha256=RdtLB8_KzxZ35DcgkXFCy25rkXEFp9tg22m5oqeBv-A,4341
|
| 155 |
+
authlib/jose/rfc7517/__init__.py,sha256=LfowmYyTdC0t5wB6ptJs45Qkj-6nRmHmhRONAh-UFxY,424
|
| 156 |
+
authlib/jose/rfc7517/__pycache__/__init__.cpython-311.pyc,,
|
| 157 |
+
authlib/jose/rfc7517/__pycache__/_cryptography_key.cpython-311.pyc,,
|
| 158 |
+
authlib/jose/rfc7517/__pycache__/asymmetric_key.cpython-311.pyc,,
|
| 159 |
+
authlib/jose/rfc7517/__pycache__/base_key.cpython-311.pyc,,
|
| 160 |
+
authlib/jose/rfc7517/__pycache__/jwk.cpython-311.pyc,,
|
| 161 |
+
authlib/jose/rfc7517/__pycache__/key_set.cpython-311.pyc,,
|
| 162 |
+
authlib/jose/rfc7517/_cryptography_key.py,sha256=1-EQ1YD7ZR7Gp7FBntrWEN-76Su_vlunuzC77VPJ_sg,1257
|
| 163 |
+
authlib/jose/rfc7517/asymmetric_key.py,sha256=cP5ka_7Ez5gUvVsb54WqVsuuSLDxXGwMsqGqXAvTQlw,6229
|
| 164 |
+
authlib/jose/rfc7517/base_key.py,sha256=udNnaEw7_pHCfUPNc2SyfgVwZDm32DWH7p3J3Ssgk80,3261
|
| 165 |
+
authlib/jose/rfc7517/jwk.py,sha256=xUPIgYiAuyo7kDHFuVfaKeyY3MY9tJURfCIMZMo70o0,2042
|
| 166 |
+
authlib/jose/rfc7517/key_set.py,sha256=CAStzaaCCq5IcPwc_6I3lqYWJdhw1E_JuMqouAF0IW8,883
|
| 167 |
+
authlib/jose/rfc7518/__init__.py,sha256=69w8-62wS4DJNaCCHBUYiueiORtRl6Mlek36CNoTKOQ,879
|
| 168 |
+
authlib/jose/rfc7518/__pycache__/__init__.cpython-311.pyc,,
|
| 169 |
+
authlib/jose/rfc7518/__pycache__/ec_key.cpython-311.pyc,,
|
| 170 |
+
authlib/jose/rfc7518/__pycache__/jwe_algs.cpython-311.pyc,,
|
| 171 |
+
authlib/jose/rfc7518/__pycache__/jwe_encs.cpython-311.pyc,,
|
| 172 |
+
authlib/jose/rfc7518/__pycache__/jwe_zips.cpython-311.pyc,,
|
| 173 |
+
authlib/jose/rfc7518/__pycache__/jws_algs.cpython-311.pyc,,
|
| 174 |
+
authlib/jose/rfc7518/__pycache__/oct_key.cpython-311.pyc,,
|
| 175 |
+
authlib/jose/rfc7518/__pycache__/rsa_key.cpython-311.pyc,,
|
| 176 |
+
authlib/jose/rfc7518/__pycache__/util.cpython-311.pyc,,
|
| 177 |
+
authlib/jose/rfc7518/ec_key.py,sha256=_cot3xwrpuER_tj8eiHkx-L2EJHnYSy4iWieD0RvYKo,3511
|
| 178 |
+
authlib/jose/rfc7518/jwe_algs.py,sha256=yOgfh7WYo7MCHENw4EiucP9ep5nbCd1-zKmyUSbn6Ko,11311
|
| 179 |
+
authlib/jose/rfc7518/jwe_encs.py,sha256=0Mjl9wD3VYpc8ApgjWF_T3n7m2S-qtNH-cnyI-P8pAw,5047
|
| 180 |
+
authlib/jose/rfc7518/jwe_zips.py,sha256=9Qron3QW-1GHqoZHGa6EjLF1VAMMlB2gvHlr2anWqtY,561
|
| 181 |
+
authlib/jose/rfc7518/jws_algs.py,sha256=dfWu1QwmMtlJDB4J1JFnmKxYbCzXNmicn8djnKKNqMM,6493
|
| 182 |
+
authlib/jose/rfc7518/oct_key.py,sha256=gegg3PLgdDgC9J87h4oJ5hNf06j_j-nf4C6cTI-N6yU,2375
|
| 183 |
+
authlib/jose/rfc7518/rsa_key.py,sha256=hxCJAs-Ljl_RRv6D5ezAhQCpjwYhp2OU3zXtCqfO_6k,4192
|
| 184 |
+
authlib/jose/rfc7518/util.py,sha256=LpOgX10QHuqss6x015QPgApTlnYJ_cQyd0hzeYALnaE,265
|
| 185 |
+
authlib/jose/rfc7519/__init__.py,sha256=vJKdsUGkdKlGBKctdh5CLM2jc20903rIfAlsHjbr-hA,309
|
| 186 |
+
authlib/jose/rfc7519/__pycache__/__init__.cpython-311.pyc,,
|
| 187 |
+
authlib/jose/rfc7519/__pycache__/claims.cpython-311.pyc,,
|
| 188 |
+
authlib/jose/rfc7519/__pycache__/jwt.cpython-311.pyc,,
|
| 189 |
+
authlib/jose/rfc7519/claims.py,sha256=CCm4EJiv_BKxaLFhc-34sH5cIQ6Y960I1yRaB3d9_vM,8709
|
| 190 |
+
authlib/jose/rfc7519/jwt.py,sha256=myFXsrFfQLV6xxsOAVv--tQF4FuwhLtvCajZtRcIKSs,5950
|
| 191 |
+
authlib/jose/rfc8037/__init__.py,sha256=MV25hs0RY6HU0pE5UKB2hmRI0Avv-V8BaPtNxIshh0A,119
|
| 192 |
+
authlib/jose/rfc8037/__pycache__/__init__.cpython-311.pyc,,
|
| 193 |
+
authlib/jose/rfc8037/__pycache__/jws_eddsa.cpython-311.pyc,,
|
| 194 |
+
authlib/jose/rfc8037/__pycache__/okp_key.cpython-311.pyc,,
|
| 195 |
+
authlib/jose/rfc8037/jws_eddsa.py,sha256=dpg6ZKOdpqGcp582mP5yqsRLlnC81y_Mnl3xL0_tgLQ,716
|
| 196 |
+
authlib/jose/rfc8037/okp_key.py,sha256=SlpI-u0J0l1K0J5rh1L9g7yiUqEn6YTpmoJc7tpRmhw,3560
|
| 197 |
+
authlib/jose/util.py,sha256=eZGduiUbhgqYYxzjT-b1OaKZFTTICZE16Sq1UpyBK48,1065
|
| 198 |
+
authlib/oauth1/__init__.py,sha256=8c5_O3G8lWOUqd3NgWR8CGpCnKEubMA4jeVNHocRQvQ,735
|
| 199 |
+
authlib/oauth1/__pycache__/__init__.cpython-311.pyc,,
|
| 200 |
+
authlib/oauth1/__pycache__/client.cpython-311.pyc,,
|
| 201 |
+
authlib/oauth1/__pycache__/errors.cpython-311.pyc,,
|
| 202 |
+
authlib/oauth1/client.py,sha256=Vyo3cfAzU1f1WavJ-WosZy3B_eV0RShW_19sx1kc5I8,6524
|
| 203 |
+
authlib/oauth1/errors.py,sha256=pg0NaUgENjfTN_ba50_yQB9aSNe5Mte5MDlikFuypBY,46
|
| 204 |
+
authlib/oauth1/rfc5849/__init__.py,sha256=S4rdtQiDd83QsR1hBqdsvuI-VgmgoG7rFuJH2fLP_K4,1036
|
| 205 |
+
authlib/oauth1/rfc5849/__pycache__/__init__.cpython-311.pyc,,
|
| 206 |
+
authlib/oauth1/rfc5849/__pycache__/authorization_server.cpython-311.pyc,,
|
| 207 |
+
authlib/oauth1/rfc5849/__pycache__/base_server.cpython-311.pyc,,
|
| 208 |
+
authlib/oauth1/rfc5849/__pycache__/client_auth.cpython-311.pyc,,
|
| 209 |
+
authlib/oauth1/rfc5849/__pycache__/errors.cpython-311.pyc,,
|
| 210 |
+
authlib/oauth1/rfc5849/__pycache__/models.cpython-311.pyc,,
|
| 211 |
+
authlib/oauth1/rfc5849/__pycache__/parameters.cpython-311.pyc,,
|
| 212 |
+
authlib/oauth1/rfc5849/__pycache__/resource_protector.cpython-311.pyc,,
|
| 213 |
+
authlib/oauth1/rfc5849/__pycache__/rsa.cpython-311.pyc,,
|
| 214 |
+
authlib/oauth1/rfc5849/__pycache__/signature.cpython-311.pyc,,
|
| 215 |
+
authlib/oauth1/rfc5849/__pycache__/util.cpython-311.pyc,,
|
| 216 |
+
authlib/oauth1/rfc5849/__pycache__/wrapper.cpython-311.pyc,,
|
| 217 |
+
authlib/oauth1/rfc5849/authorization_server.py,sha256=nHnxaNgOfTZ0FwnFXe0--A81-rgFTBoT72OSDmjzZl8,13869
|
| 218 |
+
authlib/oauth1/rfc5849/base_server.py,sha256=-9Il95qaOhoFEQYJPkSMqQailAfQRYBtbdt1b0dZagc,3849
|
| 219 |
+
authlib/oauth1/rfc5849/client_auth.py,sha256=SnCp8R50CAJxyHMtkuYN5ZvbHJcLfnldctVaZtz9hnY,6920
|
| 220 |
+
authlib/oauth1/rfc5849/errors.py,sha256=z7LM1IMKzzTb3vnjRziRJk1tH0dQZm1axHnw8DXKXtA,2303
|
| 221 |
+
authlib/oauth1/rfc5849/models.py,sha256=qdNruenkQVjrOjRkPku4EtU7ak3giIpxwirrRJd8Hi0,3418
|
| 222 |
+
authlib/oauth1/rfc5849/parameters.py,sha256=bHgF_EwyJqWi1rvqYsbDKWf9I7z5RJh1OUpNvARHYEg,3455
|
| 223 |
+
authlib/oauth1/rfc5849/resource_protector.py,sha256=v4EsTBnqYAQMarwukpYmgiyT3J9khnp8Apj6n_RRabI,1258
|
| 224 |
+
authlib/oauth1/rfc5849/rsa.py,sha256=z2cx8e-p2pdvzx_WQm9mcMzkGfsBJniWoy6SLn6XZa4,896
|
| 225 |
+
authlib/oauth1/rfc5849/signature.py,sha256=z1xPJmbA19zXJsfOdHSUOdIjAeMYUauSJm3Q1COvnpY,14123
|
| 226 |
+
authlib/oauth1/rfc5849/util.py,sha256=89kP-xwQHop8SaBjCEkppxzYO7GQFbmi3ekVyI-zFvE,136
|
| 227 |
+
authlib/oauth1/rfc5849/wrapper.py,sha256=FCyqlpSnCmNT5U0H_cM2yqkdTALoRLFnOu409xUBOQ0,3945
|
| 228 |
+
authlib/oauth2/__init__.py,sha256=SlhZAaE8Tudl1W5KE57rfitY-9lLSvHJa02blVg9kJo,423
|
| 229 |
+
authlib/oauth2/__pycache__/__init__.cpython-311.pyc,,
|
| 230 |
+
authlib/oauth2/__pycache__/auth.cpython-311.pyc,,
|
| 231 |
+
authlib/oauth2/__pycache__/base.cpython-311.pyc,,
|
| 232 |
+
authlib/oauth2/__pycache__/client.cpython-311.pyc,,
|
| 233 |
+
authlib/oauth2/auth.py,sha256=n-QNzkXpy6uh6vDwpqDMhvMiBjE0n2Fv7PX8pVO6R6Q,3484
|
| 234 |
+
authlib/oauth2/base.py,sha256=cadG08-t_9mhgwzdo73bLeAa1Qvbw3qj4j-g1tbl6uo,958
|
| 235 |
+
authlib/oauth2/client.py,sha256=2betIXTZq9WZGgrW8x5j87Z5lPZDuNUtKh3wEuO3z0w,17626
|
| 236 |
+
authlib/oauth2/rfc6749/__init__.py,sha256=2WVrM30q6NM-DbUjEX2wUwqJwrR0nBr-9HFvjP80b5A,2323
|
| 237 |
+
authlib/oauth2/rfc6749/__pycache__/__init__.cpython-311.pyc,,
|
| 238 |
+
authlib/oauth2/rfc6749/__pycache__/authenticate_client.cpython-311.pyc,,
|
| 239 |
+
authlib/oauth2/rfc6749/__pycache__/authorization_server.cpython-311.pyc,,
|
| 240 |
+
authlib/oauth2/rfc6749/__pycache__/errors.cpython-311.pyc,,
|
| 241 |
+
authlib/oauth2/rfc6749/__pycache__/models.cpython-311.pyc,,
|
| 242 |
+
authlib/oauth2/rfc6749/__pycache__/parameters.cpython-311.pyc,,
|
| 243 |
+
authlib/oauth2/rfc6749/__pycache__/requests.cpython-311.pyc,,
|
| 244 |
+
authlib/oauth2/rfc6749/__pycache__/resource_protector.cpython-311.pyc,,
|
| 245 |
+
authlib/oauth2/rfc6749/__pycache__/token_endpoint.cpython-311.pyc,,
|
| 246 |
+
authlib/oauth2/rfc6749/__pycache__/util.cpython-311.pyc,,
|
| 247 |
+
authlib/oauth2/rfc6749/__pycache__/wrappers.cpython-311.pyc,,
|
| 248 |
+
authlib/oauth2/rfc6749/authenticate_client.py,sha256=8ZmUuxuodBQeRe2Z4vMXi_OdPjTJbbnSnY7V8ODNNZ4,3748
|
| 249 |
+
authlib/oauth2/rfc6749/authorization_server.py,sha256=u4D4_hN9G8Zw3q_qKIUhOoeoQVrE5E3YGpaHyWZhEAk,11898
|
| 250 |
+
authlib/oauth2/rfc6749/errors.py,sha256=J93QcmMsS_eBgsBa_P4wepkAw87C7ZDW8-JGvc3X6c8,7371
|
| 251 |
+
authlib/oauth2/rfc6749/grants/__init__.py,sha256=jJZOtFgyBztuIGQxcuK1qtvnR3hWRDU-G59RuyWmqKI,1314
|
| 252 |
+
authlib/oauth2/rfc6749/grants/__pycache__/__init__.cpython-311.pyc,,
|
| 253 |
+
authlib/oauth2/rfc6749/grants/__pycache__/authorization_code.cpython-311.pyc,,
|
| 254 |
+
authlib/oauth2/rfc6749/grants/__pycache__/base.cpython-311.pyc,,
|
| 255 |
+
authlib/oauth2/rfc6749/grants/__pycache__/client_credentials.cpython-311.pyc,,
|
| 256 |
+
authlib/oauth2/rfc6749/grants/__pycache__/implicit.cpython-311.pyc,,
|
| 257 |
+
authlib/oauth2/rfc6749/grants/__pycache__/refresh_token.cpython-311.pyc,,
|
| 258 |
+
authlib/oauth2/rfc6749/grants/__pycache__/resource_owner_password_credentials.cpython-311.pyc,,
|
| 259 |
+
authlib/oauth2/rfc6749/grants/authorization_code.py,sha256=ktdVV-2_Mp5tl7TTSj2Jxx4xpV53Mmouzb0APZmmaS8,15367
|
| 260 |
+
authlib/oauth2/rfc6749/grants/base.py,sha256=IQpjcs1CtiUOkJIkGb1T-oWIlKC8NfHb4toGwNxGXsg,5132
|
| 261 |
+
authlib/oauth2/rfc6749/grants/client_credentials.py,sha256=OeG_V5aR-oHxkpj5ejOo9pqfa7wu1rKRCzUZ6F9ukJk,3892
|
| 262 |
+
authlib/oauth2/rfc6749/grants/implicit.py,sha256=qNBYKp8GG3sNLZSfC1VL6xRiloTXDl3c1qPXsGf3XF8,9297
|
| 263 |
+
authlib/oauth2/rfc6749/grants/refresh_token.py,sha256=fBAcFH35PhdW15rkQwpK_tH88JdOCRH7XFX8vcfLRZY,6432
|
| 264 |
+
authlib/oauth2/rfc6749/grants/resource_owner_password_credentials.py,sha256=bmOAvYmjEhOlV77xsKQy7JndZNspfaeYkQXUGVao0Ak,5755
|
| 265 |
+
authlib/oauth2/rfc6749/models.py,sha256=lpqMhIwZbnEJazleH4cM3G3jQh14Zs5Sx_csuPy1Z64,7502
|
| 266 |
+
authlib/oauth2/rfc6749/parameters.py,sha256=qjvtW7-APiQ91MVm4cu0LzHNTNFC_3HLZ44uxhlZzog,8308
|
| 267 |
+
authlib/oauth2/rfc6749/requests.py,sha256=LWUOIkySStPI0J_nDm2gHMa4QdUa7Vmeqwre1XIYzgs,2148
|
| 268 |
+
authlib/oauth2/rfc6749/resource_protector.py,sha256=G62crN3HobWrU9DnSNm3iEKXls2cutvpkSEdXfqP_Pg,5309
|
| 269 |
+
authlib/oauth2/rfc6749/token_endpoint.py,sha256=IUx79XxDS12s3QHQukzCwqXS3s1K9l3OrkvlbApnLS0,1103
|
| 270 |
+
authlib/oauth2/rfc6749/util.py,sha256=xzebTUJciyJ9qy1jrYqiXfNBq6GfqCkb9Ok0XMoPWFc,1122
|
| 271 |
+
authlib/oauth2/rfc6749/wrappers.py,sha256=USYF6s4Enpgk883Ye3-vg7_0-2iX7fgeW0-ZRG2kDQE,688
|
| 272 |
+
authlib/oauth2/rfc6750/__init__.py,sha256=NmL2KnczR-sddyzk3lZAnFT1Aj5nJ21B77W05gMLoVU,635
|
| 273 |
+
authlib/oauth2/rfc6750/__pycache__/__init__.cpython-311.pyc,,
|
| 274 |
+
authlib/oauth2/rfc6750/__pycache__/errors.cpython-311.pyc,,
|
| 275 |
+
authlib/oauth2/rfc6750/__pycache__/parameters.cpython-311.pyc,,
|
| 276 |
+
authlib/oauth2/rfc6750/__pycache__/token.cpython-311.pyc,,
|
| 277 |
+
authlib/oauth2/rfc6750/__pycache__/validator.cpython-311.pyc,,
|
| 278 |
+
authlib/oauth2/rfc6750/errors.py,sha256=8jmPrtinFNL3qkxuTlKWscsWmVjdUhYPNWYOZXes90g,2827
|
| 279 |
+
authlib/oauth2/rfc6750/parameters.py,sha256=-9xyt87e5uHFcjvibmYZN-CIEvxy105Hzt4VaHJ6ICI,1204
|
| 280 |
+
authlib/oauth2/rfc6750/token.py,sha256=5ciVR8G3AR0xqCDPTHP858UViaE_qhA5rKkjk0vcA0E,3350
|
| 281 |
+
authlib/oauth2/rfc6750/validator.py,sha256=Nb1Tg_uz5ZBWRZqzbS0Ag3_zq0GlznA0YkTGSP7TBc8,1377
|
| 282 |
+
authlib/oauth2/rfc7009/__init__.py,sha256=kXO-Miq9N7fFStVJp6uqRgbleitHc_DJII5QyDCvQ10,353
|
| 283 |
+
authlib/oauth2/rfc7009/__pycache__/__init__.cpython-311.pyc,,
|
| 284 |
+
authlib/oauth2/rfc7009/__pycache__/parameters.cpython-311.pyc,,
|
| 285 |
+
authlib/oauth2/rfc7009/__pycache__/revocation.cpython-311.pyc,,
|
| 286 |
+
authlib/oauth2/rfc7009/parameters.py,sha256=klTaHudte5Oncfw6M5Mr6LL9Y-cVnN29Th1ix-uVYAU,854
|
| 287 |
+
authlib/oauth2/rfc7009/revocation.py,sha256=VTA6JLVKlyedN6SUlHO-_v0J0MGU8r7jVxPLgnFpy40,4061
|
| 288 |
+
authlib/oauth2/rfc7521/__init__.py,sha256=sI-EfGOAZTLM-LxfBfYEXU_74cd3ib63g8fkGu39PJA,67
|
| 289 |
+
authlib/oauth2/rfc7521/__pycache__/__init__.cpython-311.pyc,,
|
| 290 |
+
authlib/oauth2/rfc7521/__pycache__/client.cpython-311.pyc,,
|
| 291 |
+
authlib/oauth2/rfc7521/client.py,sha256=MAqHEfl6f11AmZYxwT2GNqV1xA64hUO4-ksxujSR8dA,2683
|
| 292 |
+
authlib/oauth2/rfc7523/__init__.py,sha256=0vllgNHhuHqWawuXy7vKtBT7wjHrn3YRA6ftmAkKOkA,852
|
| 293 |
+
authlib/oauth2/rfc7523/__pycache__/__init__.cpython-311.pyc,,
|
| 294 |
+
authlib/oauth2/rfc7523/__pycache__/assertion.cpython-311.pyc,,
|
| 295 |
+
authlib/oauth2/rfc7523/__pycache__/auth.cpython-311.pyc,,
|
| 296 |
+
authlib/oauth2/rfc7523/__pycache__/client.cpython-311.pyc,,
|
| 297 |
+
authlib/oauth2/rfc7523/__pycache__/jwt_bearer.cpython-311.pyc,,
|
| 298 |
+
authlib/oauth2/rfc7523/__pycache__/token.cpython-311.pyc,,
|
| 299 |
+
authlib/oauth2/rfc7523/__pycache__/validator.cpython-311.pyc,,
|
| 300 |
+
authlib/oauth2/rfc7523/assertion.py,sha256=ZFklvOm9ulLdUCoWn245igaK4LjXsFIJn5GcWJRl7iU,2024
|
| 301 |
+
authlib/oauth2/rfc7523/auth.py,sha256=owAbFXkftxI79uPjchtfsFmvhUAquyA02McmaovVrNw,3346
|
| 302 |
+
authlib/oauth2/rfc7523/client.py,sha256=dfleCVFY3VXJk6OKXVZBXKSVUY4817jqtD6qWA6nO9I,4388
|
| 303 |
+
authlib/oauth2/rfc7523/jwt_bearer.py,sha256=e-G12oauDZiz8QTWrHXIXGuLcOpXgqZTrw5y3jjlGoQ,6532
|
| 304 |
+
authlib/oauth2/rfc7523/token.py,sha256=Ovy75iNBC6BhMx44sZ6OjsWXxxIoZUrsYiCNqeGR1Fs,3321
|
| 305 |
+
authlib/oauth2/rfc7523/validator.py,sha256=VXx11aa1nF3cp-fdsbQSkx0oXchiArhCtIGdnK-A9Ks,1602
|
| 306 |
+
authlib/oauth2/rfc7591/__init__.py,sha256=Wb4PkmuGy8makvgceRVV1472cGL1udCS2bD9SGbqJyg,667
|
| 307 |
+
authlib/oauth2/rfc7591/__pycache__/__init__.cpython-311.pyc,,
|
| 308 |
+
authlib/oauth2/rfc7591/__pycache__/claims.cpython-311.pyc,,
|
| 309 |
+
authlib/oauth2/rfc7591/__pycache__/endpoint.cpython-311.pyc,,
|
| 310 |
+
authlib/oauth2/rfc7591/__pycache__/errors.cpython-311.pyc,,
|
| 311 |
+
authlib/oauth2/rfc7591/claims.py,sha256=4eMNWjY0Osh4IvdxAZE-bHXf0gqfk0VoERxtkSL07AQ,9809
|
| 312 |
+
authlib/oauth2/rfc7591/endpoint.py,sha256=3EYBDrBhp8G7iK12hBZBns_95yDmLeXzEiP5I1JRW6g,8104
|
| 313 |
+
authlib/oauth2/rfc7591/errors.py,sha256=nx_1-wyT1kznHXh1R91uwa1gbRJ5YKUxWY1SiFVRTWg,1098
|
| 314 |
+
authlib/oauth2/rfc7592/__init__.py,sha256=4du9AjzDNRXbmtkTWBPbpXz5ivugseKIuXtp3oAsk4w,315
|
| 315 |
+
authlib/oauth2/rfc7592/__pycache__/__init__.cpython-311.pyc,,
|
| 316 |
+
authlib/oauth2/rfc7592/__pycache__/endpoint.cpython-311.pyc,,
|
| 317 |
+
authlib/oauth2/rfc7592/endpoint.py,sha256=Ec_QncWPPtK-1hM6KVlBM_94ufb_ci6ZfC8ydQxC8yE,9759
|
| 318 |
+
authlib/oauth2/rfc7636/__init__.py,sha256=U-568f2yopL7jOGbL-6js5AMm9mSu74PgK21AkmfAN8,340
|
| 319 |
+
authlib/oauth2/rfc7636/__pycache__/__init__.cpython-311.pyc,,
|
| 320 |
+
authlib/oauth2/rfc7636/__pycache__/challenge.cpython-311.pyc,,
|
| 321 |
+
authlib/oauth2/rfc7636/challenge.py,sha256=MugGeYxa9Vwz9_D5EtQD3FekN29nmmtQ2wj6zRaKyFk,5173
|
| 322 |
+
authlib/oauth2/rfc7662/__init__.py,sha256=buYHq9DwjRGLIENJkDJ0-9VNyo_8Sui--5C3WyFc6O4,423
|
| 323 |
+
authlib/oauth2/rfc7662/__pycache__/__init__.cpython-311.pyc,,
|
| 324 |
+
authlib/oauth2/rfc7662/__pycache__/introspection.cpython-311.pyc,,
|
| 325 |
+
authlib/oauth2/rfc7662/__pycache__/models.cpython-311.pyc,,
|
| 326 |
+
authlib/oauth2/rfc7662/__pycache__/token_validator.cpython-311.pyc,,
|
| 327 |
+
authlib/oauth2/rfc7662/introspection.py,sha256=BZ5ET90mL22R3wp5OobUnAXwzrbTFJkqcyZ8uuixPqQ,5244
|
| 328 |
+
authlib/oauth2/rfc7662/models.py,sha256=vlmy-_UJmzy4rFjOjLsKpybpodoMsxt4FRi-URDoCKQ,868
|
| 329 |
+
authlib/oauth2/rfc7662/token_validator.py,sha256=x7s4funp-7edBTWs64hsTkxZLxf5O8yPKkDdKPwMMWA,1339
|
| 330 |
+
authlib/oauth2/rfc8414/__init__.py,sha256=ilEoqCBQ-lqXM7RBVlqAzbHbW39d_5oTKbKzJU4bfIY,361
|
| 331 |
+
authlib/oauth2/rfc8414/__pycache__/__init__.cpython-311.pyc,,
|
| 332 |
+
authlib/oauth2/rfc8414/__pycache__/models.cpython-311.pyc,,
|
| 333 |
+
authlib/oauth2/rfc8414/__pycache__/well_known.cpython-311.pyc,,
|
| 334 |
+
authlib/oauth2/rfc8414/models.py,sha256=-ajtcMT5OleAEwnUNzvRGVdpDEDJ2nfhXn9WuLPNwpE,17450
|
| 335 |
+
authlib/oauth2/rfc8414/well_known.py,sha256=-2eObCyYbBJHBokeBfuVHLqL2gvaLOK-aOVcy4M-5i8,727
|
| 336 |
+
authlib/oauth2/rfc8628/__init__.py,sha256=TqyFJ_dAH5XjFdHFzxuiYrfpvX8rR0UiCyDoEPXPhhc,678
|
| 337 |
+
authlib/oauth2/rfc8628/__pycache__/__init__.cpython-311.pyc,,
|
| 338 |
+
authlib/oauth2/rfc8628/__pycache__/device_code.cpython-311.pyc,,
|
| 339 |
+
authlib/oauth2/rfc8628/__pycache__/endpoint.cpython-311.pyc,,
|
| 340 |
+
authlib/oauth2/rfc8628/__pycache__/errors.cpython-311.pyc,,
|
| 341 |
+
authlib/oauth2/rfc8628/__pycache__/models.cpython-311.pyc,,
|
| 342 |
+
authlib/oauth2/rfc8628/device_code.py,sha256=drtONNm2ZNzqNN5Ts93GEE68RaTVqhJFJPUnb16STT0,7715
|
| 343 |
+
authlib/oauth2/rfc8628/endpoint.py,sha256=bA4U9n7I6rt1FblM5eVTx3jhfbJ0-7ptCD9kUV_wLuo,7107
|
| 344 |
+
authlib/oauth2/rfc8628/errors.py,sha256=c761U-GWU58bmfyEPw1VveaOkmOgXElBVlWaE-tXMTg,919
|
| 345 |
+
authlib/oauth2/rfc8628/models.py,sha256=o5734crJs0HZ8d_Iyqoh5O3i_D4_Pf2nml-HU62Re80,827
|
| 346 |
+
authlib/oauth2/rfc8693/__init__.py,sha256=Omkb_UdGC1dsrqP8SUD1f562SnEyOs_pd5G03pouMrE,182
|
| 347 |
+
authlib/oauth2/rfc8693/__pycache__/__init__.cpython-311.pyc,,
|
| 348 |
+
authlib/oauth2/rfc9068/__init__.py,sha256=XWpuGChgg0Rvyy7ZZ3c26q5LiTcQQbZboJknSCpKg4s,332
|
| 349 |
+
authlib/oauth2/rfc9068/__pycache__/__init__.cpython-311.pyc,,
|
| 350 |
+
authlib/oauth2/rfc9068/__pycache__/claims.cpython-311.pyc,,
|
| 351 |
+
authlib/oauth2/rfc9068/__pycache__/introspection.cpython-311.pyc,,
|
| 352 |
+
authlib/oauth2/rfc9068/__pycache__/revocation.cpython-311.pyc,,
|
| 353 |
+
authlib/oauth2/rfc9068/__pycache__/token.cpython-311.pyc,,
|
| 354 |
+
authlib/oauth2/rfc9068/__pycache__/token_validator.cpython-311.pyc,,
|
| 355 |
+
authlib/oauth2/rfc9068/claims.py,sha256=omSrkPIBtOwPGmgIl8ERc8IAk9bzAewoQw9fkvDZauE,1866
|
| 356 |
+
authlib/oauth2/rfc9068/introspection.py,sha256=rJ7QfzYM0ynQFkzYJ-icEByeaBzX1AcgxgLyQGwwOt8,4251
|
| 357 |
+
authlib/oauth2/rfc9068/revocation.py,sha256=vqwfdE5sWEL2bJUrjoYVLllkFaAOt_BuSxU9UxQFnPs,2521
|
| 358 |
+
authlib/oauth2/rfc9068/token.py,sha256=LZgwzqRtjiaZv-EKwUSl07IM2v7XfvgTioTmfwgqFoE,8639
|
| 359 |
+
authlib/oauth2/rfc9068/token_validator.py,sha256=I8ZWuEGMByR0KV4KxUnr-iLHTITBvCf9lfzzpgh_Dbk,6890
|
| 360 |
+
authlib/oidc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 361 |
+
authlib/oidc/__pycache__/__init__.cpython-311.pyc,,
|
| 362 |
+
authlib/oidc/core/__init__.py,sha256=NX_zhew3om9I0qVozcXyHshqqCqbk2V1qhiHO8Q4Ztk,650
|
| 363 |
+
authlib/oidc/core/__pycache__/__init__.cpython-311.pyc,,
|
| 364 |
+
authlib/oidc/core/__pycache__/claims.cpython-311.pyc,,
|
| 365 |
+
authlib/oidc/core/__pycache__/errors.cpython-311.pyc,,
|
| 366 |
+
authlib/oidc/core/__pycache__/models.cpython-311.pyc,,
|
| 367 |
+
authlib/oidc/core/__pycache__/util.cpython-311.pyc,,
|
| 368 |
+
authlib/oidc/core/claims.py,sha256=AvHWg9GPMjQCLDS8uKtOxlXi_prz-fyWGJAF34vD5w0,10187
|
| 369 |
+
authlib/oidc/core/errors.py,sha256=2nZdVIlTweNwXapWa7QodgCR0_5neGlCbGB2U4xUT6o,2883
|
| 370 |
+
authlib/oidc/core/grants/__init__.py,sha256=E6KAaqJMyRYWD2635gdcfE-oN_RRaIAL_imHATP12Uo,226
|
| 371 |
+
authlib/oidc/core/grants/__pycache__/__init__.cpython-311.pyc,,
|
| 372 |
+
authlib/oidc/core/grants/__pycache__/code.cpython-311.pyc,,
|
| 373 |
+
authlib/oidc/core/grants/__pycache__/hybrid.cpython-311.pyc,,
|
| 374 |
+
authlib/oidc/core/grants/__pycache__/implicit.cpython-311.pyc,,
|
| 375 |
+
authlib/oidc/core/grants/__pycache__/util.cpython-311.pyc,,
|
| 376 |
+
authlib/oidc/core/grants/code.py,sha256=Jl7Asl_PzMPHHaileADIkSn8cODbYCLSC14F4zkUy4U,4848
|
| 377 |
+
authlib/oidc/core/grants/hybrid.py,sha256=t20y1cX83vX-fgHL0v8JOtrjcs1pbe4zhMRnYarHKFM,3362
|
| 378 |
+
authlib/oidc/core/grants/implicit.py,sha256=wzpMiiC0z31dvSrZVrZThBL5WsTWowvlu2MN5JI97dM,5288
|
| 379 |
+
authlib/oidc/core/grants/util.py,sha256=0Zmyd_ofSrzAyJYf7dxtuQ7wcx2shkha4aDIIIeo-F8,4122
|
| 380 |
+
authlib/oidc/core/models.py,sha256=eYGC-NcIuu1m50h5o1bJFwUjwGF9l-AytTic8B07zmU,413
|
| 381 |
+
authlib/oidc/core/util.py,sha256=LggTWoq-qHvF5JW6MsMxBa76rxVlxCARIlQXkxkZD_o,382
|
| 382 |
+
authlib/oidc/discovery/__init__.py,sha256=sI40mT-HXoRPqxAE5UfPg-r3xa_wrQZ8jIuN5n5nm70,321
|
| 383 |
+
authlib/oidc/discovery/__pycache__/__init__.cpython-311.pyc,,
|
| 384 |
+
authlib/oidc/discovery/__pycache__/models.cpython-311.pyc,,
|
| 385 |
+
authlib/oidc/discovery/__pycache__/well_known.cpython-311.pyc,,
|
| 386 |
+
authlib/oidc/discovery/models.py,sha256=dNpNiDyss3T-6FGkoWe_t0_D2xTHSppd4wMY_BsoQNg,12575
|
| 387 |
+
authlib/oidc/discovery/well_known.py,sha256=3VmfTsVReChVVxBuN1eoL7fIRHL0-tN0aXH2XVKeiDM,574
|
pgsql/pgAdmin 4/python/Lib/site-packages/Authlib-1.3.0.dist-info/REQUESTED
ADDED
|
File without changes
|
pgsql/pgAdmin 4/python/Lib/site-packages/Authlib-1.3.0.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: bdist_wheel (0.42.0)
|
| 3 |
+
Root-Is-Purelib: true
|
| 4 |
+
Tag: py2-none-any
|
| 5 |
+
Tag: py3-none-any
|
| 6 |
+
|
pgsql/pgAdmin 4/python/Lib/site-packages/Authlib-1.3.0.dist-info/top_level.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
authlib
|
pgsql/pgAdmin 4/python/Lib/site-packages/Babel-2.15.0.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip
|
pgsql/pgAdmin 4/python/Lib/site-packages/Babel-2.15.0.dist-info/LICENSE
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright (c) 2013-2024 by the Babel Team, see AUTHORS for more information.
|
| 2 |
+
|
| 3 |
+
Redistribution and use in source and binary forms, with or without
|
| 4 |
+
modification, are permitted provided that the following conditions
|
| 5 |
+
are met:
|
| 6 |
+
|
| 7 |
+
1. Redistributions of source code must retain the above copyright
|
| 8 |
+
notice, this list of conditions and the following disclaimer.
|
| 9 |
+
2. Redistributions in binary form must reproduce the above copyright
|
| 10 |
+
notice, this list of conditions and the following disclaimer in
|
| 11 |
+
the documentation and/or other materials provided with the
|
| 12 |
+
distribution.
|
| 13 |
+
3. Neither the name of the copyright holder nor the names of its
|
| 14 |
+
contributors may be used to endorse or promote products derived
|
| 15 |
+
from this software without specific prior written permission.
|
| 16 |
+
|
| 17 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
| 18 |
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
| 19 |
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
| 20 |
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
| 21 |
+
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
| 22 |
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
| 23 |
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
| 24 |
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
| 25 |
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 26 |
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 27 |
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
pgsql/pgAdmin 4/python/Lib/site-packages/Babel-2.15.0.dist-info/METADATA
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.1
|
| 2 |
+
Name: Babel
|
| 3 |
+
Version: 2.15.0
|
| 4 |
+
Summary: Internationalization utilities
|
| 5 |
+
Home-page: https://babel.pocoo.org/
|
| 6 |
+
Author: Armin Ronacher
|
| 7 |
+
Author-email: armin.ronacher@active-4.com
|
| 8 |
+
Maintainer: Aarni Koskela
|
| 9 |
+
Maintainer-email: akx@iki.fi
|
| 10 |
+
License: BSD-3-Clause
|
| 11 |
+
Project-URL: Source, https://github.com/python-babel/babel
|
| 12 |
+
Classifier: Development Status :: 5 - Production/Stable
|
| 13 |
+
Classifier: Environment :: Web Environment
|
| 14 |
+
Classifier: Intended Audience :: Developers
|
| 15 |
+
Classifier: License :: OSI Approved :: BSD License
|
| 16 |
+
Classifier: Operating System :: OS Independent
|
| 17 |
+
Classifier: Programming Language :: Python
|
| 18 |
+
Classifier: Programming Language :: Python :: 3
|
| 19 |
+
Classifier: Programming Language :: Python :: 3 :: Only
|
| 20 |
+
Classifier: Programming Language :: Python :: 3.8
|
| 21 |
+
Classifier: Programming Language :: Python :: 3.9
|
| 22 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 23 |
+
Classifier: Programming Language :: Python :: 3.11
|
| 24 |
+
Classifier: Programming Language :: Python :: 3.12
|
| 25 |
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
| 26 |
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
| 27 |
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
| 28 |
+
Requires-Python: >=3.8
|
| 29 |
+
License-File: LICENSE
|
| 30 |
+
Requires-Dist: pytz >=2015.7 ; python_version < "3.9"
|
| 31 |
+
Provides-Extra: dev
|
| 32 |
+
Requires-Dist: pytest >=6.0 ; extra == 'dev'
|
| 33 |
+
Requires-Dist: pytest-cov ; extra == 'dev'
|
| 34 |
+
Requires-Dist: freezegun ~=1.0 ; extra == 'dev'
|
| 35 |
+
|
| 36 |
+
A collection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
| 7 |
+
Babel-2.15.0.dist-info/entry_points.txt,sha256=Y2Cr1P3E8Yt7kqzvVz4wnTvD1H3-BVD4FOkVqHIGBfc,750
|
| 8 |
+
Babel-2.15.0.dist-info/top_level.txt,sha256=mQO3vNkqlcYs_xRaL5EpRIy1IRjMp4N9_vdwmiemPXo,6
|
| 9 |
+
babel/__init__.py,sha256=g0vUYt0UYFua8dYNd1U3XvzEUjC_X4v82jYnELhBXKM,863
|
| 10 |
+
babel/__pycache__/__init__.cpython-311.pyc,,
|
| 11 |
+
babel/__pycache__/core.cpython-311.pyc,,
|
| 12 |
+
babel/__pycache__/dates.cpython-311.pyc,,
|
| 13 |
+
babel/__pycache__/languages.cpython-311.pyc,,
|
| 14 |
+
babel/__pycache__/lists.cpython-311.pyc,,
|
| 15 |
+
babel/__pycache__/localedata.cpython-311.pyc,,
|
| 16 |
+
babel/__pycache__/numbers.cpython-311.pyc,,
|
| 17 |
+
babel/__pycache__/plural.cpython-311.pyc,,
|
| 18 |
+
babel/__pycache__/support.cpython-311.pyc,,
|
| 19 |
+
babel/__pycache__/units.cpython-311.pyc,,
|
| 20 |
+
babel/__pycache__/util.cpython-311.pyc,,
|
| 21 |
+
babel/core.py,sha256=MW-HvWy5FyB_yhn46oQsObSV951UjxJkBmO9XxTLeb4,44006
|
| 22 |
+
babel/dates.py,sha256=QdeuwcAnb_zPYVIaqESqGajY3oiBbxbrl5vF9qBg-Jo,73177
|
| 23 |
+
babel/global.dat,sha256=MFZboNGm9LQoI7fncV7Qfv4Xh7_oFLfgqr0qvaf0m2o,479282
|
| 24 |
+
babel/languages.py,sha256=2LDTV9WizAuZVam0vfw-Q-QKYCQpF5DxLbmVoat7TKI,2844
|
| 25 |
+
babel/lists.py,sha256=PT0_TQQ3bFiEcI3BE4S1yUe7KakDeWmOaQFPeaMa-6Q,3016
|
| 26 |
+
babel/locale-data/LICENSE.unicode,sha256=dDMI-SIlOTZlsHIrc0GLTUBh_SFj6OnDizNokErPGdY,2033
|
| 27 |
+
babel/locale-data/aa.dat,sha256=CI5kOVaXWX2CQoHT6AXhrOMwFPCiQyd7Wke2QBJ1UtE,2795
|
| 28 |
+
babel/locale-data/aa_DJ.dat,sha256=VKjSgKVsftG91nj0-AQMYFuF_p4YAGfRkgAvycB2EYU,1112
|
| 29 |
+
babel/locale-data/aa_ER.dat,sha256=6b6qROwoeOq0-batM1Z7Ji2gvGDogl3ODcftt1Jkm9g,637
|
| 30 |
+
babel/locale-data/aa_ET.dat,sha256=piwFu94H7e-jPwd4ZaWiDc-j2nAH_GiC5UZ2IxMx7bs,635
|
| 31 |
+
babel/locale-data/ab.dat,sha256=b6DSUO5Ei8m0pyjG4M-5lMt-87q4ErkTLCQUSX0WpAg,96517
|
| 32 |
+
babel/locale-data/ab_GE.dat,sha256=b5be2Uv1YtP-bkMasJMzoQPxJPNLFqifXnCiK8rCyLE,635
|
| 33 |
+
babel/locale-data/af.dat,sha256=axkYZ-66aUUO9xq2-eJ_dxVdpLWGwvMtR9k2a3rMeWI,143744
|
| 34 |
+
babel/locale-data/af_NA.dat,sha256=zif__TyNY44mSCYOCrrglsyr_H31JhBNPwSJftg8200,1450
|
| 35 |
+
babel/locale-data/af_ZA.dat,sha256=6lT-mLg7LRtyAEhWhiF2xVtiPyzEa28U6hsFw_BMrZE,635
|
| 36 |
+
babel/locale-data/agq.dat,sha256=JJbF6NFR9qwwQTrIyrLh04DFJniIqDuFsbmHDGu5ThM,16628
|
| 37 |
+
babel/locale-data/agq_CM.dat,sha256=hYtg7pRw7J6TsYHvhlEEv7DqpyXoK3KS9DAqtYtgBX0,636
|
| 38 |
+
babel/locale-data/ak.dat,sha256=q_h1BSJ_UKfJBQ-zhziM53OXphObvIn05bdebwScRbU,14993
|
| 39 |
+
babel/locale-data/ak_GH.dat,sha256=tM-OSpXWyBwZFfKPVStWBbFv3dwNj_7AqcBz4ONrOQs,616
|
| 40 |
+
babel/locale-data/am.dat,sha256=W0g85M9C-Tdn0okHmpF801fmbEgOuv5JXcUQ28YbMEI,162808
|
| 41 |
+
babel/locale-data/am_ET.dat,sha256=2VZDSh5bY9vLLuTqcKYG66p5OYlvPRPX58rpNTFWPok,635
|
| 42 |
+
babel/locale-data/an.dat,sha256=4BAzUOTMrV17sKuVdztARTcyz3V2mBVAEf4OHbEYgZo,28022
|
| 43 |
+
babel/locale-data/an_ES.dat,sha256=rQuq-zKj7-fCjY-5fGGoGJT1x60pAyCEAVEswXPnHrI,653
|
| 44 |
+
babel/locale-data/ann.dat,sha256=fUenvOdPjqayLEiVDRNncK8SOBi9gAGAdxMuOATlsI0,737
|
| 45 |
+
babel/locale-data/ann_NG.dat,sha256=0i2K6cv6eCurgFgwtiCr09hYwZCA1kHkQaKnDyCD86M,617
|
| 46 |
+
babel/locale-data/apc.dat,sha256=G96W-ebLqQlTuPN3-VqSfAY-GF0K99c6uXHza5f4e2g,1564
|
| 47 |
+
babel/locale-data/apc_SY.dat,sha256=tagFeQz8BA9Pc7RMqkce1ZalfKIBjqg0SR4NlpGQaaM,679
|
| 48 |
+
babel/locale-data/ar.dat,sha256=ABf5tj4WBpn8n8CMk5HRVMADxovI5qZANCTkQsSjAaU,288075
|
| 49 |
+
babel/locale-data/ar_001.dat,sha256=hRKDI3wzxO5T191MfSdCn_MZ6ckM2Rz_r__0JZqS00s,1707
|
| 50 |
+
babel/locale-data/ar_AE.dat,sha256=GYpMrVcft5ODMZorOKB_mOU8rVjmMHUB_OveXOiEqVI,1064
|
| 51 |
+
babel/locale-data/ar_BH.dat,sha256=FoQ2c3E3TDqKcioarWBvLi_MllJmSd_56r0U45_gHWw,720
|
| 52 |
+
babel/locale-data/ar_DJ.dat,sha256=qbNam_QAmhobsIUfJLCL9pe146SvcmNIE_L3cWpmkBs,698
|
| 53 |
+
babel/locale-data/ar_DZ.dat,sha256=_Y-JLC5hincnxze7sGmEpb7N4JnBh7LdFdaVPcSMDvM,1263
|
| 54 |
+
babel/locale-data/ar_EG.dat,sha256=1zcHJKoldryovzBak9GDH2EcPxniQfg-5dlQzPYO2qc,757
|
| 55 |
+
babel/locale-data/ar_EH.dat,sha256=a0xJdGJYzGFzfvwxZVDP7yURlTm93FQSTQ5qp3XDMYo,658
|
| 56 |
+
babel/locale-data/ar_ER.dat,sha256=l-WjJfxm7kP05-Hnr5PingHaKWJ46ScfW4KEBcwD5HM,679
|
| 57 |
+
babel/locale-data/ar_IL.dat,sha256=O3UYAjf4BB3NdcSQTn-RzNjyj4kzTBhX3q7E8-9Aihw,1264
|
| 58 |
+
babel/locale-data/ar_IQ.dat,sha256=7-DnoHqsoBDe-ZXe0rIcEotb-F_CFyChc73dwnXuUoE,1975
|
| 59 |
+
babel/locale-data/ar_JO.dat,sha256=hT1z-Me5SOjul3BHFubcqlyEk9H57fwD4EFENddiVt8,1398
|
| 60 |
+
babel/locale-data/ar_KM.dat,sha256=Zx5XtfTuRPiW6iViOjeal_Fq-18EA7GuERViMP1_mc4,1230
|
| 61 |
+
babel/locale-data/ar_KW.dat,sha256=1wSXHTcgFKwhNciVS8IvGKvkzzqOIMBFykEJEQXdhEE,720
|
| 62 |
+
babel/locale-data/ar_LB.dat,sha256=-SuXO6LdhXNi4f_PHNrlxl8iXX47perQ_oS19bwRGpI,1414
|
| 63 |
+
babel/locale-data/ar_LY.dat,sha256=5vCCedkZ19UrYoHmN-rgcUSOMSPXog16mdKX6oAsiAI,1732
|
| 64 |
+
babel/locale-data/ar_MA.dat,sha256=hTOwsXC8tsJxBVlksxmAMlIkn4kK50juJa6TuAPFkp0,1559
|
| 65 |
+
babel/locale-data/ar_MR.dat,sha256=Kq7uT5LxvYXnGWz-cVcI6yDNximu9hZIpoKydmVse78,1359
|
| 66 |
+
babel/locale-data/ar_OM.dat,sha256=HVOqTfoH3JVTHJL-yDBiIafNfckU7CIcO_sIzXBffKw,720
|
| 67 |
+
babel/locale-data/ar_PS.dat,sha256=F-HZRPcMe_tJ8r9V01h-7mQ0UKQxQmuWuXNSi94MVMM,1336
|
| 68 |
+
babel/locale-data/ar_QA.dat,sha256=UKfLpyX856fNgeifdr22wXpDncirWJi9NxqfSnS-7fw,720
|
| 69 |
+
babel/locale-data/ar_SA.dat,sha256=ZA3Bx5gqMbNYTFSyKQ5XBz287lJR8u8K27b_lgh9380,24821
|
| 70 |
+
babel/locale-data/ar_SD.dat,sha256=f7aUKlrKmmC7ijTjVwn5r9m3mfZfEob1a7GHVCj4Qxk,720
|
| 71 |
+
babel/locale-data/ar_SO.dat,sha256=4LD_gds2VsvxdFHpFo56CxTFenzNdvEkMofc4oTGBTU,677
|
| 72 |
+
babel/locale-data/ar_SS.dat,sha256=T6eeWPeFejmBC7InKqg-6qmWoer1vjl6srHe_5ybkDU,700
|
| 73 |
+
babel/locale-data/ar_SY.dat,sha256=u42uhje_zt806WlUMpp5sIdi1yjw3Yv7vYbl6aELsyc,1398
|
| 74 |
+
babel/locale-data/ar_TD.dat,sha256=OG7NYtRrJiDeRt7HP-B4ta5ri-6fdSnYomppfy2A4ec,658
|
| 75 |
+
babel/locale-data/ar_TN.dat,sha256=xO974NyO5T-pRs-5b55sfQFGIwU2Y4q3VQUeqtqWf80,1201
|
| 76 |
+
babel/locale-data/ar_YE.dat,sha256=vu8wYJgzcJ1douKfKLx3-hAg1sjndD5_PTHWG_bzRL0,720
|
| 77 |
+
babel/locale-data/arn.dat,sha256=JB-QfwCOVQbVrLRlq2LMxU6SHO-V4ZaU2_0W15-0Rfs,721
|
| 78 |
+
babel/locale-data/arn_CL.dat,sha256=cf_JrdIAxFwbltVwtloNC9527Du7zaoBDM-_KmctSvE,636
|
| 79 |
+
babel/locale-data/as.dat,sha256=DfR0PhYt7aiHGTk1SFwVNKnwd6sNr2XPhKwbpUfRn1s,209283
|
| 80 |
+
babel/locale-data/as_IN.dat,sha256=bE-OZ0Y3d2-QtD23ztjluSsFk1_RFNYMFzKgBC3waw4,658
|
| 81 |
+
babel/locale-data/asa.dat,sha256=zzPu7L8RV8SVEKqeRiGIoWLBCJkeS0acDh0pYq87qMI,15492
|
| 82 |
+
babel/locale-data/asa_TZ.dat,sha256=U0GU10aP58LxCeqyjl69RQCZi_6tTQxm2vni6XVkoqY,617
|
| 83 |
+
babel/locale-data/ast.dat,sha256=TAJefZUBMSderaezMnNFNA6LpWNMWUBiBt7ra7wK3sA,169545
|
| 84 |
+
babel/locale-data/ast_ES.dat,sha256=51kFxigV5COuiPiNisp-OBFYMith5rUgBmU48rGk7Hc,654
|
| 85 |
+
babel/locale-data/az.dat,sha256=nxI8Nx2TT4hHvqi4vSighFChJgGzoy7-dqRTH9UqVOE,173428
|
| 86 |
+
babel/locale-data/az_Arab.dat,sha256=IGBla73oKavlLHhtIW37idHxTkmQWZ-S8NE54b65d4k,7499
|
| 87 |
+
babel/locale-data/az_Arab_IQ.dat,sha256=VsM0-KQPCP4MUw-2wMsBv-F467cr2Bup3jfxx8Fc3ZE,678
|
| 88 |
+
babel/locale-data/az_Arab_IR.dat,sha256=ROb0gFTPwK5CcjpQMB7CJ662eld9sZj7IA6QMrvxgto,678
|
| 89 |
+
babel/locale-data/az_Arab_TR.dat,sha256=EV6cNf3keBNREHkfF98GGZGOZz4L5dxf8pFbujInaQY,635
|
| 90 |
+
babel/locale-data/az_Cyrl.dat,sha256=ru4QYee174toLQsGPJn-d6xe65FsLQ87vBV9AW0o4D8,35540
|
| 91 |
+
babel/locale-data/az_Cyrl_AZ.dat,sha256=GRZjR-gp6JYeLNxoiAKNdv9bkTmS1bpYnRJ0c9YIGws,635
|
| 92 |
+
babel/locale-data/az_Latn.dat,sha256=aK2ziytg5Ig6GYk9tVCq4BEyV6UYy9Ip7F1_i4Pq1jw,2258
|
| 93 |
+
babel/locale-data/az_Latn_AZ.dat,sha256=GRZjR-gp6JYeLNxoiAKNdv9bkTmS1bpYnRJ0c9YIGws,635
|
| 94 |
+
babel/locale-data/ba.dat,sha256=Ly1V4wBNM4KCDGtuy9oCug4fZzVNEFqXOI8XKhkWFOQ,732
|
| 95 |
+
babel/locale-data/ba_RU.dat,sha256=8YcwUOx3h4BcSfUIumKJ4wcFyiSgBM74SqenVIQUKi8,653
|
| 96 |
+
babel/locale-data/bal.dat,sha256=IwZuqYp3VD80-SQCyoxB1S9ByqRdYMurb5kPtdjGLVM,12882
|
| 97 |
+
babel/locale-data/bal_Arab.dat,sha256=25CVl5rF7FqKEeHzAmt0BccVI_ODqmMP86KqQ4i6PL8,934
|
| 98 |
+
babel/locale-data/bal_Arab_PK.dat,sha256=sy4tpUtN1St5yFoTp8C6-vi2bFGPjSaG_zDbY16Q988,636
|
| 99 |
+
babel/locale-data/bal_Latn.dat,sha256=MzIaN6rW7xZWQ4ITi9v4e9ScsYSZYxB3GDOrV8F1-IE,10414
|
| 100 |
+
babel/locale-data/bal_Latn_PK.dat,sha256=sy4tpUtN1St5yFoTp8C6-vi2bFGPjSaG_zDbY16Q988,636
|
| 101 |
+
babel/locale-data/bas.dat,sha256=hts2-gooZheGxndoyiVM9NwFrAitthfb4IPr7TtYb2U,16673
|
| 102 |
+
babel/locale-data/bas_CM.dat,sha256=WBq-_rOvkBnT5pBaCyq844LLSRReQzg2HM0u7GmhKKM,636
|
| 103 |
+
babel/locale-data/be.dat,sha256=BKZRDD-lWtKuzmTC9FYpvGycjwB21vhdt2pQDESEI9M,271928
|
| 104 |
+
babel/locale-data/be_BY.dat,sha256=yN4Rf2-HqinMscTfe4jKEYpsCEaddHce6K25ol595Ag,635
|
| 105 |
+
babel/locale-data/be_TARASK.dat,sha256=qQkS1_Y7Dx8YBTSD72tKdUARVTRLqR4OoxateBFM2kA,104815
|
| 106 |
+
babel/locale-data/bem.dat,sha256=zBh5HxY-hRgaQd95anmqMAPP0UVzSV7JdcuqtJ78t1c,5782
|
| 107 |
+
babel/locale-data/bem_ZM.dat,sha256=nQvsLK0FOSlgf6wspQdbj00IveO62c2Mvxjzn4eHGSs,617
|
| 108 |
+
babel/locale-data/bew.dat,sha256=FVG1m6TVoqDTNUigbg6DvwlgS5y0YL_gCnmDd6Ue2GU,122697
|
| 109 |
+
babel/locale-data/bew_ID.dat,sha256=JWKbnUQc4ZsJYTcBFypK3gSyFRK6Kp8UFEqdytnPMnM,636
|
| 110 |
+
babel/locale-data/bez.dat,sha256=_saESrmbxsbQnGLACykFIs-aLUC-N7IigpyPWGLBebI,16300
|
| 111 |
+
babel/locale-data/bez_TZ.dat,sha256=OwcKelhUxQWu-8Jm9nf2vCay6-8LQvg-ueZSN_mrGz0,617
|
| 112 |
+
babel/locale-data/bg.dat,sha256=tXZGQLqMCqDN2zXcBFgNRX4waoYVfkQOATSSB88DGO8,228448
|
| 113 |
+
babel/locale-data/bg_BG.dat,sha256=CERFyuC4Dw9BfAZapqaq69iKAp7rBXWNCkLWAL5tAhQ,653
|
| 114 |
+
babel/locale-data/bgc.dat,sha256=gW0lkQNX_h1SATbqzIqe0twmGqqfigkbqo7gvBCG1AI,2493
|
| 115 |
+
babel/locale-data/bgc_IN.dat,sha256=hO39nPiyUx1kfCdagpCQ8lzPLycjdfk59jFQgsd3Qec,659
|
| 116 |
+
babel/locale-data/bgn.dat,sha256=8RKzmGYGYkn5IF7NHRgPtaI9ozwCeEKoUE4aXQpItKY,28964
|
| 117 |
+
babel/locale-data/bgn_AE.dat,sha256=CXSv6o2WHpjlucCiCXv7vEAY6mF5Dc-ibNwQM8Jnywg,636
|
| 118 |
+
babel/locale-data/bgn_AF.dat,sha256=UXCb78n57adZBdKHEGnhbmeVYppzlSscVOWnQNxfJOQ,679
|
| 119 |
+
babel/locale-data/bgn_IR.dat,sha256=iXxyPD5Z-ouDWFpOE2atoi6-HHGoD6PNaT9c-TH6x7o,679
|
| 120 |
+
babel/locale-data/bgn_OM.dat,sha256=3O0CzFrjWxOQFdN6-lDhCxRngoXfadd_dwYoVyjK9jA,679
|
| 121 |
+
babel/locale-data/bgn_PK.dat,sha256=gdVUcc-isHd9lf0S-AmFoPIMwDZ8ay6NY4o1udWI6Yo,636
|
| 122 |
+
babel/locale-data/bho.dat,sha256=JQAEhmajFwUOKB7ACN1-ZPcoKcXJaq0-FhsFCVcvn_8,2875
|
| 123 |
+
babel/locale-data/bho_IN.dat,sha256=UcL_aZq35dOHME0Fux9zyt9B6BOTxyR5UvaGWKLs1jE,659
|
| 124 |
+
babel/locale-data/blo.dat,sha256=VRvXkDE3Utb7jAaI33Bjk5T1HcT54SLABBapK4Ykr9I,105317
|
| 125 |
+
babel/locale-data/blo_BJ.dat,sha256=LM79oUzVI4JtLYEUklfbQxoweFAslN9jS-Ex-dya0mE,617
|
| 126 |
+
babel/locale-data/blt.dat,sha256=6G2E9osBy9OrG1iUKLD9cwcRk3IV7fT11iI8zFkLaeo,723
|
| 127 |
+
babel/locale-data/blt_VN.dat,sha256=vpTQEJYssmuBUn_pYqx7ZtYONNNz02_oBYlDMdWqKAc,636
|
| 128 |
+
babel/locale-data/bm.dat,sha256=K0dLlxoDfJb4QLwa_D0SXfrbD53Xed_EJ21843fY9hY,15798
|
| 129 |
+
babel/locale-data/bm_ML.dat,sha256=PAGrUwc1S6q32DDHTu5LkePFXe_M_i_WxIY4oLuUnzw,616
|
| 130 |
+
babel/locale-data/bm_Nkoo.dat,sha256=UiQ-oKSXYmbnUj9nNXi-9Afx2taBc5EiN-JM1huGOno,2805
|
| 131 |
+
babel/locale-data/bm_Nkoo_ML.dat,sha256=PAGrUwc1S6q32DDHTu5LkePFXe_M_i_WxIY4oLuUnzw,616
|
| 132 |
+
babel/locale-data/bn.dat,sha256=Ki9jzVE7jzh5LFQSFTqfnOu7BLOfTaRph2TUjZf-30A,218710
|
| 133 |
+
babel/locale-data/bn_BD.dat,sha256=mVW90kQmhDcwzKmkmgNAt5iMq1pLWmNndNID9fspVjY,635
|
| 134 |
+
babel/locale-data/bn_IN.dat,sha256=JQ3SF-YGx65h27eX4seGJu64HisOIiBItzhLOm7IOUI,4161
|
| 135 |
+
babel/locale-data/bo.dat,sha256=2eVqnOFPv04Ix-1FVPHlDQ9UVTQC1JtC7-5lQ89aX7A,20102
|
| 136 |
+
babel/locale-data/bo_CN.dat,sha256=xOnyre81Z1IHnWV5mJH0x313h-ZWu84hIXcMuB50IT0,635
|
| 137 |
+
babel/locale-data/bo_IN.dat,sha256=GvYCgtrOD5zYYsfMtVmkCv8-y6His8Lg7iuytEGjnMI,1307
|
| 138 |
+
babel/locale-data/br.dat,sha256=GlEUsjdYRyTbp04rXyS_Hm0iUeKkygq8jFd4IYt64Gk,272996
|
| 139 |
+
babel/locale-data/br_FR.dat,sha256=3oVDdZd7Xf4Q-hwmYraF42SM_3NtvSoiZlmlh6gSNOs,653
|
| 140 |
+
babel/locale-data/brx.dat,sha256=lC2H5nIvOZsREB70HI8R8yD7-BN-YKrHIEvZOTt6mEI,161538
|
| 141 |
+
babel/locale-data/brx_IN.dat,sha256=NKuJh0cEhRQasy6JAGUi5HbqdnhhEFTQ_7osgtdG5Iw,659
|
| 142 |
+
babel/locale-data/bs.dat,sha256=uORnhQ7mPC4N3iduLkGZVixw2qJ4vfITgAcRfZ7C5xU,212151
|
| 143 |
+
babel/locale-data/bs_Cyrl.dat,sha256=T9LFCVMcEvjY0T-9WOyWBW7Z6QHTamg4u9Dl3rQFBXU,220463
|
| 144 |
+
babel/locale-data/bs_Cyrl_BA.dat,sha256=oA7rsQckE_IxCpXXB3F3KWQwM3WZTR7WAdYxJN98oeM,635
|
| 145 |
+
babel/locale-data/bs_Latn.dat,sha256=6L9SY85hONRHO4Jz389C2Ziy7llKcDoyVNiE96ozCJ8,1990
|
| 146 |
+
babel/locale-data/bs_Latn_BA.dat,sha256=oA7rsQckE_IxCpXXB3F3KWQwM3WZTR7WAdYxJN98oeM,635
|
| 147 |
+
babel/locale-data/bss.dat,sha256=n9LaBwBIJ7adjJ63G7Q9o00llhPJtkgmeEp08nAa4D4,978
|
| 148 |
+
babel/locale-data/bss_CM.dat,sha256=TD7ixCHREfOLDsDJn8FY5YqGYH9czdEzdULCIl_0GhM,636
|
| 149 |
+
babel/locale-data/byn.dat,sha256=qT32E4jh6H_qm7HYSsAbKmaKluaLrGNXNl3F3FivncE,13403
|
| 150 |
+
babel/locale-data/byn_ER.dat,sha256=oAaZEqMJuTbMITO-ZO6gg8qjwROukzh5VgjtLp6rqD4,617
|
| 151 |
+
babel/locale-data/ca.dat,sha256=mCpWECpejmOysuPe9tIIzLbV-YRNSmwEbEZkJ1hDJ28,183769
|
| 152 |
+
babel/locale-data/ca_AD.dat,sha256=tsLumbhbbeXw627WKi-sQdSTFwNpcSRvJIEYcrOMqOM,653
|
| 153 |
+
babel/locale-data/ca_ES.dat,sha256=T-zv3FfnCJA2WUQTeBADKV82ghY-r60wk8mXtD9wbnI,653
|
| 154 |
+
babel/locale-data/ca_ES_VALENCIA.dat,sha256=VDfhBCSYDowm-bMKYOFkd2o5ha3OApQ4ntHb5KPaWIg,3703
|
| 155 |
+
babel/locale-data/ca_FR.dat,sha256=5HUFYUl5QRaUMwJxGLIqUhDO4_wF_crrr346wJmEOZo,672
|
| 156 |
+
babel/locale-data/ca_IT.dat,sha256=Zh2rtOq8MIDC2CQXWnhp5HOvPfXNxhRGnnZViOgc1Mg,653
|
| 157 |
+
babel/locale-data/cad.dat,sha256=XxlMk1b9CWE3wERhhQQN0wxW7iq8Mrngb05RXenmaSI,2476
|
| 158 |
+
babel/locale-data/cad_US.dat,sha256=FWV1sofgr9no5P9yBxNDLeKWoQd80XEYEilmLwamkSc,654
|
| 159 |
+
babel/locale-data/cch.dat,sha256=J4S73psT7C_cXs1VNNYow47plBodQ4PKINC59kzvfAw,2430
|
| 160 |
+
babel/locale-data/cch_NG.dat,sha256=0adhw9xNMlVEqDVKvHe4HCPtbjcw5NSo4ny_pOjl0-4,617
|
| 161 |
+
babel/locale-data/ccp.dat,sha256=xpPgChHrweEiNd8wLyP-LNzInN06J7QDeBQhuw4xbYA,209278
|
| 162 |
+
babel/locale-data/ccp_BD.dat,sha256=f00776fnI484B-mzW0rY22KNkzV6wtmk7uxrSK_x9bU,636
|
| 163 |
+
babel/locale-data/ccp_IN.dat,sha256=jMJimrQrx-b96hBSLi8sOyHtYRwNZryt-he0rhwEZ2s,659
|
| 164 |
+
babel/locale-data/ce.dat,sha256=GHeURFZnVKvgNAu2dpqdk4BA26c500AH59jYmBpH7FM,136714
|
| 165 |
+
babel/locale-data/ce_RU.dat,sha256=NgNmp1uFnm2MT-s_yx_V8KuW1dSR6_SEWf4NcqrAL9o,653
|
| 166 |
+
babel/locale-data/ceb.dat,sha256=WB67d7X72VL9BH2tWuHzePcebeAxTcuE3xIsB-zgPDA,100783
|
| 167 |
+
babel/locale-data/ceb_PH.dat,sha256=Z2zXPyNI3Yu3QcGL6lT1nIsl04vDDLFvyd9GeucDtqA,636
|
| 168 |
+
babel/locale-data/cgg.dat,sha256=vgLxp4dDUjKyHy-36IvfaPEy6IiXbDiMKShuEKJuXHU,15621
|
| 169 |
+
babel/locale-data/cgg_UG.dat,sha256=HZBma4MFuX2Q7sk-SOYk5OUkbMXWWr_tEInOqPboNYs,640
|
| 170 |
+
babel/locale-data/cho.dat,sha256=hWEL5XrIWAnqjYSb78iPaj2xh34KDcPYAMc46S7ZLuU,795
|
| 171 |
+
babel/locale-data/cho_US.dat,sha256=T3CacgkE-uKPi0CV7fbcCLTNfdjEco_A50vYciuXGGI,654
|
| 172 |
+
babel/locale-data/chr.dat,sha256=8xdFuERmXiIY_Z2Dp1PB9_kjC_CjSICl59qzeM2b3Y8,186784
|
| 173 |
+
babel/locale-data/chr_US.dat,sha256=wZE2RrJ-5jjUQa1RCJgL7hkXdsU3t91orD-ULDYMXSM,654
|
| 174 |
+
babel/locale-data/cic.dat,sha256=KgrmFl1fudc1tdR_g39YkGR6bcIedQMFnUjh831VIhM,2732
|
| 175 |
+
babel/locale-data/cic_US.dat,sha256=DvW1XJS1hEp_W_5ol0pIECeUb3RqXsyieKVS8J6caJ4,654
|
| 176 |
+
babel/locale-data/ckb.dat,sha256=s6wh2TRjabPo4G64RMoQD_J7FK77RBwsK8R0TH1xytI,35553
|
| 177 |
+
babel/locale-data/ckb_IQ.dat,sha256=Osgu1RAUf2yQpZ-nNBKMxTFJnH32ItLg0kVVzjNfmeo,679
|
| 178 |
+
babel/locale-data/ckb_IR.dat,sha256=6wWzlZWn7oDmGIdnF7UtCfIcUgQ1zvMxtAcEw4bbM-g,1231
|
| 179 |
+
babel/locale-data/co.dat,sha256=NbKZ99wTpG7Y64LnyxTQJIo5SYQaUAOybc68DN6IbUY,12637
|
| 180 |
+
babel/locale-data/co_FR.dat,sha256=DAmwXn4n1mRSsT17-DcU0vdVSI_JfVR8oGOnj7hTFHk,653
|
| 181 |
+
babel/locale-data/cs.dat,sha256=_vJTTOrwdhCsgTJR_CO4UMDGD-GoKELRkZxQ58HrgjY,247042
|
| 182 |
+
babel/locale-data/cs_CZ.dat,sha256=keaiqSsGtB_axj8FvdYDOCDmlg2PbQMI6qnW-2mFUTY,653
|
| 183 |
+
babel/locale-data/csw.dat,sha256=cW8fBUdFrPTdhBp7dvBQGUY4MoQgaym_W9F_h7M8FSc,1989
|
| 184 |
+
babel/locale-data/csw_CA.dat,sha256=aWccZHGNU7G4JJdlGRnqyqm0ROubX0rwI9SnH_EhAxU,636
|
| 185 |
+
babel/locale-data/cu.dat,sha256=sHJi4Z4NA0rjrOf5SAhM9JBtYrts4uBB13yI1ghe7qs,16994
|
| 186 |
+
babel/locale-data/cu_RU.dat,sha256=GcbqgE8Mlglk5EGGSVcCR-Zb8AmCqHGE8cbmAUSbpdY,653
|
| 187 |
+
babel/locale-data/cv.dat,sha256=CP-MOhiT3FvdNgmLJRJEvRSN4i9cuoCiJZPmL74FXws,83805
|
| 188 |
+
babel/locale-data/cv_RU.dat,sha256=oVPRtcHzmRmkAy26Bv1jLiWmm0P18ruvHlCQ5F3IFY4,653
|
| 189 |
+
babel/locale-data/cy.dat,sha256=AWMJLdABupS0CFpm8We2VM_DbHvUVmXSMgGsjPxh24c,274713
|
| 190 |
+
babel/locale-data/cy_GB.dat,sha256=dyPULIteKk9gP7lGQiDtsiH5QDqNdlxMdK__2dq90dg,653
|
| 191 |
+
babel/locale-data/da.dat,sha256=VU-rNcpP2C-RQqOPf9ju7EaGTxmqtc_sQK8c-WUDO7Y,171955
|
| 192 |
+
babel/locale-data/da_DK.dat,sha256=qNTw1H8WXsV8qGBHxu6noCUOV3BcoR63ERJF8Xc86Ls,653
|
| 193 |
+
babel/locale-data/da_GL.dat,sha256=9BNeKX1-U4NDr3pBU1ZnCGAasdYZjBMsvpdS5uTf9qs,616
|
| 194 |
+
babel/locale-data/dav.dat,sha256=LBf1uH_Q7632sBVhZgQSrdn5LU2pyIU389h4LircJM4,15690
|
| 195 |
+
babel/locale-data/dav_KE.dat,sha256=MfFFEDT6fib5be-EmziiEF0NAnEV6lXD7svYtHUtmn0,636
|
| 196 |
+
babel/locale-data/de.dat,sha256=BSOGv8-3UhnB_6-yzR--Is8uS4I1RbiqpaMxsxFotaw,178524
|
| 197 |
+
babel/locale-data/de_AT.dat,sha256=7UlG8knBx0aktNQcH1hjm6XiuXcMbFn-FMPYtmMViyE,2443
|
| 198 |
+
babel/locale-data/de_BE.dat,sha256=wvdWykhix9Slofcjm2tx2aEhMjffmMLsNrd8709NIR0,653
|
| 199 |
+
babel/locale-data/de_CH.dat,sha256=oOejbLojAJrcdfDoaEuI7yPqq4mBkE9HRCKBGy3-jt0,4231
|
| 200 |
+
babel/locale-data/de_DE.dat,sha256=SM44YjGlqgh7bKlXvUdt53t9hnCX5o46ujI4IrGPpeI,653
|
| 201 |
+
babel/locale-data/de_IT.dat,sha256=ALPY2QGlR9-kphEk4KggHVS51fQwEDVRd7aHLIiP9fw,1448
|
| 202 |
+
babel/locale-data/de_LI.dat,sha256=FnGRiippDTTFRFswU_4PblQruAuWuPEpa8cGbXPJpbE,1413
|
| 203 |
+
babel/locale-data/de_LU.dat,sha256=QAkvLfyKmZdQVfkk2BbE2AMisK1i7yhRetcApqn4dxA,1067
|
| 204 |
+
babel/locale-data/dje.dat,sha256=6NxQgBas9S5kmjbRcbcuuIIxKaI5_MlfmSUltxJuraY,15530
|
| 205 |
+
babel/locale-data/dje_NE.dat,sha256=lU1vag_HJ4OrbYNYWFXuSdtqLwSlwBbvD6Tg-hl36e4,617
|
| 206 |
+
babel/locale-data/doi.dat,sha256=iIUL3FdKQo9G7GFl9mAO2bsZo9C9BeLCeLY_3hB3szQ,17619
|
| 207 |
+
babel/locale-data/doi_IN.dat,sha256=-q_oAqvdTizFG1DB_1p8sZVyjbaFFQ_FFPtNCyVn9ZA,659
|
| 208 |
+
babel/locale-data/dsb.dat,sha256=IWmhxefQCmcgr9FJirBHyTNjjhQ9puSX7OZdHDSBhRM,202752
|
| 209 |
+
babel/locale-data/dsb_DE.dat,sha256=Z2Dzjx7eXscEBEAb-ymvb1GKP4GVNCt5L4i-BYC_vrE,654
|
| 210 |
+
babel/locale-data/dua.dat,sha256=lmO8ssPF9bIgTU2SM_SzrGWodmsGsmbS485uZNDasq4,4827
|
| 211 |
+
babel/locale-data/dua_CM.dat,sha256=Z3vD8WEr2Wlqqt39anvKXVhz4_yBSm4t5BoAaEz9PgE,636
|
| 212 |
+
babel/locale-data/dv.dat,sha256=-1zCv4GXiRHdWjQk0qXWNPSf4FX4Zp-Ij2jwgz5BsGk,2225
|
| 213 |
+
babel/locale-data/dv_MV.dat,sha256=lvuU5gj3vDykU2ftU1_4Lza-130DB6_ZwylDrdb_GlY,635
|
| 214 |
+
babel/locale-data/dyo.dat,sha256=w71HDmFfCuKN9nUJnuqpHR9DDAmPLkwIu9E0abhYjWM,9854
|
| 215 |
+
babel/locale-data/dyo_SN.dat,sha256=Z6N-NIVcKkx6sFUm8LfN74usyZfgeI6swJL_A_XbBcc,617
|
| 216 |
+
babel/locale-data/dz.dat,sha256=5EkPY_Uco93AZGmKMCetlgTqIDffsAxe5hQl45rz964,85431
|
| 217 |
+
babel/locale-data/dz_BT.dat,sha256=KWd6cypWse4XfXbY4BmTlxGjlnRksYNcQYi_iyXluKw,635
|
| 218 |
+
babel/locale-data/ebu.dat,sha256=S8bggVknCbVHw5x9aJQGB9kUBFNcwj9EONHRNtbaWCA,15583
|
| 219 |
+
babel/locale-data/ebu_KE.dat,sha256=GEcGqVmH0WwgP1BCsd9vnSGxGXl8ON4UPTRbyeaNDfw,636
|
| 220 |
+
babel/locale-data/ee.dat,sha256=0u0gPhXx86rHRoxvXfX9VcP-iAKkt0yQMKGXT55N2Jw,89231
|
| 221 |
+
babel/locale-data/ee_GH.dat,sha256=SkQi-aVmtqi3S99DUTLQzZqUE4LrAIWuy25QuZqYAfI,616
|
| 222 |
+
babel/locale-data/ee_TG.dat,sha256=7y8-rDvag7_EQtEObq3fpHaRedVmuEREnQwjktmLwgk,1168
|
| 223 |
+
babel/locale-data/el.dat,sha256=DvPO81AEYsp79IIVPf2ngkrxLrIg1n839dxZ4d8nHIQ,247810
|
| 224 |
+
babel/locale-data/el_CY.dat,sha256=POPjzTYMuP7Ijf1S88cAFR0ge9Id_sSRNembKdhk2aE,635
|
| 225 |
+
babel/locale-data/el_GR.dat,sha256=S32Cm-1ENgLL_lDecCDI4qDfyd3wlQ1JbUwOnW1whm8,653
|
| 226 |
+
babel/locale-data/el_POLYTON.dat,sha256=lkcs2uXW6mWXztmsAXnapnSuQ6gkns1WwsVgrg-24Uo,14964
|
| 227 |
+
babel/locale-data/en.dat,sha256=ViCuU4ADM5FfF-4QdnaQQWx8xv-sU823MGH7ADA586s,216243
|
| 228 |
+
babel/locale-data/en_001.dat,sha256=xbr8zpbROLECQD_EYf2sq1eHVMJYGY0fghzqMpyXD9Y,31775
|
| 229 |
+
babel/locale-data/en_150.dat,sha256=cjKCV1ZLhNY4TvqJF8BXvQR1jVUBFrdjL1RKSnBa0vc,1851
|
| 230 |
+
babel/locale-data/en_AE.dat,sha256=hx3_0whNnxaqE4pNsbdjE17u34A4ZXGKy3c131__Lbw,4164
|
| 231 |
+
babel/locale-data/en_AG.dat,sha256=POWSM98pRq9k7lqCsxr-MS9PA-zLoOVUKUcI9iXtKq4,654
|
| 232 |
+
babel/locale-data/en_AI.dat,sha256=7iwWKftqPdOdWJ7v94jsre2ZIq2cDpbVGAs_ScBztbs,1206
|
| 233 |
+
babel/locale-data/en_AS.dat,sha256=M-N7v6BuP47wkTFmv5by1w42IQCUiSqKbaVTXtnwF8Q,635
|
| 234 |
+
babel/locale-data/en_AT.dat,sha256=05-bVy1aMFWZlHMBC86A7OVy1zlhJw7hsjyvIOjxE70,1309
|
| 235 |
+
babel/locale-data/en_AU.dat,sha256=7ZKV1AohDL2uufnrDIgn_-ubKlrbSKa_9UMm1wxFFuU,20883
|
| 236 |
+
babel/locale-data/en_BB.dat,sha256=J8vppKlBp03jJvVuVp6Z4GMc_N0BukeQ8f8q14y8fwU,635
|
| 237 |
+
babel/locale-data/en_BE.dat,sha256=0JXHgqUIWZYe88FYC97spm2TqyIaNOwDJBt3LBmUF7A,1547
|
| 238 |
+
babel/locale-data/en_BI.dat,sha256=AbdI5FjEqQLOMbBtD3wLW_7AccuOwY9MZUFpMF1uEco,1189
|
| 239 |
+
babel/locale-data/en_BM.dat,sha256=cZE8sxf44ETY6nCxOgbvJN2RhABZrRaP8SjwsbSepuE,654
|
| 240 |
+
babel/locale-data/en_BS.dat,sha256=r-oQxdqP68-0nui6I4vSSfLkPXUKS6PMKAWdxxZBSjc,838
|
| 241 |
+
babel/locale-data/en_BW.dat,sha256=k5bc9gYBdl_8ZyCelrlS9ZenMzs8cdfl2MxeCnOAr88,2850
|
| 242 |
+
babel/locale-data/en_BZ.dat,sha256=ea8sr4wyGm4oIuNmp9ZF0_Vk6kKblTAlu60Sl4GMucQ,3065
|
| 243 |
+
babel/locale-data/en_CA.dat,sha256=WH7ky-wJH9g2aZIWVwc3hZVGW8icMDR5xhrHNqvnoys,41905
|
| 244 |
+
babel/locale-data/en_CC.dat,sha256=34a3Vb57hT2reRvwn0Ud1nXkoYQJoPmaqh1n5qflFdI,1187
|
| 245 |
+
babel/locale-data/en_CH.dat,sha256=Nfkwk2HNOccSH8Co5SWYnFdHWEDEpKNPQ2o9a67vt_k,1866
|
| 246 |
+
babel/locale-data/en_CK.dat,sha256=gvU21BSAugpjE7CT3xnpHML6oRgHPaBoq7W11YbG-1U,1187
|
| 247 |
+
babel/locale-data/en_CM.dat,sha256=r_7Yzep6S0ZOFvk_TORm5Qhi55yjehVQAotaLnn7igQ,1437
|
| 248 |
+
babel/locale-data/en_CX.dat,sha256=lKYbIRS6r-WMUd1ewX7Q4TpX0PBVcsYN7Cs263_xosM,1187
|
| 249 |
+
babel/locale-data/en_CY.dat,sha256=kQZfhQdPfdBeePOngn-4CpA3ZJ7Th-lmZ-jOrBe115o,635
|
| 250 |
+
babel/locale-data/en_DE.dat,sha256=oI3TmMDoQZsGddvDb0fbbwd_LdTeFbFPdFkZhst2q7Y,1027
|
| 251 |
+
babel/locale-data/en_DG.dat,sha256=xtjjxkuFB7I4p3n0f4Evz631RtMQhIzpoYwUzOzICqA,1168
|
| 252 |
+
babel/locale-data/en_DK.dat,sha256=pE7x4MDJvZGFnqQqXMCDWoMV3Ovu2qH-QO2oYNvgL4Y,2425
|
| 253 |
+
babel/locale-data/en_DM.dat,sha256=gbriVhXcdXi5GWmpgWdGB1LUwI2yquuLk1khkzpo1UU,654
|
| 254 |
+
babel/locale-data/en_Dsrt.dat,sha256=fd-9Z0BHnZPWtfaR38jcLKBfbJyLrLL3yxR31iwKLbE,38732
|
| 255 |
+
babel/locale-data/en_Dsrt_US.dat,sha256=p8c_L5tEvzYmacz0tmq58Wsbfp9wMV_PBgz5R_v7I-k,653
|
| 256 |
+
babel/locale-data/en_ER.dat,sha256=U1vYaQVwnVgfmO9l2_GjBnAhHrShbiHU_E-hAclDvck,887
|
| 257 |
+
babel/locale-data/en_FI.dat,sha256=i4gKdljmc9cXO-E1IT6JGmq2JsRRH71sKe3yUmkhIa8,2357
|
| 258 |
+
babel/locale-data/en_FJ.dat,sha256=k-hXekogcQzt00qXdcWODsHbg7Vh9U8Vx84bERd8CHM,672
|
| 259 |
+
babel/locale-data/en_FK.dat,sha256=r6OGl7mX4ep5aeFMlhog6Xr--kDKFEVhDcepSJBYZWw,1210
|
| 260 |
+
babel/locale-data/en_FM.dat,sha256=88mCYM5_VDSYpJ_mV4AStjiDpKAo_1W7GbmKcI9f_sk,616
|
| 261 |
+
babel/locale-data/en_GB.dat,sha256=Dnf9JNdt-Hk5Dacd5L1r8erZsF_X0q9hiAOKqd_fOYo,3344
|
| 262 |
+
babel/locale-data/en_GD.dat,sha256=c2ap41e5x-OY5dEYZ5wD4ByRbEzlx0845R1lPBLnJus,635
|
| 263 |
+
babel/locale-data/en_GG.dat,sha256=qhfvbRdldEA4467X0_8N09HwT1ZRPJJtb7Evpvbbarg,1273
|
| 264 |
+
babel/locale-data/en_GH.dat,sha256=bBpzsHl9QhNAQ7hrUtKb6TwGvZYibXQwXfuJVgLMlZ0,889
|
| 265 |
+
babel/locale-data/en_GI.dat,sha256=veSOVDagnkTwyqxP4u5mOkRG8_W4MCZ5ptMBoGOg9SE,1228
|
| 266 |
+
babel/locale-data/en_GM.dat,sha256=jfHQeiMTDNgnIpx3WZ9hOpCR_LXCYLLrVN4SUakudi8,885
|
| 267 |
+
babel/locale-data/en_GU.dat,sha256=WDR_uybAkUii6RHT2x62pzCLvX4bMstibEztBvLSuxI,715
|
| 268 |
+
babel/locale-data/en_GY.dat,sha256=TDiVa4YSapsK9rjQN3ATnrj3m267l35pqRLI7r5bLFc,694
|
| 269 |
+
babel/locale-data/en_HK.dat,sha256=meLPc5_3zahna_xycXEf75TrW5_4BHuqMQcMyoo1eYQ,2315
|
| 270 |
+
babel/locale-data/en_ID.dat,sha256=b8R7owdV-fl30WrUhFz-1YGHiFweaoYs_bBFr9pGhD0,3172
|
| 271 |
+
babel/locale-data/en_IE.dat,sha256=ZNe5XFbdM4UnYu6KaGYHggQqzIVCWwWof5C5ktTsHn4,2094
|
| 272 |
+
babel/locale-data/en_IL.dat,sha256=O4-JPTBiiLezF-iUSDu73id-0VWlSiE0ie8z9qRaxq8,1424
|
| 273 |
+
babel/locale-data/en_IM.dat,sha256=u3JX9jrrsW_G5RQXHsQIGl6ikVduckeldeS_FjKG5Y0,1273
|
| 274 |
+
babel/locale-data/en_IN.dat,sha256=1S95GetNEaxBZPOWelK4qvzMm6Enr4O1nuVpngZZe-A,14665
|
| 275 |
+
babel/locale-data/en_IO.dat,sha256=TOM0TxdcWcu1wyBXJxsrE-uCIZsbYTCmUkTdfCaOO-E,1168
|
| 276 |
+
babel/locale-data/en_JE.dat,sha256=IxL3Ry70pMOXDbCwU6LZllHXZmg8XHbjocavEWvb9jY,1273
|
| 277 |
+
babel/locale-data/en_JM.dat,sha256=Z9GFZ6aFGEvIEzlbOlA5bBBvxgcxXx6s_7AxPMp2Yg4,1666
|
| 278 |
+
babel/locale-data/en_KE.dat,sha256=oJa3lUdjavkdhkMK_bcnJ08waK9lfIRs8mFkG0JYf-4,1458
|
| 279 |
+
babel/locale-data/en_KI.dat,sha256=3yfkrwv7Yd9yxDNnXz9Sv8ghbDvqczZTAELr3uGNYn0,635
|
| 280 |
+
babel/locale-data/en_KN.dat,sha256=cFebccXOrQo2X1zmHoHYB2vzXynoroYImJTMnK9j3h0,635
|
| 281 |
+
babel/locale-data/en_KY.dat,sha256=uQV4Jf38XQ3ycqYb2HhyOYdNMIbuHyxyy9HNsb26Q2Y,819
|
| 282 |
+
babel/locale-data/en_LC.dat,sha256=jUYdKd248Jkj5XVxXXbvXnfxu4BH_3s4Ld-O67qbPkE,635
|
| 283 |
+
babel/locale-data/en_LR.dat,sha256=ribT8_azFjDC8uzIsOwkGTjfgEiFlSG_wAb_wG1Fmnw,885
|
| 284 |
+
babel/locale-data/en_LS.dat,sha256=2HtV3gUrynDl2mVvqywMfff8VnVjz2ryoNS7D2n5T9c,885
|
| 285 |
+
babel/locale-data/en_MG.dat,sha256=dtMrsBqOpwQExs7dVukbUzWojz_6swx5Ng6OXdKxsSs,1438
|
| 286 |
+
babel/locale-data/en_MH.dat,sha256=NZjQknLyokLgJRNPicAZ55_VoRCATz_WvAxMo_I-HOg,1368
|
| 287 |
+
babel/locale-data/en_MO.dat,sha256=UJVR7td-vlRY_a36ZWbxr_PcK6egIUQSKoky3DeAmEA,830
|
| 288 |
+
babel/locale-data/en_MP.dat,sha256=Sd2vA3CdR_GBw1vQQQBfKIY0asJGsVUwZ6gD-h7Or8o,1349
|
| 289 |
+
babel/locale-data/en_MS.dat,sha256=BXrA3odGnWSeR6404L85ErqMKxTnRCZ16UWL2RpD7TY,1187
|
| 290 |
+
babel/locale-data/en_MT.dat,sha256=sODJaESHndxdT9SYZcnESDA6G6oln6n9NCojeHhKvJg,1990
|
| 291 |
+
babel/locale-data/en_MU.dat,sha256=SefoZho0XzSzzU_Y_-udWPCuRgz8ujdUVkL7hhzZO8Q,1438
|
| 292 |
+
babel/locale-data/en_MV.dat,sha256=Spp5zsOCHzCeZOyUdYqXoqmSoIJ0pxRR3b3nI27jvTs,2034
|
| 293 |
+
babel/locale-data/en_MW.dat,sha256=5d20Ih8j6iwBY545I4nObBWdv9FL37nE-ggfpGeXSVs,886
|
| 294 |
+
babel/locale-data/en_MY.dat,sha256=nUwwM17W9W78nnbXGmrx2zComZQ9Fg_pu3va9wPZzvY,716
|
| 295 |
+
babel/locale-data/en_NA.dat,sha256=-yNAAmx38RoVJt3YRH7Tp1xO9o3GsSVDU6uF_GKhGb0,885
|
| 296 |
+
babel/locale-data/en_NF.dat,sha256=6LqhwHyOnkQA4TNvseuiE1a5Ov7DV3y46CZ0ENcibXE,1187
|
| 297 |
+
babel/locale-data/en_NG.dat,sha256=dvbDZYdlkmhF-IU8M6s2p_kHswy8HhdmR3LLc4EhePI,1439
|
| 298 |
+
babel/locale-data/en_NL.dat,sha256=dDCtXReh9uMfUOVqGWaWjfV1-dLe5_yj-o_HrKZGMeM,1192
|
| 299 |
+
babel/locale-data/en_NR.dat,sha256=ZiUNBY0c1T3LQP-qGmtuxLW2Jfc-lcVTuWpB2jxfAGI,1187
|
| 300 |
+
babel/locale-data/en_NU.dat,sha256=jU4HXz_3l5k-luPPsjZmZBsdOVB5ZfkN1Xuk5i2pduc,1187
|
| 301 |
+
babel/locale-data/en_NZ.dat,sha256=z_qul-H3zQn0Q_lrrHceySj1m2TQaaJZd3QMXE31CcA,2340
|
| 302 |
+
babel/locale-data/en_PG.dat,sha256=WV6D2yT-4GX6ftbnUkK-ihfNg8Y-ImX1Af56okx8LTA,635
|
| 303 |
+
babel/locale-data/en_PH.dat,sha256=oPz_wDvxfCHBpkBUaZ0RiwtPrLtx-9IigR0TIK1b-IM,635
|
| 304 |
+
babel/locale-data/en_PK.dat,sha256=KS_KXItkhkUULbKd9mHdWD9ok4WjZbVSXhU8e5u8blo,2074
|
| 305 |
+
babel/locale-data/en_PN.dat,sha256=qpEWWX0fvhzV6gcX_SHNbJW7E-5FikKwXrQAP9BWmXc,1187
|
| 306 |
+
babel/locale-data/en_PR.dat,sha256=bpAu9yoeKxzQTF5Be7AfXtyE3wax0eP0m-Eu-Cr0jKE,635
|
| 307 |
+
babel/locale-data/en_PW.dat,sha256=tpiNQH7vUuPfoLqFZ3_R8qBhExAhjG3nlp7zTydqE1k,800
|
| 308 |
+
babel/locale-data/en_RW.dat,sha256=Et3hOZwaSDECrCzypgYq1QxKxxnB3XYziIeEe_WiY7c,1438
|
| 309 |
+
babel/locale-data/en_SB.dat,sha256=h9TJ69YThzzLGTh49BBEmRBxSiZhZpQrVJif0QglLVs,635
|
| 310 |
+
babel/locale-data/en_SC.dat,sha256=omYtCZBrLl8fHuT6XInezdetV7WqWZVYriJRnlWKbTg,1188
|
| 311 |
+
babel/locale-data/en_SD.dat,sha256=ozd3rV_icr8p2H9V6StOSMkoHBPNBsXsay1GMRWZ1zs,928
|
| 312 |
+
babel/locale-data/en_SE.dat,sha256=96guhEOzGr2Lcbd3xZ4j7HTj-0H0oaGMQIbI9a_5g48,1502
|
| 313 |
+
babel/locale-data/en_SG.dat,sha256=u9U5CLnqs0iJmSnMsPBHF71HQLpFM3siADzZeC7iaJ0,2096
|
| 314 |
+
babel/locale-data/en_SH.dat,sha256=rBm_0zxjHnEVzs_CPCyuz5LpI9isA2S6copUuNbxCcM,1210
|
| 315 |
+
babel/locale-data/en_SI.dat,sha256=kkeEkPnW48iNoiwNZb0KV29DPU0oVNuENTi_Wmp2ALc,1046
|
| 316 |
+
babel/locale-data/en_SL.dat,sha256=4hJLAAnyuEVVQZ13NC7wZ0JYJQ3rvX0SsOAp0OoW7_U,886
|
| 317 |
+
babel/locale-data/en_SS.dat,sha256=C4kpyEFjyKT9-6wt2pGl4125aN0Bp0wpcYBrr62nPOc,908
|
| 318 |
+
babel/locale-data/en_SX.dat,sha256=7vESruRIiaBqWxuSRpIE2U6PgWwJ9mxgbjjH_XAraa0,1190
|
| 319 |
+
babel/locale-data/en_SZ.dat,sha256=A9wkzZ5cFffcEf1FobYRPxR1EAFwqQvqELsqRpNleOg,885
|
| 320 |
+
babel/locale-data/en_Shaw.dat,sha256=5NskTfYsGHZ63w2s3eYrzrogPpVZeqY3wd60hViYIbo,4774
|
| 321 |
+
babel/locale-data/en_Shaw_GB.dat,sha256=uAIWlJ5gr_NR6lncmMaBrjXUPhZ33rGsXoHz8hrd_E0,653
|
| 322 |
+
babel/locale-data/en_TC.dat,sha256=UWqEc9zpN3NdS1dymbUv2iGKhLkH65Kk9uNFxdXGnOw,616
|
| 323 |
+
babel/locale-data/en_TK.dat,sha256=qz4RHtHQ6cNjB8xW8_BIHdzW1cEcQuyJfdqFIybXAs0,1187
|
| 324 |
+
babel/locale-data/en_TO.dat,sha256=OehJQf8kvWi7A-Rwo2hPjs1Z9pTdg7_Hyx_ewWxbLQ8,636
|
| 325 |
+
babel/locale-data/en_TT.dat,sha256=L23iDn_zvh16iPE5uBlLCRvECSozqyzU9W2OcSjYogE,654
|
| 326 |
+
babel/locale-data/en_TV.dat,sha256=3sj3NCjQg-9UOdTz7wDJRpjx57bI0bntpmx0T50OK9E,1187
|
| 327 |
+
babel/locale-data/en_TZ.dat,sha256=5Q87mjSEaCMmWeWwtesb9lJw2tIWOsvyScG1CqSpWvs,1439
|
| 328 |
+
babel/locale-data/en_UG.dat,sha256=aQLfdbfozsYhK3EG9JXVxsmT4B7UvfSzNBo7kO2WSsc,1462
|
| 329 |
+
babel/locale-data/en_UM.dat,sha256=qd26Sl5bJTEgHU25hvskp4LMxvRJByLOSvUikqz0J4I,653
|
| 330 |
+
babel/locale-data/en_US.dat,sha256=p8c_L5tEvzYmacz0tmq58Wsbfp9wMV_PBgz5R_v7I-k,653
|
| 331 |
+
babel/locale-data/en_US_POSIX.dat,sha256=U8r77o6qQID3Sd5FiZqukSpQnq4LV1BDwHUeuNZjW10,1321
|
| 332 |
+
babel/locale-data/en_VC.dat,sha256=ES4c4Xt6OvJDhxoAZpWR2HFbtyENOl9CrV7XFCBs-MY,635
|
| 333 |
+
babel/locale-data/en_VG.dat,sha256=sqiVUOEtDV2pAc5DzGl76qV1mL5K-UWhMRzG-Ff6r30,616
|
| 334 |
+
babel/locale-data/en_VI.dat,sha256=AGffygfBAafQMxKAAoxt6kwmbES4R_ybbXRV2tHpy04,653
|
| 335 |
+
babel/locale-data/en_VU.dat,sha256=ji2cRB8B-c8uJR7L56HzbkiTR8eJZziVTMcEzuiK2g0,636
|
| 336 |
+
babel/locale-data/en_WS.dat,sha256=gowKsveED3UIWyLgnSWxyE6qq87lH2dMgOVLDGCEcBk,656
|
| 337 |
+
babel/locale-data/en_ZA.dat,sha256=kV9r2Vo4ERwpVS81i0XlMwJaK5KiktsPhY1QqDcs6gY,3333
|
| 338 |
+
babel/locale-data/en_ZM.dat,sha256=8y814a5GtYcC5gvh3YBlcYf5Imr0yNEIV_v8jH3SXqk,885
|
| 339 |
+
babel/locale-data/en_ZW.dat,sha256=GUDDEesQRkUuLyyDlnJ3MGlGzG-kDPxt8OTIqVRKDyw,3320
|
| 340 |
+
babel/locale-data/eo.dat,sha256=Vp7ZYRlKoqXCK-aQc4fOLqOwAOjQp_asL__CVvPOyBg,83417
|
| 341 |
+
babel/locale-data/eo_001.dat,sha256=3-tP9zaTDfbBBjpd2qKVIhS7WWbmtVKGGW_BmGIhrHQ,850
|
| 342 |
+
babel/locale-data/es.dat,sha256=hojv4OuxtIxJjXKr7zcjL08YAfSgNrk09kzq4vrGbUo,189567
|
| 343 |
+
babel/locale-data/es_419.dat,sha256=SfCH77TbCmV-7achdUzzXrhL-CAgN7FfroVNticlEv4,29658
|
| 344 |
+
babel/locale-data/es_AR.dat,sha256=m302D6vN79SCU-inqwJlRIcATtfZyhHS7WX3XS-Jay0,7754
|
| 345 |
+
babel/locale-data/es_BO.dat,sha256=quaJsJ3zQtYTJIMlHr4kUfnmrm3L17qfEWmrjCy2xDg,1991
|
| 346 |
+
babel/locale-data/es_BR.dat,sha256=oCD_7IoQ5w-C-YXpQ_wBcS0wUkcY268QDcg5y7Vo7KU,1207
|
| 347 |
+
babel/locale-data/es_BZ.dat,sha256=Z3ZskA42UBcpOPDI66F6YBTvzt-g61PmxhiEpdGXpwA,1206
|
| 348 |
+
babel/locale-data/es_CL.dat,sha256=KjoKreBoCnXKIm5iaGcXQ8jzzAM9t99Kb-R3jT3kB-s,5511
|
| 349 |
+
babel/locale-data/es_CO.dat,sha256=PF3u9QeYL5qyV-fD3CXT5mmfkGfoCnGWCvAAzsLZu6Y,8079
|
| 350 |
+
babel/locale-data/es_CR.dat,sha256=7skZcxV8Tcr5Fj4F7cqx0mgytxNZTQcsR4AIeELlwIg,1822
|
| 351 |
+
babel/locale-data/es_CU.dat,sha256=N-TqpCs34sjlEMeJgvrfOSpmnnlGxuuGtSBSaUKDbvg,656
|
| 352 |
+
babel/locale-data/es_DO.dat,sha256=nNiK1upUJxKwFNHBm6RUJY-ws_PX7g70RhmhshfWSlY,3262
|
| 353 |
+
babel/locale-data/es_EA.dat,sha256=V4UU6BM3pjbuEleLA_MaJtWl8IejNcHzUM660pfKa80,616
|
| 354 |
+
babel/locale-data/es_EC.dat,sha256=JAFSBGhsn7IhdP8nTxa9eCD6wLtnUvuIYfpD2X3kWDE,3521
|
| 355 |
+
babel/locale-data/es_ES.dat,sha256=fd1TSjdlf2lSMxwi0NhYGR2eyiABBaSJvhLlwLO46j0,653
|
| 356 |
+
babel/locale-data/es_GQ.dat,sha256=a7A-hqM9wNt51_CdpjzU8aT9KEeMz165-MyhkWyqJOM,638
|
| 357 |
+
babel/locale-data/es_GT.dat,sha256=my2bMF1UTaHfChXyzWbHzYJHbpS0ewHodVsJyIa55Q8,4839
|
| 358 |
+
babel/locale-data/es_HN.dat,sha256=vILB8CI9QLn4K1O2aR7IIXCZtCwTje2NZoUlfaCzccE,3640
|
| 359 |
+
babel/locale-data/es_IC.dat,sha256=hwey8h4GM8i25i-YZR_K-jvCij95wZqr0zdTIKauP58,616
|
| 360 |
+
babel/locale-data/es_MX.dat,sha256=X5UaY2u_VRTSK64KArcc1jV3lCK1iiLRqszJLi5C6SA,28874
|
| 361 |
+
babel/locale-data/es_NI.dat,sha256=rnz3av3y4KBBFVrdHTZvduoxo4VQ0KPP3NTs26hmc6k,1741
|
| 362 |
+
babel/locale-data/es_PA.dat,sha256=HX900nuzfhQKwOgDMOq6D1VGeeT9Q5NQAvJF4YP1T78,3289
|
| 363 |
+
babel/locale-data/es_PE.dat,sha256=KTEodWB425loXuDxyh3KdBpNDL5VQYUHolNin2Q5Hr8,7881
|
| 364 |
+
babel/locale-data/es_PH.dat,sha256=fEMZmVPQb97bBjEtCVMLn9JUtosTePmRuQqhpfNYkZQ,1248
|
| 365 |
+
babel/locale-data/es_PR.dat,sha256=VlvY1_ysEx-DhzfMdtq5sYcBvouw2X12Mclk2Z8X7AY,3592
|
| 366 |
+
babel/locale-data/es_PY.dat,sha256=2Z9aaWxp53OvG0pjvnQRkF8E8_F5nBSe19PtOg1TqXk,5142
|
| 367 |
+
babel/locale-data/es_SV.dat,sha256=6F0GoPB-WpSfNPFfS5TL6YMGeVArtLbg7aUdLKDWDMM,1497
|
| 368 |
+
babel/locale-data/es_US.dat,sha256=vFkUT5eidt_fIq7dIxekTtoJwQ_c6Me5OKZJ-1042xY,23918
|
| 369 |
+
babel/locale-data/es_UY.dat,sha256=31KdHVEWnE6fWuHa7KOdTLcmlWXn8M5liZZMDWlaVrk,2703
|
| 370 |
+
babel/locale-data/es_VE.dat,sha256=kCVAMjyr23iwpwVU0gSVuX_obJKF_OxQ20_3Ga0BsyE,3023
|
| 371 |
+
babel/locale-data/et.dat,sha256=MS2H_7jwbTDTYgSdrRJ8VZDc3gNmzOXZNbTLqgWyzrg,174982
|
| 372 |
+
babel/locale-data/et_EE.dat,sha256=JpcyzIDpGwHlLSiInuYO3HfxkMEFsDPBeMc-B8Rj3MM,653
|
| 373 |
+
babel/locale-data/eu.dat,sha256=xreNl2xenU9dEDhi-T5Ks771503t3JDkw1fEdvFlRzY,177399
|
| 374 |
+
babel/locale-data/eu_ES.dat,sha256=ABS9lrwjRkWenVB4fNrwKpr0mOuMF_eOlOrSrobcDl4,653
|
| 375 |
+
babel/locale-data/ewo.dat,sha256=tHyC9Uj5Gkz_nGEiTCFjXn3veej5z1GUhr-j-Dl2vgE,16881
|
| 376 |
+
babel/locale-data/ewo_CM.dat,sha256=likxlZJqzYOVxcG4oSUQLTiH5DjGjdAFsJPIjnnj2Iw,636
|
| 377 |
+
babel/locale-data/fa.dat,sha256=4Dv-RDWoyjF-vpVZLkvz5dol5opDfd45ShvuQeDgtbw,186706
|
| 378 |
+
babel/locale-data/fa_AF.dat,sha256=L1MgTkH-kjSmfcKamsrRSp13RI-pN0KGpKENGdf5zJs,9782
|
| 379 |
+
babel/locale-data/fa_IR.dat,sha256=nPuexwzRHDb9TFMjILK_V43sVIzbcn_fgp0msY3eFQ8,678
|
| 380 |
+
babel/locale-data/ff.dat,sha256=gT8MoHYFJcGDoVjBCYPzsrkMTKylOjXkE64Sc0L-rvM,15911
|
| 381 |
+
babel/locale-data/ff_Adlm.dat,sha256=Lx7LHx7NaGnovKYmu08JW656GfoZjuV2qTzh7kcSdEU,328053
|
| 382 |
+
babel/locale-data/ff_Adlm_BF.dat,sha256=eYQLbHvxtEqcJCMbXSkqN2dRSuYHVc6Tg9kOUKayJQs,637
|
| 383 |
+
babel/locale-data/ff_Adlm_CM.dat,sha256=b3VqkcWqXc7s1hCxN60dd-yBRXkcXfMMQ0uAJKmSsg8,656
|
| 384 |
+
babel/locale-data/ff_Adlm_GH.dat,sha256=r1CRe9Z8kZ3B3PDxmZQbvgpsEcY3OjJek9Z_S8FBb5Y,1236
|
| 385 |
+
babel/locale-data/ff_Adlm_GM.dat,sha256=ZM17aBc8xznEjoP4f7HRCHaKn-DIxCSDGkL6GvDYvDw,1232
|
| 386 |
+
babel/locale-data/ff_Adlm_GN.dat,sha256=HWkLsTj8Sd0fWYuYysHhShl08hg0iAvSXhPjy-rUjB0,616
|
| 387 |
+
babel/locale-data/ff_Adlm_GW.dat,sha256=vIUl_C4PZSWmypeEmnsAUbGN2dSquM3nEOdBs22_qNE,637
|
| 388 |
+
babel/locale-data/ff_Adlm_LR.dat,sha256=277rY6zAWlxetFe0D0JpVEY9MNcQiJU9kt1jRoiXE7g,1232
|
| 389 |
+
babel/locale-data/ff_Adlm_MR.dat,sha256=qz618w1XY_zwZ27nB6LBgbzsjsh4UinfnuOVx2bqLgk,1233
|
| 390 |
+
babel/locale-data/ff_Adlm_NE.dat,sha256=waY1EIQKuOkVzrtJ-t-5VY7cK2uKL0SIBO0PQbx4x9Y,637
|
| 391 |
+
babel/locale-data/ff_Adlm_NG.dat,sha256=9UdHELj5G90YopBKktxDyWVQyLxl5f7P3ToBElwlvCo,658
|
| 392 |
+
babel/locale-data/ff_Adlm_SL.dat,sha256=7jLKofwQBRggP61keprrbfFGXvrcJPIOvwEVmUNjcTI,1233
|
| 393 |
+
babel/locale-data/ff_Adlm_SN.dat,sha256=nGazz6Tun3D-XsO6SljxQeeBuzvAb1sBQw21IbkDQKo,637
|
| 394 |
+
babel/locale-data/ff_Latn.dat,sha256=APyNmlFYRwCQOlboY58qsqiF57rrI3F4fHu-uQTdt4g,866
|
| 395 |
+
babel/locale-data/ff_Latn_BF.dat,sha256=Nym5keR3dDPMJBFr7ZyW2cuuY-qTMkdHzXnIHSmfD4Y,616
|
| 396 |
+
babel/locale-data/ff_Latn_CM.dat,sha256=rWaVAF6D5gv_hDhNmSGbcWGpPV7X4gp53FBMXyMjT-8,635
|
| 397 |
+
babel/locale-data/ff_Latn_GH.dat,sha256=-kMvFNIQyikTD2dFakV81ghSR2H584AigLgtmrzlhN8,1231
|
| 398 |
+
babel/locale-data/ff_Latn_GM.dat,sha256=1Air8sk0wb0McqLZXDWIYQeiKgPusBaVjr4zk54IaoU,1227
|
| 399 |
+
babel/locale-data/ff_Latn_GN.dat,sha256=7R-6dXYMBdveo2-9Vc7CjIA2H6y_hGJVbfVGIaJUgbI,636
|
| 400 |
+
babel/locale-data/ff_Latn_GW.dat,sha256=2kbqhzcDeSPQxefHxynmrv2tmFVnWdRNjO7I3AZ6lxk,616
|
| 401 |
+
babel/locale-data/ff_Latn_LR.dat,sha256=MQxcDQnMZC5hN52abzqCjVIL9Z5mA9wOyTqGPP4Oj0g,1227
|
| 402 |
+
babel/locale-data/ff_Latn_MR.dat,sha256=CDUb5owq0Ntsd2lIZJejvYxOjl-NOUPP-v3tgVj1_qU,1228
|
| 403 |
+
babel/locale-data/ff_Latn_NE.dat,sha256=R8C0fI8ql5XpnT29CrwBG8rgdHB1AASDBSdvqIqIQ1o,616
|
| 404 |
+
babel/locale-data/ff_Latn_NG.dat,sha256=00rtiYbJD_ci8-0M4ye95rzGpbyX8qQ-dmFFIajAtRQ,637
|
| 405 |
+
babel/locale-data/ff_Latn_SL.dat,sha256=UaWOeokdbSoxG0JUyyGWkDyz70sXy-cZbc3lXZxmQK0,1228
|
| 406 |
+
babel/locale-data/ff_Latn_SN.dat,sha256=mPVac9iCnwNay8c7Ko3uUvg48lfyfEZrvhpyEFFGmFk,616
|
| 407 |
+
babel/locale-data/fi.dat,sha256=36DRCXJhDvPo6-_KVCOVhuXd5tcsT5AYxmv9j4RMvvA,205497
|
| 408 |
+
babel/locale-data/fi_FI.dat,sha256=cpbJU4KKG8OWbmLnc9TKTdzmpoi2AJh_Pu1cHhDwVSM,653
|
| 409 |
+
babel/locale-data/fil.dat,sha256=tVRpJlykU9PtanT-D421vIzw53V2bbl1o3fPWIxwscg,144245
|
| 410 |
+
babel/locale-data/fil_PH.dat,sha256=JjoZt3zNxy1X6RnHoxUKOMzT-xMh3tGZBRq8cvrBwqA,636
|
| 411 |
+
babel/locale-data/fo.dat,sha256=yHVvTCIb5kXaq-jsldf277FkzUKYVKCIfKIYyeLxb4A,131926
|
| 412 |
+
babel/locale-data/fo_DK.dat,sha256=HUuarLNFSsV_gN2fg-OqrPr-6Ry6KFgitCp173jxAOM,674
|
| 413 |
+
babel/locale-data/fo_FO.dat,sha256=SLeNQ33QTZ92kXCzQcFfo-OgwZVFPJKIeRivuvz0zo8,653
|
| 414 |
+
babel/locale-data/fr.dat,sha256=zUFq-vPnKOPQyQA7tDUivp_mfnsZSszbyPB97XtDYYQ,212870
|
| 415 |
+
babel/locale-data/fr_BE.dat,sha256=Rm-b3ihAcJ_ujF2UgsHruHaEuDOLiaVvWl4Zsuh9uxA,1258
|
| 416 |
+
babel/locale-data/fr_BF.dat,sha256=7piWVeMMrZ-YbO9MNqJAu7ZeIdueVnhg07eeMwJHy94,616
|
| 417 |
+
babel/locale-data/fr_BI.dat,sha256=R4kaU1OtMcNIcibkw8OFGP6FaYMxt2uKMRyidkEqbiA,637
|
| 418 |
+
babel/locale-data/fr_BJ.dat,sha256=sel3fdwegY5W4NRg32t4MuXoqpGqTAGO_ffCF2NPggE,616
|
| 419 |
+
babel/locale-data/fr_BL.dat,sha256=n-MRZjeHNkRMwCtGgPZq52Lj0ijntBsxfskC324i2k4,616
|
| 420 |
+
babel/locale-data/fr_CA.dat,sha256=NAJMvUooXLPuQJSVCethvlvMdPax1LmUnSTA6VLhBCk,72658
|
| 421 |
+
babel/locale-data/fr_CD.dat,sha256=HWaY-wrLseHcf0fGlRkAWt118iQjRZaTGlqs7G23ZrU,1138
|
| 422 |
+
babel/locale-data/fr_CF.dat,sha256=wxzk0Nf6_pKO2VDivQprUY9WvaxRSkrfQBoUE1UVrAA,616
|
| 423 |
+
babel/locale-data/fr_CG.dat,sha256=zP3HTP-nqZjG-OD_DLrDEPPbB3t9g4T2kHVzI-HxhaU,616
|
| 424 |
+
babel/locale-data/fr_CH.dat,sha256=edwGQxwnF6RfWdMrdQ11FenlOCj-AFaBF7q4l94N_0s,2978
|
| 425 |
+
babel/locale-data/fr_CI.dat,sha256=TrHL8hQRuJI3Auxe3aTHYa_rljyUvT_s0q-jdSJflJM,616
|
| 426 |
+
babel/locale-data/fr_CM.dat,sha256=31oDAmeRb3F8a4fvVn1QJyIbrla04w8kfC4oQO0vwkk,1970
|
| 427 |
+
babel/locale-data/fr_DJ.dat,sha256=Jqu2FOJQD41B6fLSBEc_Wf-dIQ-B6MWlT0m1buQnmxo,1248
|
| 428 |
+
babel/locale-data/fr_DZ.dat,sha256=uOe9lbjO51q30G0UMs5nKrMLta5CtLW2Fg4dvsfRX3M,1290
|
| 429 |
+
babel/locale-data/fr_FR.dat,sha256=bwtjtv0NG-lxlXO7fJd6r--l38WKaQmqlmn7PpXJdJs,653
|
| 430 |
+
babel/locale-data/fr_GA.dat,sha256=rMwS-msXjMO5T5k1BP2B2S9B_dYvDHlP8HMS-Lq8XU0,616
|
| 431 |
+
babel/locale-data/fr_GF.dat,sha256=x97-H7H0h4_MUTpjMdrkYB790vBvPKKxmnUTu-FOwLg,719
|
| 432 |
+
babel/locale-data/fr_GN.dat,sha256=6KVlBWrF76ZhgyYg47F1TcR8_fbE5Ii2pJzPhmbr3Pk,636
|
| 433 |
+
babel/locale-data/fr_GP.dat,sha256=W99xHjqPQj_NJ1X34ismj8A4xeZcHu_vyqH8tIwXgeI,653
|
| 434 |
+
babel/locale-data/fr_GQ.dat,sha256=Ogf5NI4zMvbVROeIb8F6h1NxJNKOqY4fKU6G2SPJXDk,616
|
| 435 |
+
babel/locale-data/fr_HT.dat,sha256=S2Vvt2b9Wu4dY5Tsd9xxFAx_RLcWXCGf_XeSSQFYbKQ,1836
|
| 436 |
+
babel/locale-data/fr_KM.dat,sha256=ChLpzCyulxYg8Qmm5HK8YkK203GRSUEBNPSl8war7lA,636
|
| 437 |
+
babel/locale-data/fr_LU.dat,sha256=0sYBhn8-9lvfOrU-ZEIbnO5v03qQOQq4wXCKp70b2sw,729
|
| 438 |
+
babel/locale-data/fr_MA.dat,sha256=Um7dK7MvHkPB_h_r0pk47rMFCng1LWFgIekS7cDX9ZE,1098
|
| 439 |
+
babel/locale-data/fr_MC.dat,sha256=IfTCZ89rqHzUxdKyIz86Zs_VUH2zc5JAvntdhyKsNR0,653
|
| 440 |
+
babel/locale-data/fr_MF.dat,sha256=xU0grNJKWgpfArwpLt7vuOpSTSkyPx3o6gFkmZLCxd4,616
|
| 441 |
+
babel/locale-data/fr_MG.dat,sha256=A9zYBbE6gIWuGDPxv92ReIcR49gtIEYaEkCj9ZONHHI,636
|
| 442 |
+
babel/locale-data/fr_ML.dat,sha256=-PoWsHBtnaZisIOqZyaEFmwooRXb2R2xEMe6DYad_sk,1153
|
| 443 |
+
babel/locale-data/fr_MQ.dat,sha256=45qWAev4p2ZaFVky1Qlrw5q907PDfbRJq9q2UACahm8,653
|
| 444 |
+
babel/locale-data/fr_MR.dat,sha256=mVSOABz3cRa1-HEeUKW13sLw1ZR6PmB9h_DPfZsK4Uc,1228
|
| 445 |
+
babel/locale-data/fr_MU.dat,sha256=c4ERuS1GI8h7waxcW6BRtloW7BThLlgqdYTf31Ioh_U,636
|
| 446 |
+
babel/locale-data/fr_NC.dat,sha256=Su2DaGZPnLCaONmgosMYke9kH6dP8xJ8wJF6P5xrJq4,616
|
| 447 |
+
babel/locale-data/fr_NE.dat,sha256=D6ghYGdDXlhaVQ5gAr8wWHxEHYR7mBs0QaiNL5nfxWM,616
|
| 448 |
+
babel/locale-data/fr_PF.dat,sha256=oPN2EBo1hpLjlpDYPB51qEAx_4HNMWG5-Bh9JN6Kal0,616
|
| 449 |
+
babel/locale-data/fr_PM.dat,sha256=gEP6Ay7r-p7uIjOGXP8eCa62yujlTBntENdeNd9KKes,616
|
| 450 |
+
babel/locale-data/fr_RE.dat,sha256=pxNaLi-BUbe3E-Xf5ZXPoeut9NdT0D9OGEgmoSWZEr0,1055
|
| 451 |
+
babel/locale-data/fr_RW.dat,sha256=gP8mpM7gx_X_9NKDm8B9PuTg83jwT5Nn3NOKPpVhi3w,636
|
| 452 |
+
babel/locale-data/fr_SC.dat,sha256=qvz0N08LKCsPCPDZK1NmAhhzmaszBQ8mSlDbAsEwAoI,636
|
| 453 |
+
babel/locale-data/fr_SN.dat,sha256=n6ijBmMl-ztuCLSePI-Q3yIyhzejn7KvRw5ZqjDoXsA,1018
|
| 454 |
+
babel/locale-data/fr_SY.dat,sha256=tpDovgZ3aK7OumRwbntHTknV-tRL_HjcPK1aQINC-x8,1290
|
| 455 |
+
babel/locale-data/fr_TD.dat,sha256=1H47veWKRj_iV9CxHMz7x7tfrL8IYdQaRWhTV455efw,1208
|
| 456 |
+
babel/locale-data/fr_TG.dat,sha256=r_E5Vnj0Kb5CG16ApHFls4UreDeO7-o3uzpQdJjpbRM,616
|
| 457 |
+
babel/locale-data/fr_TN.dat,sha256=hcGRJ2UjuFEFJqb1BDglGsXY8jCEIdM8--OrU3OqRhc,1228
|
| 458 |
+
babel/locale-data/fr_VU.dat,sha256=FYYsiaoM8QZeClMnQzLiLZNXW9hULz-rCgRTYWvrIvs,1228
|
| 459 |
+
babel/locale-data/fr_WF.dat,sha256=jn6VFRw_qpJFxpO-I6C9nhz_wRZ8cV2b2XRBgSzi710,616
|
| 460 |
+
babel/locale-data/fr_YT.dat,sha256=x0WpQCLoqrLY3_nCF7JlcuekkoUtcpE4llC8kRmeRmY,616
|
| 461 |
+
babel/locale-data/frr.dat,sha256=q9BsU--UyZ84BZk8ACbOuRMmWlDdYwIaJlOm24wE2bs,76464
|
| 462 |
+
babel/locale-data/frr_DE.dat,sha256=2ohnodzECbJBUTEta36Ts4amZKl2_LDhuD0-Hu5JBo0,654
|
| 463 |
+
babel/locale-data/fur.dat,sha256=mm2cOCLHjZ3p1fvnKweVRBbwztDZ9HbK3e98hI5SmKc,32069
|
| 464 |
+
babel/locale-data/fur_IT.dat,sha256=PpDH1opUDjndOtvpPadiOtITGyGxKZY0ziEhb-4HKbE,654
|
| 465 |
+
babel/locale-data/fy.dat,sha256=Q7Dq7KjmXUJtHrhuN1FlfK1QqKBx5K7A2PpqRrxthlo,97398
|
| 466 |
+
babel/locale-data/fy_NL.dat,sha256=I_M2hFVCAaVAL90yVMloW2eYmzO5C3NZztfEDAes3_I,653
|
| 467 |
+
babel/locale-data/ga.dat,sha256=AYekFbukk3pQEk4-r0Ti4QnJv1Td4NK1CocezJ72LJI,258687
|
| 468 |
+
babel/locale-data/ga_GB.dat,sha256=NKphVJhmH8egga1dgfO-hSRVFhbxms2JvGMU3ybgj_Q,653
|
| 469 |
+
babel/locale-data/ga_IE.dat,sha256=P948T1Tl4B7kL1T-uxii27q4IWO3yQQ5emTLv7iHvW8,653
|
| 470 |
+
babel/locale-data/gaa.dat,sha256=0U8YTYWpvvzAb-QgW1OeIFugtMtGNQuAdmvJSbhPkz4,34200
|
| 471 |
+
babel/locale-data/gaa_GH.dat,sha256=FF7vo24vzA2ru3t8py246uanyOqyoSkpD65F7KFTXlA,617
|
| 472 |
+
babel/locale-data/gd.dat,sha256=QQyKYswnLTPMUUnjeUdMUjYS1xIJI3yAb0EQlq7-NIM,279289
|
| 473 |
+
babel/locale-data/gd_GB.dat,sha256=weaRul21diYZoqLk7SXacBy8GD1bH30cQO6AHejilPM,653
|
| 474 |
+
babel/locale-data/gez.dat,sha256=6gIHA3BFc3-A6-dOq0pc6bqP2ej6kmG9Xvwa0EEhoMo,12743
|
| 475 |
+
babel/locale-data/gez_ER.dat,sha256=MKpSW7Upkpe42Q2mbJStbjtnrW6Kyo8Tg0zXAxnHWqM,638
|
| 476 |
+
babel/locale-data/gez_ET.dat,sha256=93QTSMihpcfFyRhttFplgAcsAhzrPjlbrz5HI4feRSc,636
|
| 477 |
+
babel/locale-data/gl.dat,sha256=SCR68riTEyWzzecKgWuXHfCCA5O2QJ1Fr24X8cwn66M,152979
|
| 478 |
+
babel/locale-data/gl_ES.dat,sha256=us8xWRQnNTO_KC42-FOU2cnLCNl96591qnxZ4exq5Fc,653
|
| 479 |
+
babel/locale-data/gn.dat,sha256=2CbBgzd3kHlm8uIpKVV3yurmEXB_yNUfM2NKTFV95dU,2477
|
| 480 |
+
babel/locale-data/gn_PY.dat,sha256=tArgCo85T_BUNmPc4sXVRz8X5wcHJmBS6XP0r8dPgA0,635
|
| 481 |
+
babel/locale-data/gsw.dat,sha256=4gln_9GJcSqf88ispORVms2o4h5fNpzTWfWHLR_gKVI,95381
|
| 482 |
+
babel/locale-data/gsw_CH.dat,sha256=fQlRCd1MJ_gI6rcnkrU-lUE7ZM4syRLh-suMRT0DCOk,654
|
| 483 |
+
babel/locale-data/gsw_FR.dat,sha256=vHNQ1q9Zyf6xLfsJpmqpaX1iHerMRt1dsJSPQdQDoTE,654
|
| 484 |
+
babel/locale-data/gsw_LI.dat,sha256=dsg7TA7MECMrbTXC7i7zXIjrEoqrF2jZ_ckGiTMholo,654
|
| 485 |
+
babel/locale-data/gu.dat,sha256=C59KqA2gGarLChgtqh8NnSsEMyU0e6uneyBYex7lW_M,208059
|
| 486 |
+
babel/locale-data/gu_IN.dat,sha256=shXUMyk4ogB8uJPazALoReGyLqRXSYOeVBVMn313_Y4,658
|
| 487 |
+
babel/locale-data/guz.dat,sha256=491I3x6EkMG0roSEKI3sHxtaweXWNXhXyk4vsG-LzDg,15427
|
| 488 |
+
babel/locale-data/guz_KE.dat,sha256=Uz_x0_YFKJHDkSd46SvuIfO7W0c-uqYnasmmLNib3WU,636
|
| 489 |
+
babel/locale-data/gv.dat,sha256=Ye3v_q7SrnCeiOVw1r7NRcTtUZ3RwOr1ZKs6skxYTos,3960
|
| 490 |
+
babel/locale-data/gv_IM.dat,sha256=bXOsSoV303kSUECHz2xd5HhASRI-XCjqjxnxpk0Bt10,634
|
| 491 |
+
babel/locale-data/ha.dat,sha256=iwVO6DmNPOhU77raO_7PCbN3pc5D8DBO5v9W5a_dcPc,144242
|
| 492 |
+
babel/locale-data/ha_Arab.dat,sha256=AUoCyyrZDTrf5SEZ2SRizimC11NMSCyonIkMRer1PxY,2197
|
| 493 |
+
babel/locale-data/ha_Arab_NG.dat,sha256=oYJYqTkaDX2p4IJ9j3sEJT49dcVn_f9JyjO0rUJTmAc,616
|
| 494 |
+
babel/locale-data/ha_Arab_SD.dat,sha256=7DD6pzCmpEdjwbTMAbAb_vJey6Qh0tIeSs8LjEpJxBo,678
|
| 495 |
+
babel/locale-data/ha_GH.dat,sha256=Cwfuh0nEMJu4LGZmdOXJHp_5fZRdpTIODJ_Tpd83uPM,1231
|
| 496 |
+
babel/locale-data/ha_NE.dat,sha256=udCyUBXGb43G6FYfwxQQKecmQVZxLfcssIa6OR1Dlgg,677
|
| 497 |
+
babel/locale-data/ha_NG.dat,sha256=oYJYqTkaDX2p4IJ9j3sEJT49dcVn_f9JyjO0rUJTmAc,616
|
| 498 |
+
babel/locale-data/haw.dat,sha256=aNXNxqponTYIxzV21MX0jIzG73qbhbNO6px2WGael6o,10375
|
| 499 |
+
babel/locale-data/haw_US.dat,sha256=W2qJBTNdETpoN-Ue0UYbqyblj-gIbQNOUMr01RwJ2fw,654
|
| 500 |
+
babel/locale-data/he.dat,sha256=H_zJD_Bm_2rX9jpaIj1kEyLiLya0SUnCy5rKc1acG1k,220681
|
| 501 |
+
babel/locale-data/he_IL.dat,sha256=KpQ8sod_QOZ94Tr0tfhlATzVVsrqXck6eq7txoQgCbc,678
|
| 502 |
+
babel/locale-data/hi.dat,sha256=U7T-3Y4V4VG_vmcQ6kts3WPihMpGw40sGp3E5jA4AGw,221695
|
| 503 |
+
babel/locale-data/hi_IN.dat,sha256=UMkxSHgYSdX-hPgYa7rOOzft7xtJwcM0m5nTphUe9xM,658
|
| 504 |
+
babel/locale-data/hi_Latn.dat,sha256=XzqERbLd8MB2Ij2JKJss4fdmflzBTam46r4KMcHMD8Y,30724
|
| 505 |
+
babel/locale-data/hi_Latn_IN.dat,sha256=UMkxSHgYSdX-hPgYa7rOOzft7xtJwcM0m5nTphUe9xM,658
|
| 506 |
+
babel/locale-data/hnj.dat,sha256=ryXdpBMEUzFyZ_u_YiqAK689QOsEuUO_Auyuhty_4jY,2117
|
| 507 |
+
babel/locale-data/hnj_Hmnp.dat,sha256=6GekZXtZVXtGcI_zk6NqXq3WxMnOx83IpRlJOyUws6s,746
|
| 508 |
+
babel/locale-data/hnj_Hmnp_US.dat,sha256=OydEowg2bNVks5nd5ij7ZJqqQT0ztYv4HL1ZZ4gNajw,654
|
| 509 |
+
babel/locale-data/hr.dat,sha256=O-Jd2Vi7MvmUllVpIGDkOQ1MnzOgwiEqj8VubeyCfBU,206763
|
| 510 |
+
babel/locale-data/hr_BA.dat,sha256=E_S8FRdn0yszTWFg9RlqTV5zEwCc7-qtod45Ud8LHyI,1188
|
| 511 |
+
babel/locale-data/hr_HR.dat,sha256=PqaNYKNdTFgfgmeiINdYp2d3q8qpfkCUs1y4ZHmsphA,635
|
| 512 |
+
babel/locale-data/hsb.dat,sha256=jtfwfxqNi6lFzoU55G4BV7JGmOtgvUYkuhmcYt7qIow,205686
|
| 513 |
+
babel/locale-data/hsb_DE.dat,sha256=_ELT9KBswSqeyiwbcsP9nFY793FE8PQzEu_2w78Amro,654
|
| 514 |
+
babel/locale-data/hu.dat,sha256=VWkcghndsiuQ4pwZw-WRc_d_XpkUSPE80VgvEVh6mZw,146536
|
| 515 |
+
babel/locale-data/hu_HU.dat,sha256=r3RZskHfUdk1Ba226wqBHAoRMXorlh-IkWLlnY_mBTs,653
|
| 516 |
+
babel/locale-data/hy.dat,sha256=0CIp6tWWQPwJ2SLF95YSa3wLbziQFmvp0nsDt5aihnE,196632
|
| 517 |
+
babel/locale-data/hy_AM.dat,sha256=r1Bb6WWX2QxVlLP5vRVgox0HgoDOosA-h3oYKLeZMIY,635
|
| 518 |
+
babel/locale-data/ia.dat,sha256=KhNLukQg5S3nN0GQV6RxdNZlDWdxtUqEWfzzv2H4CYU,132338
|
| 519 |
+
babel/locale-data/ia_001.dat,sha256=fzAkHPu7PNj2TOl-kQcJLIdlEK6z-KfVFUVcy-YF5Zg,941
|
| 520 |
+
babel/locale-data/id.dat,sha256=Unv5Q5BVzZezU8hrsEvpmH1Q36Q58Q9Y_XTs2EjLVlA,126759
|
| 521 |
+
babel/locale-data/id_ID.dat,sha256=GvwO35RP_Y8vswE60ItYMQa7XUOBXGLk8tvL8kSJkY4,635
|
| 522 |
+
babel/locale-data/ie.dat,sha256=kNcl9nzw83YAf4Q8joB9_PdVTHqalXnCps8n_t8y12g,77877
|
| 523 |
+
babel/locale-data/ie_EE.dat,sha256=93dmapYNE5HEAfIRwL_HjNV4fpCJhy1CseggbriCXL0,653
|
| 524 |
+
babel/locale-data/ig.dat,sha256=kmBlr836JEswt8KrXq556Jtgy5MCEt-lUkZKHrsCDtM,67948
|
| 525 |
+
babel/locale-data/ig_NG.dat,sha256=2MR603ed1L8Y_aZhXPk7K7J8bgQPE4xvvpn8R9Jodiw,616
|
| 526 |
+
babel/locale-data/ii.dat,sha256=aW6X52tBzuJoRwzPSvsnNrnDQV1PwzAXH2awzOTwNt8,3903
|
| 527 |
+
babel/locale-data/ii_CN.dat,sha256=Vr_Oe23kFnz-EDfl7XeDv6GeTY0LSK-VV6UJpzU8yJE,635
|
| 528 |
+
babel/locale-data/io.dat,sha256=laqBHV7QB933VjLibEOmRezXV9StwhKVzKvWp8e62YA,932
|
| 529 |
+
babel/locale-data/io_001.dat,sha256=T6zZvvSVOcdpy3fhXbdPAWmHCvDTluick2U8_hUDu2E,912
|
| 530 |
+
babel/locale-data/is.dat,sha256=v-E-uaQM3_QL-i7r0B6TngpAEU715Ri6ufhBGvB4lhU,162814
|
| 531 |
+
babel/locale-data/is_IS.dat,sha256=f3tUj_oYhQ6_tGnn8yda4PZfqChiHmcZXo_nMDCtzSQ,653
|
| 532 |
+
babel/locale-data/it.dat,sha256=PVdPFJYnAZZWl04sizM3mmQjY2NLaCM-Igz4ZPvj4I0,173370
|
| 533 |
+
babel/locale-data/it_CH.dat,sha256=Tvtge1s4BcbCeKJmPBiSbtbf_qv8wrw3Eb4Dc1sF3dE,2942
|
| 534 |
+
babel/locale-data/it_IT.dat,sha256=-e6EK0A6gEd_G4_BHlmd8_caQ-k_JrEemNgdA0czhsQ,653
|
| 535 |
+
babel/locale-data/it_SM.dat,sha256=xjE63TohE8bjkNiOh-BhOkuB9YWpQ0n2rrBMJoAql5E,653
|
| 536 |
+
babel/locale-data/it_VA.dat,sha256=wwsl_eAmNu9m2JPZnpBwFVh4gsk5AM9lSx8UAXhrMlE,653
|
| 537 |
+
babel/locale-data/iu.dat,sha256=vZIG1AsqwcrTA6zfwBeQydVAn5qDQXT8yTK8wvbaVAA,3209
|
| 538 |
+
babel/locale-data/iu_CA.dat,sha256=C449KxuskTW8w7z56Vv602QRYsQ90O0WbazR7VqlDa8,635
|
| 539 |
+
babel/locale-data/iu_Latn.dat,sha256=oYsdWLomYvVJg6kIQIKYOdSGWyrEHftc2U9bZ0sHFD8,904
|
| 540 |
+
babel/locale-data/iu_Latn_CA.dat,sha256=C449KxuskTW8w7z56Vv602QRYsQ90O0WbazR7VqlDa8,635
|
| 541 |
+
babel/locale-data/ja.dat,sha256=OFMYeLhq4eKQzg43B925rpVwlzz57-hGQXmw8FPzzfs,179929
|
| 542 |
+
babel/locale-data/ja_JP.dat,sha256=o2pbFmlkEZjV7CHE9cYENYVv2kQA8texhNDhEecgQ9w,635
|
| 543 |
+
babel/locale-data/jbo.dat,sha256=2eB9ymOoFb8abB-v7ISAGcAg4HEEMmpuseHIXFgtqkU,1008
|
| 544 |
+
babel/locale-data/jbo_001.dat,sha256=wwLKEXJOwULYD-q92kQdvpiwW2fgis5YcsP2mT4tnT0,746
|
| 545 |
+
babel/locale-data/jgo.dat,sha256=9X63SqWqQ7TK7Z2RKaQwFBP9sMog_4cQN5Sr_KBlyL0,9031
|
| 546 |
+
babel/locale-data/jgo_CM.dat,sha256=1lDyjZLpK6fS6oSpfnVLdYd2IUgGlUQfF53BDdK7TLY,636
|
| 547 |
+
babel/locale-data/jmc.dat,sha256=lRstulkfCj6kDI8VLH_3GS4awAqVsylMU1hvvWH7kJg,15374
|
| 548 |
+
babel/locale-data/jmc_TZ.dat,sha256=fODp_OsVygbH0UoRsx4HHcXrde02bRKc-hy80sDkcK4,617
|
| 549 |
+
babel/locale-data/jv.dat,sha256=khlf5qW8LkZemmeBRayezqhQM0D1isPJ9sGuL5sZbiU,102777
|
| 550 |
+
babel/locale-data/jv_ID.dat,sha256=G3zTSeqWMngemp5lAcghudTcv-i8egZS12P0-T1DNXw,635
|
| 551 |
+
babel/locale-data/ka.dat,sha256=7Gemzr5j2DZfKoYiK-MA0FC7r-qi09gi1E1jSujQH24,230443
|
| 552 |
+
babel/locale-data/ka_GE.dat,sha256=zzw4NZBk8dsHIBeEzB3Vtf2_1nC4DhqblLoBUXfNHN8,635
|
| 553 |
+
babel/locale-data/kab.dat,sha256=M2sMAMovKdgT386jOjCR2ayT6qrULaeJMrklk2o-4eE,121944
|
| 554 |
+
babel/locale-data/kab_DZ.dat,sha256=v6fd0kyletm1kfN2ibSUh6oddckpLHjPd_qrq6FQpd8,679
|
| 555 |
+
babel/locale-data/kaj.dat,sha256=tKKi4eYHT0zEJLSHi2DefEGyTTu4RCKpnANu7NQhAPg,2696
|
| 556 |
+
babel/locale-data/kaj_NG.dat,sha256=1RODrBAPxCrrlTgfhpdz-VxQkTdjJEJYHaJEsOgQsNk,617
|
| 557 |
+
babel/locale-data/kam.dat,sha256=br3FOMP0rS2tAq1tSXwYq197v2XXHqWtX_TM-39QP1k,15506
|
| 558 |
+
babel/locale-data/kam_KE.dat,sha256=8AQQhHQdaI4rBKXfTivg884XIDfZlbDEQM28KwvB2Og,636
|
| 559 |
+
babel/locale-data/kcg.dat,sha256=dOZR1bP8sPbhD2Mk496Twz8MOivgGQoliuDMAWSO9fY,2549
|
| 560 |
+
babel/locale-data/kcg_NG.dat,sha256=jCObRZa-t9Khgx_M8ps0PLbeit7rPCFtHeCOhtfCnOY,617
|
| 561 |
+
babel/locale-data/kde.dat,sha256=cFVUYeayn6-kMX6PwQQ3J8rpHMql07_V7lSluInC2x8,15810
|
| 562 |
+
babel/locale-data/kde_TZ.dat,sha256=2sfb3gejYM15YtZeRrc0AJgdaJhqgbVJ9c9yF9SlJmg,617
|
| 563 |
+
babel/locale-data/kea.dat,sha256=2hwvU6X73RqLo3d97sgxD8ae-jwTlQi8OTt7GruG72w,76282
|
| 564 |
+
babel/locale-data/kea_CV.dat,sha256=LyzxPE6yP0f9hdD4uvu8CvEp8nmcmRDVuRI8YxBQ5wM,617
|
| 565 |
+
babel/locale-data/ken.dat,sha256=PMrEuqYRQIhbpP2dPowHOL_NKKFpEBd8qNUV_NpZnDw,719
|
| 566 |
+
babel/locale-data/ken_CM.dat,sha256=jNEojAAtQqJMkEq84kxHU5hGOVQCOW_hnGQScxycYMo,636
|
| 567 |
+
babel/locale-data/kgp.dat,sha256=_G0bzcJftHdyZArpoUFbhiPBv-pC-CLXpEgpzMuQDic,185185
|
| 568 |
+
babel/locale-data/kgp_BR.dat,sha256=FNSYAqPhkzoZzholxTydgasgkuw7jgxCfyKDbeRiLt4,636
|
| 569 |
+
babel/locale-data/khq.dat,sha256=OcW4Zprt-WlTePo7DzquB-yS8vwfPqjaijpkrX5l75w,15753
|
| 570 |
+
babel/locale-data/khq_ML.dat,sha256=ViqThOcZTHZBtebV8LJY-DXdWVX5jAR5pdlBrTKws2Q,617
|
| 571 |
+
babel/locale-data/ki.dat,sha256=vffpb6Wy7TN__hZQH1SJYi81AxamhBnEK_XBCiF3OFc,15451
|
| 572 |
+
babel/locale-data/ki_KE.dat,sha256=PNoxhP-WLxW2vH3fS8N9Nuy0tVimMP-ZAaCfLfnfDN0,635
|
| 573 |
+
babel/locale-data/kk.dat,sha256=4KyGfHeI2N1NQnbEmGXD2K_QlKCP0qsyV085FXVIZpk,199845
|
| 574 |
+
babel/locale-data/kk_KZ.dat,sha256=eaQW7Va1z2L34hs-D9QgrmyvOo4Lpy2uxxvxms6kL4s,635
|
| 575 |
+
babel/locale-data/kkj.dat,sha256=IYeF4Uoeb0kfxooFLFcqmdIwGWbWh0MUfBpztTxWFEw,3373
|
| 576 |
+
babel/locale-data/kkj_CM.dat,sha256=gqHwzVPG_Lo3svaIVe0Kfhj4DaKtstOxJJhUGvvpSbI,636
|
| 577 |
+
babel/locale-data/kl.dat,sha256=D8SSjxLZliXOxyTxpC1x7jYbFQn4WbSV3lfotFFt3Jw,47570
|
| 578 |
+
babel/locale-data/kl_GL.dat,sha256=c49k11GtBG8-vExsQNo_d1pFaQm0LYmXl7QcMSTEApA,616
|
| 579 |
+
babel/locale-data/kln.dat,sha256=pldtRERWUhEOA85_zeFJfshpMl6gtgdELjGyNGtJzOo,17427
|
| 580 |
+
babel/locale-data/kln_KE.dat,sha256=ZhkKgZ2lTdWAvWVOJEFlp4ASvjk2hcyTc2_P9s3mykQ,636
|
| 581 |
+
babel/locale-data/km.dat,sha256=bCT9pWawNPTFUhR4iCRikJRZN6j4p2YIxGnJ-63v6Sg,176881
|
| 582 |
+
babel/locale-data/km_KH.dat,sha256=bnykdq-RYJ0ZwajV5dFBVtM4anVkLjXutFdUxKByQ2o,635
|
| 583 |
+
babel/locale-data/kn.dat,sha256=OKiR5AjiBlRhdNZyZ6vx6Ron0UGPIetPhZmkP_L_lLI,267086
|
| 584 |
+
babel/locale-data/kn_IN.dat,sha256=rx1LJYeAP8xU6MIU3yhHLuije5OQWL_wzz5glztIdi0,658
|
| 585 |
+
babel/locale-data/ko.dat,sha256=T-jwcemgGQ44axfpu-H44Ld6QQbqdDkGKoTkw1E596c,153715
|
| 586 |
+
babel/locale-data/ko_CN.dat,sha256=U_q1api28ucaC-ABOBb822CgSq4nywhMN02uS7TCREI,1187
|
| 587 |
+
babel/locale-data/ko_KP.dat,sha256=BCMOKQSzXNnjAUWfZZ8pbFoSDBed9tnnatyqIePNWio,816
|
| 588 |
+
babel/locale-data/ko_KR.dat,sha256=CJqKij0oULIeCIG8McohdnhEsfJxUwmJHOpJY1bLrNY,635
|
| 589 |
+
babel/locale-data/kok.dat,sha256=4vKMh7ioemnZTtaP8su_NGj9Gdq63luJ40vnYYeu5JQ,179618
|
| 590 |
+
babel/locale-data/kok_IN.dat,sha256=GiRy8Q6VCULzgIxNPFEZzABKOg13Un-DblBwXnBSeEk,659
|
| 591 |
+
babel/locale-data/kpe.dat,sha256=AHR_ZG1p518D4yulM_cs5E58iMsVXKk4Hi6k0V0IDhQ,1331
|
| 592 |
+
babel/locale-data/kpe_GN.dat,sha256=7eabSFmszupn0IlzP6TRg1-7FZS9AB3JdBkDgJtIs64,1210
|
| 593 |
+
babel/locale-data/kpe_LR.dat,sha256=4O2gzHn_orogC0qOiIyIox-JjyA73hEAe_fZ3Fj5tYc,617
|
| 594 |
+
babel/locale-data/ks.dat,sha256=joBuys-bh10Vy-5JLnie0hbWOHZRWJjFUT6BdFtc_k4,112809
|
| 595 |
+
babel/locale-data/ks_Arab.dat,sha256=fzDL_rCiC-BqymPhF6GBX-d5uVkvZCE4e8JS2L8cjRU,850
|
| 596 |
+
babel/locale-data/ks_Arab_IN.dat,sha256=-OE8PBigMDH8zQrxiaffmabm91Mi8-OVdDR2JEK8xPA,658
|
| 597 |
+
babel/locale-data/ks_Deva.dat,sha256=IRxphREiPFFgKiGhxdh4S7p2XZaamfDtOf-HjJjGaNw,12516
|
| 598 |
+
babel/locale-data/ks_Deva_IN.dat,sha256=-OE8PBigMDH8zQrxiaffmabm91Mi8-OVdDR2JEK8xPA,658
|
| 599 |
+
babel/locale-data/ksb.dat,sha256=vbB4JVStmpZIu9_vi6f9-Dt40sN2wPvF9Y2JzJJ9oEY,15356
|
| 600 |
+
babel/locale-data/ksb_TZ.dat,sha256=PvWBMUhpMhV27zE9BCEJW8oMqRXWK-6VwmSsXZDMTPY,617
|
| 601 |
+
babel/locale-data/ksf.dat,sha256=IIgvqtnlTxMmLSk38JyZe0PA5gLEX86ZDcaVIULp7Zc,15952
|
| 602 |
+
babel/locale-data/ksf_CM.dat,sha256=0OOsuUS0S_AUxUPySFQOZVbPcB3F2I4yzHZm63YypDU,636
|
| 603 |
+
babel/locale-data/ksh.dat,sha256=opXVQ_gq8Hc0YqkIkXi1aQ4Wz5EXsbxauqcvRnjaRQc,76900
|
| 604 |
+
babel/locale-data/ksh_DE.dat,sha256=EhgYIJQaC3LGiWrcE2sdfUC8LOWJnciWORi_yoRkOvw,654
|
| 605 |
+
babel/locale-data/ku.dat,sha256=Lepr0OmDMsi8_uMmWizxi4yOt79YkBQ-HpwDFCLOQtM,93449
|
| 606 |
+
babel/locale-data/ku_TR.dat,sha256=LoNyoL-poYXgqejDzB9-zI_0TIJF3amwyzcs6UnHUII,635
|
| 607 |
+
babel/locale-data/kw.dat,sha256=x5JFxfv4DvLd5Xnq5J7JlbcffhYNXwIn5-Jp3Q5QV5A,7242
|
| 608 |
+
babel/locale-data/kw_GB.dat,sha256=ol7LWhJJFNoNkFEjtk4x1PpLkML9UbuVmZAuG47LokY,653
|
| 609 |
+
babel/locale-data/kxv.dat,sha256=v-O6rBAWcsgZGyocZhppmtoY3d9Oc7XXPAx0yVs2UtY,60739
|
| 610 |
+
babel/locale-data/kxv_Deva.dat,sha256=q9rC5dSRyj-XQuUQBSkfx5UJU9n6al7zMhP_hTIrlTY,2900
|
| 611 |
+
babel/locale-data/kxv_Deva_IN.dat,sha256=Z43Yc1G4Bsmu7KukFfgXfIl1Cq2Rqa7RQQNYygE5Aak,659
|
| 612 |
+
babel/locale-data/kxv_Latn.dat,sha256=XqtuF9yh0tBrDPoRpZj_1Mw-QUqt98klOlgZXh7qPus,693
|
| 613 |
+
babel/locale-data/kxv_Latn_IN.dat,sha256=Z43Yc1G4Bsmu7KukFfgXfIl1Cq2Rqa7RQQNYygE5Aak,659
|
| 614 |
+
babel/locale-data/kxv_Orya.dat,sha256=JmvtaCKhlTpU7653x4wyrXcK_CNPoSceNczXA3fEVts,2888
|
| 615 |
+
babel/locale-data/kxv_Orya_IN.dat,sha256=Z43Yc1G4Bsmu7KukFfgXfIl1Cq2Rqa7RQQNYygE5Aak,659
|
| 616 |
+
babel/locale-data/kxv_Telu.dat,sha256=AiqIMQZ0f_GeHwb_lhT5Ytm_X3ijs86Uj348WBNqiPQ,2657
|
| 617 |
+
babel/locale-data/kxv_Telu_IN.dat,sha256=Z43Yc1G4Bsmu7KukFfgXfIl1Cq2Rqa7RQQNYygE5Aak,659
|
| 618 |
+
babel/locale-data/ky.dat,sha256=Ipeefx19nS2_JSpe71YlV9nJgjSZplpYyy_AxrUTnyQ,179583
|
| 619 |
+
babel/locale-data/ky_KG.dat,sha256=CdtjRR2iZgfG5pdz13MX-EHTDtN6BdLeZwGCmrZnrkU,635
|
| 620 |
+
babel/locale-data/la.dat,sha256=0TAdiOxADg0C2AeIj5RRxiLgMbVO-PqRMf4GAm1M4dE,33982
|
| 621 |
+
babel/locale-data/la_VA.dat,sha256=dhULocaXyJGitrljd1w688DTmezcmmY8YcoKsT30n34,653
|
| 622 |
+
babel/locale-data/lag.dat,sha256=mtjtyLHLCfoUr4STtBqLXOxLnZ0igugTC9fZiyJZk8E,16281
|
| 623 |
+
babel/locale-data/lag_TZ.dat,sha256=LlfEls8DDvoVp07MYnFdLBPUhkJs2kzwUDk45BZIO-g,617
|
| 624 |
+
babel/locale-data/lb.dat,sha256=lDxRG7vZlehM2u8g-VlZv_o2NEl92trLZ17KfQQ7b_c,136179
|
| 625 |
+
babel/locale-data/lb_LU.dat,sha256=s0AY2-F7BqA4tMcRPjCfbzbXRbHsKnD6uIQGSkulCT8,653
|
| 626 |
+
babel/locale-data/lg.dat,sha256=LnMo-qAcWHbbAuRmCTz4_nBGHgUx0aojWG7C8TFn__Q,15834
|
| 627 |
+
babel/locale-data/lg_UG.dat,sha256=nyn_HKdBHGkHlbjlDX28L5Z9k59MKFqvmVL3vg222s0,639
|
| 628 |
+
babel/locale-data/lij.dat,sha256=2rR38wXownPXM-qeI4rIH4I8YY2sJEQHTVgAjXC5_yI,130073
|
| 629 |
+
babel/locale-data/lij_IT.dat,sha256=rtPerU7ltwkHHc7HErfwJfX8TDSCpTHvBzwKBdSt4x4,654
|
| 630 |
+
babel/locale-data/lkt.dat,sha256=U_yXNWWJkqlepaZ9kS-FVOAHQKVmc0vhwgWgFRzXnqc,11180
|
| 631 |
+
babel/locale-data/lkt_US.dat,sha256=ywWg9m80tNjumAxGNrBwYhXhc28rC4OSdyvkdXAKs5Y,654
|
| 632 |
+
babel/locale-data/lmo.dat,sha256=GYoR98Ap5hosG9bfENEA3sCkR-msF_KvxV2nLydjs9s,1659
|
| 633 |
+
babel/locale-data/lmo_IT.dat,sha256=Xg4Qvye_hPNJLCTwoBuRMAvhtjQb8VlD9SaH_5hVG9s,654
|
| 634 |
+
babel/locale-data/ln.dat,sha256=OHqUbo7M-600CtpOUNqq3B-Tt0_L3c2GgyR2xZhuMmE,23909
|
| 635 |
+
babel/locale-data/ln_AO.dat,sha256=VNcFViSaGw3f92D60Uk7vxQ8i6Q9H1FD6paDpJh-r4M,636
|
| 636 |
+
babel/locale-data/ln_CD.dat,sha256=Ao_lUWuswJgGHhVJYs2_Z8LyN4iqgYsAda8f9UarT6s,616
|
| 637 |
+
babel/locale-data/ln_CF.dat,sha256=g5Jy7ovUkwcn0W5Ov5bu5SBc2iM4SWwUFwtzWzAAb34,616
|
| 638 |
+
babel/locale-data/ln_CG.dat,sha256=jQld0yw63ufWbhlOt81wjf731zZluc2zWc1A65kBlAM,616
|
| 639 |
+
babel/locale-data/lo.dat,sha256=3SkLZq9VnCPX0gOmlrKQ6HKo8yAHZXtPZ5fqjeDqfEw,189461
|
| 640 |
+
babel/locale-data/lo_LA.dat,sha256=gNa7KRGYWI0h0PcHJ35bwnPskILOH-1jLjHCXP85jaU,635
|
| 641 |
+
babel/locale-data/lrc.dat,sha256=Xkf4FRFUnaoasqEtGTiwrYAhXUYvbzb8m0kWE8iMzgU,13627
|
| 642 |
+
babel/locale-data/lrc_IQ.dat,sha256=cy9DO9oAKI51NMitAb2MTbZoxtaAPzaYVGV0-xd0mGA,1255
|
| 643 |
+
babel/locale-data/lrc_IR.dat,sha256=-ca4EmTX5VAi_5tDfimpevJFb-g8vAjgpe_jkDTDZWQ,679
|
| 644 |
+
babel/locale-data/lt.dat,sha256=qQ_HqRNiU2P9B0rGk-r30hbG7aMEAtiQ25eTBih0fgQ,263055
|
| 645 |
+
babel/locale-data/lt_LT.dat,sha256=j8dIQrFc0s77xJ4P-UGiDcaNqZW6CXOEiOh30FemNiY,653
|
| 646 |
+
babel/locale-data/lu.dat,sha256=4TGAGkYbDHz6QAKQHHXoRkl0Wx-0LOiMkTjDgwJq0TU,15331
|
| 647 |
+
babel/locale-data/lu_CD.dat,sha256=K3k0wMpIbjusgPC2W1q2sxyxynx2M78zOLjt4ikcoZA,616
|
| 648 |
+
babel/locale-data/luo.dat,sha256=xJNSb25OVQogO42d-Jy2fR1FzeSfW9Swwt9Wat4EmsA,15201
|
| 649 |
+
babel/locale-data/luo_KE.dat,sha256=jVUd3oO_U7IP6KmvSkVHYNmlCc8_-m2mpJMBaqArSFI,636
|
| 650 |
+
babel/locale-data/luy.dat,sha256=pcTbaSctQyVgVVh4nXoXxMQGZa3Ip7hsfRN096zwEsY,15030
|
| 651 |
+
babel/locale-data/luy_KE.dat,sha256=NVkQAtmDBXUws3KybnM706J3lwUc5fJo-YEjKd1zhiw,636
|
| 652 |
+
babel/locale-data/lv.dat,sha256=K9bh55q8Ilj2_Sp9Sr_HkI2uyJn9ZmjszhivW0rfk3k,201558
|
| 653 |
+
babel/locale-data/lv_LV.dat,sha256=oS9W0pdiTNtMTeGOsef2K7Va2O6k-dQEtN02qCaAoFw,635
|
| 654 |
+
babel/locale-data/mai.dat,sha256=t1nW2nho-fNRIONyfNjUtfrIvnxzTYuOwRl0axBVeqM,96870
|
| 655 |
+
babel/locale-data/mai_IN.dat,sha256=DoclpHa5nlHcAflg286ycOjQ6trZP8uHThzcp37Y91E,659
|
| 656 |
+
babel/locale-data/mas.dat,sha256=xxugbgGc3JxvM2GzV1vmKy1buszviy7NtSH-y6GdMZ4,16595
|
| 657 |
+
babel/locale-data/mas_KE.dat,sha256=zH3Le4j03YNsPjt_-GL5RvPG0znnJKQ3ifbLhMZsoYQ,636
|
| 658 |
+
babel/locale-data/mas_TZ.dat,sha256=VyRJlBqV_fukTqSR9Jxr-PujSA7u-MP9aXrJBVJCKiA,638
|
| 659 |
+
babel/locale-data/mdf.dat,sha256=NQH9Yo77oyvxZj_93XIf0e00JDAoI2ydlCSS3klNgwk,2240
|
| 660 |
+
babel/locale-data/mdf_RU.dat,sha256=sVnTxgzU2rEwl7P4d5UY6XOKv1XUCbtkEQO0cu2OlOk,654
|
| 661 |
+
babel/locale-data/mer.dat,sha256=WFl2qQThWrilUbBaN4UJQb97ZrV3uOB4ZTO9kXsjtnQ,15426
|
| 662 |
+
babel/locale-data/mer_KE.dat,sha256=WqDQTsO6BtbROdcj3p3omUZk8XB6HiJrIlCCj_wLPxo,636
|
| 663 |
+
babel/locale-data/mfe.dat,sha256=n5lJPfd4pjC3xmVm123ivVpjg-WAkLQq9YONw1JlpTs,14835
|
| 664 |
+
babel/locale-data/mfe_MU.dat,sha256=MHUOKiQPHuUbhT6hQXJEkpGDvTUyMV4btJTuiLhJQ4k,617
|
| 665 |
+
babel/locale-data/mg.dat,sha256=9PbZhJ2v9RP2XSzwv7bBPTGlSNYJrUUISNkTwdF1Z7g,18776
|
| 666 |
+
babel/locale-data/mg_MG.dat,sha256=uJbGeEzIn4Rh5Bh4hyV-Hs0_qez9KBeOi4hvfC3zkIw,616
|
| 667 |
+
babel/locale-data/mgh.dat,sha256=ezIhzOd-qzUBRud5ZPjbtBBc_mON2HuKGu_okOahCbk,9753
|
| 668 |
+
babel/locale-data/mgh_MZ.dat,sha256=aFZZ41qtARE6CeecCEx99tzW_fp-XfkAc10wpQ5YeGM,636
|
| 669 |
+
babel/locale-data/mgo.dat,sha256=BqlGtxg-4a58dvrHfOPBeofWni3HlfcEbd-XiTyp0lA,3549
|
| 670 |
+
babel/locale-data/mgo_CM.dat,sha256=Nsp33t4abZsKdDmIgB8tb08OsEh-7JXMY_JKCsd61zY,636
|
| 671 |
+
babel/locale-data/mi.dat,sha256=f5QHS-Kaw4YSM1zRFC6e0GZisad83DDJCE3kZygpnRU,85441
|
| 672 |
+
babel/locale-data/mi_NZ.dat,sha256=RElP_P4F1HDHjSHsdt54vriFcz0TcIeT26pm-_dy-Mk,635
|
| 673 |
+
babel/locale-data/mic.dat,sha256=Sp71dA3ZhTiiPTfk3b0Mm6y6CM0J-mGR0av-psrUGtI,1638
|
| 674 |
+
babel/locale-data/mic_CA.dat,sha256=uZoBvRFux6M40HcGau7E6V0Pyxh45Bxi0SFngOxLWRQ,636
|
| 675 |
+
babel/locale-data/mk.dat,sha256=a4FuErjpuiCvnzgj8cN2F33kBXvjn5amIpklXODmDWQ,215946
|
| 676 |
+
babel/locale-data/mk_MK.dat,sha256=qlI1ZtLgyX2fcYS9pnTa8illdSnPmfNXORjws-H93lc,635
|
| 677 |
+
babel/locale-data/ml.dat,sha256=c4jGsVMGQYnCNa0VVhhZb9EeXqN94Lm1mFsr2Dsp2y8,247142
|
| 678 |
+
babel/locale-data/ml_IN.dat,sha256=VwCnSFs3oh7xo4-nS1HzWj_xICDzG6E-AW0Oxi6Lu08,658
|
| 679 |
+
babel/locale-data/mn.dat,sha256=RvMxMVre2l9ZhDejXF_QLzfjaevxFehzcnAOypDAGrs,183534
|
| 680 |
+
babel/locale-data/mn_MN.dat,sha256=qhJGIDXSglsa3BYCalsusoyiKgOj7PJ90Yi4ET2-nxc,635
|
| 681 |
+
babel/locale-data/mn_Mong.dat,sha256=zqCuL28Sx1DS8LGqtC2nyTCoEpSFpF0vE3wvBxpHK1o,1726
|
| 682 |
+
babel/locale-data/mn_Mong_CN.dat,sha256=WTF89EShdtBd0Vz62erFwl9KTG-GgEyzjjmKWuJCFH0,635
|
| 683 |
+
babel/locale-data/mn_Mong_MN.dat,sha256=QHBN5mnHH0Ke2TY-hcpsdYvxiv2UN86GUPa0nGYJ9Hc,13006
|
| 684 |
+
babel/locale-data/mni.dat,sha256=aS_XIOmHRptFT_dTFuxgTvB2cEPKHJVVM_vtURTFo7A,12972
|
| 685 |
+
babel/locale-data/mni_Beng.dat,sha256=7PTKZT_UE3WNiipyGHnn2SDNFNhAcqHhEJ8T0Y3O7gI,693
|
| 686 |
+
babel/locale-data/mni_Beng_IN.dat,sha256=nAW_LfRtJqC6-ehdC8yyszjhibXqMAXPkuaz8POQav8,659
|
| 687 |
+
babel/locale-data/mni_Mtei.dat,sha256=zdzwNyaRIil7lkjEf6ProQX0nwYlc5VF4r4gHNTUVTY,1720
|
| 688 |
+
babel/locale-data/mni_Mtei_IN.dat,sha256=nAW_LfRtJqC6-ehdC8yyszjhibXqMAXPkuaz8POQav8,659
|
| 689 |
+
babel/locale-data/moh.dat,sha256=FuywEiFRXQe1GUv9zPR15KOsZLr1TykmuglinLINTqE,1316
|
| 690 |
+
babel/locale-data/moh_CA.dat,sha256=AXdrS_As8DrrTGs5IHmQwXoEXndFuoWoTGXPXcL4Pk4,636
|
| 691 |
+
babel/locale-data/mr.dat,sha256=3x0PBCDWlbnp3GHJasQFHvKI61MMZmqCm62AiK57F6g,233393
|
| 692 |
+
babel/locale-data/mr_IN.dat,sha256=HOu9QR1BLbciqF6BeTfWvD0L5Igwv5HrCWu9y_vNns0,658
|
| 693 |
+
babel/locale-data/ms.dat,sha256=0ue11-EgBOw_tlEK675ek8lRks3xzN6-YhEK0wHqFm4,112058
|
| 694 |
+
babel/locale-data/ms_Arab.dat,sha256=9zretwvdo_9N3SIxLKsUtDVNZlmh0OhrPDxmtWqw22U,14359
|
| 695 |
+
babel/locale-data/ms_Arab_BN.dat,sha256=vTEKSh0hjyiWJhf503-fwjADvTCN0AqRSzF6muL52JE,1335
|
| 696 |
+
babel/locale-data/ms_Arab_MY.dat,sha256=w6ZZrz3qEmnsLsWtJA8rTohqF1cxctkzSj4WN0XHuHE,635
|
| 697 |
+
babel/locale-data/ms_BN.dat,sha256=vTEKSh0hjyiWJhf503-fwjADvTCN0AqRSzF6muL52JE,1335
|
| 698 |
+
babel/locale-data/ms_ID.dat,sha256=ZPgnDJgiycDHGZnN3Eg7OgZp1jIYtiZzMqm9f3LOtR8,3440
|
| 699 |
+
babel/locale-data/ms_MY.dat,sha256=w6ZZrz3qEmnsLsWtJA8rTohqF1cxctkzSj4WN0XHuHE,635
|
| 700 |
+
babel/locale-data/ms_SG.dat,sha256=jsfNag5WQWdejzh5hayA7_-IbY03MUVPAPDHUJyCZRg,654
|
| 701 |
+
babel/locale-data/mt.dat,sha256=eiM61blsBcXdN6d7TvQc8xhJf3Z0zzALPX3usMzIptY,49438
|
| 702 |
+
babel/locale-data/mt_MT.dat,sha256=L5q5LizZQL0-FLj2U-wn2YhkpL3p7ZvjdyAvH1wwUG0,635
|
| 703 |
+
babel/locale-data/mua.dat,sha256=N4zi8XyQdW_TmszNHQyn4zmia-MpCNWx_Vudoaj075Q,15861
|
| 704 |
+
babel/locale-data/mua_CM.dat,sha256=Ib4K67KfndwGsoZDH0ehHA-F7V_SUj7q9VsK2juzaIQ,636
|
| 705 |
+
babel/locale-data/mus.dat,sha256=NB9m6wsHVdyyiTRuXSodJSiM7iGwTalcKGx5NBQ12c4,2719
|
| 706 |
+
babel/locale-data/mus_US.dat,sha256=xcd4KKUIqBwSefSC0GGSDkvXL46eDWgWolJsGuSf654,654
|
| 707 |
+
babel/locale-data/my.dat,sha256=5bW8J5P3QQelfYzG4mdPijxlFGZouoZ2G93lAqzvUbc,183633
|
| 708 |
+
babel/locale-data/my_MM.dat,sha256=l53-D5YL-BbmLZYveFV2ISa4NcrSwTfKsRRc41Jd42U,635
|
| 709 |
+
babel/locale-data/myv.dat,sha256=RT4fCn51uxkmd0tUJICIOsNVmhJzdfGR_D9UKkqmbNE,16956
|
| 710 |
+
babel/locale-data/myv_RU.dat,sha256=sncxwOpjfFkRASKHMP1ytKcjpF4w4GjU_JEVqXv84Tg,654
|
| 711 |
+
babel/locale-data/mzn.dat,sha256=8Y5VGlzCxKXzBP5iFsyflLZSS1x0_3T8sqbwivfU45s,46144
|
| 712 |
+
babel/locale-data/mzn_IR.dat,sha256=fjN1ek2fAzZyzFJpjX_MIc5oFOEqj7LS_SNdBOQS9ZY,679
|
| 713 |
+
babel/locale-data/naq.dat,sha256=N07nsBSSEuNZ4feWvo7b4YWwbgjBwlxG9653O-OlhmI,15797
|
| 714 |
+
babel/locale-data/naq_NA.dat,sha256=e5gAIOo7le-dVOAX_k2OW6gEyVfEUxcYDUJu_MBDY5M,617
|
| 715 |
+
babel/locale-data/nb.dat,sha256=-bGHDSonSEdqfb2PxNC1_3jOHELm3CwV7xzEtpmWZUE,1330
|
| 716 |
+
babel/locale-data/nb_NO.dat,sha256=J1UiN-AG900acMz4p0fBHtXDpS0HD6uGAi7gg9gOrsY,653
|
| 717 |
+
babel/locale-data/nb_SJ.dat,sha256=XcK9_nKriUY_4k09kmgJalGTls-e5-YS-MCPEKLP8vA,634
|
| 718 |
+
babel/locale-data/nd.dat,sha256=ITmP8mLDb63INBKlxe3yCZqRbvL83DrVBkIIAA_YjmA,15730
|
| 719 |
+
babel/locale-data/nd_ZW.dat,sha256=KpZHrPr_0Ru0t9ojSK9ZiqGZ6-rSpvA7cX9C483ocRk,635
|
| 720 |
+
babel/locale-data/nds.dat,sha256=iCvP9XTB5zpcCnzpf5HzScKmbf_KgkZU5ROpzFsWgvk,47955
|
| 721 |
+
babel/locale-data/nds_DE.dat,sha256=Qmh5DjX65W58jXXXX3pxfxS_HVTJVavMspBPdph9sfc,654
|
| 722 |
+
babel/locale-data/nds_NL.dat,sha256=E_EO3ylaBjJNThr211Yzefh5DRbkEFFVpbBMXIQ4U1U,654
|
| 723 |
+
babel/locale-data/ne.dat,sha256=ItwdXZfrWQnfrKi35g7Brziq0ixgK_yEj6eKaNSs5AY,209840
|
| 724 |
+
babel/locale-data/ne_IN.dat,sha256=SFloADZtyb42wygQmrMy7yx-aADGQECZJUey796oqnw,1292
|
| 725 |
+
babel/locale-data/ne_NP.dat,sha256=LGc7Z5TRi0HRNQdY4bqPitV73gzTPWLd_g-6aPyvryc,635
|
| 726 |
+
babel/locale-data/nl.dat,sha256=ayYIiktfvy8j_bz1eiSn6qahdmL_LCHbkklrBX6ITrE,150040
|
| 727 |
+
babel/locale-data/nl_AW.dat,sha256=HYycPPe5HDhuP_zN89ysXR2AqjIbx_-XB2n0-TUPhxw,638
|
| 728 |
+
babel/locale-data/nl_BE.dat,sha256=Yl6u2wQU62h3hvXobO9r3sXdrq2d9pans2N_wImwRDs,1910
|
| 729 |
+
babel/locale-data/nl_BQ.dat,sha256=lZQzrmWsFTpiWwT9l6FakrNoll3QNP3drIMcxFkAy6Y,635
|
| 730 |
+
babel/locale-data/nl_CW.dat,sha256=doEeLSsQVaSocP4jr5LxNrT5luSiG4hkgsMvoYjJBtY,638
|
| 731 |
+
babel/locale-data/nl_NL.dat,sha256=bGo4nyjhqe1VtDHlP5EUmNkBKsViUSiH3h_ikXcPuRo,653
|
| 732 |
+
babel/locale-data/nl_SR.dat,sha256=d-YXA5QA5b2Bh-WhxNTkyKQ4ROhuEg1CeGN5XmzWcZM,696
|
| 733 |
+
babel/locale-data/nl_SX.dat,sha256=ciTQIntv0njAJGIUENzo6stN8yarfh-eBpmEzxmpJbs,638
|
| 734 |
+
babel/locale-data/nmg.dat,sha256=NEWUb0RI43oeWByH9l1FvrLDvVQY6501jviEYmM_CCs,15468
|
| 735 |
+
babel/locale-data/nmg_CM.dat,sha256=0A-cVUgt1l1ITnPRdcgWiQ68ZGqHDYd-k2wSc_nXnMQ,636
|
| 736 |
+
babel/locale-data/nn.dat,sha256=rBN4KUSN70DOyT6WQFdwhRpcI4ZgYX_SD8ACJiUibEw,64906
|
| 737 |
+
babel/locale-data/nn_NO.dat,sha256=98eWK3CBq5T_dI4a6dQH2TktRygMH0EnpO1EO7w8lVY,653
|
| 738 |
+
babel/locale-data/nnh.dat,sha256=cWTTqJEXln6pUYON7H4PRrYr_uRWktSzcLGCC8jnTno,3530
|
| 739 |
+
babel/locale-data/nnh_CM.dat,sha256=dt9ZNHX5ZQo-kcyT4-mVRCUiuzL-H2A9e0s0JrHwZts,636
|
| 740 |
+
babel/locale-data/no.dat,sha256=Sr8pUiB8FyrxrOi1UkwjIsNyvjxti9aB8A79eyP54LU,190899
|
| 741 |
+
babel/locale-data/nqo.dat,sha256=DlEP7PTorsKFXddvtsGAg2YrD4cOUSZ6r3_XZcwtQcc,48763
|
| 742 |
+
babel/locale-data/nqo_GN.dat,sha256=3eOSTBaZM0RNLUDZFr__KTR_9iZoGUFq9M6bhtmHjcU,617
|
| 743 |
+
babel/locale-data/nr.dat,sha256=ZHIIC8BaR5XBmnULOTfmAYzXmqImq5QmELqbFPKKQJo,2167
|
| 744 |
+
babel/locale-data/nr_ZA.dat,sha256=e4_czqcyMye0qthJd2hzn_9inTS8WjjbFOzRJ3wAS24,635
|
| 745 |
+
babel/locale-data/nso.dat,sha256=xSdNtL46mWtkwSBP-Iqhnd27A6Oe8Hd7_J7ue5yhz4U,6281
|
| 746 |
+
babel/locale-data/nso_ZA.dat,sha256=TdOqVTzKNigLD6zOPR7W7QHT-Aw40ylsUE7bmMwgaKY,636
|
| 747 |
+
babel/locale-data/nus.dat,sha256=4G1Wwsq1yWIew4nA-QBo2j8LmbqBTRZ0gCU0LYLUSUk,8215
|
| 748 |
+
babel/locale-data/nus_SS.dat,sha256=Is_mWvnSS7j05Vk9RHcCfyLOdhOeOWRqgXDf8FGNEJQ,617
|
| 749 |
+
babel/locale-data/nv.dat,sha256=7CBom-BDX6Wk2o878hmZ8DBY8QAS8Z99ExdmdVpq-vQ,721
|
| 750 |
+
babel/locale-data/nv_US.dat,sha256=ak7j2GDaOMbAAmXQhfC9PRM8E9h_hJZL3UDqxqjCtoI,653
|
| 751 |
+
babel/locale-data/ny.dat,sha256=XXvyFcRnNcH9KcAH1K7jzS5xLFsXMlXVW3yowhXPIO0,2152
|
| 752 |
+
babel/locale-data/ny_MW.dat,sha256=kyhkcpqgIwSrUcfxve2OS2P9S1AfXItRHmy94K7cQ48,616
|
| 753 |
+
babel/locale-data/nyn.dat,sha256=nVlbaYbL0QCkpVvX2rYYUFRsuI8BOjcReljkcamobSY,15668
|
| 754 |
+
babel/locale-data/nyn_UG.dat,sha256=fEm-RMI6-PvIjbMUoZK68dTaiAmOqH1iDQBn23a6r2w,640
|
| 755 |
+
babel/locale-data/oc.dat,sha256=yW-NuEfxYJnP6l2V3Nlz4kdzkDR8qecXH0LfJ16nQh0,67473
|
| 756 |
+
babel/locale-data/oc_ES.dat,sha256=A2TOYApWVgpGO2KYbRu8joSfd9A-bou6tVIn0iIT4kY,41521
|
| 757 |
+
babel/locale-data/oc_FR.dat,sha256=L80Ivl6dUpQJF4fAY1xaAeCRO9BkN0l6oCr8nRwogsM,653
|
| 758 |
+
babel/locale-data/om.dat,sha256=ISpFqqGfEBgqfAOmynXJXKWqKKEJdoeXnqY8bw5tN7Y,10234
|
| 759 |
+
babel/locale-data/om_ET.dat,sha256=v0wHN7iwcuJN-iFgWFPrGdplH6P-0c8B2OEqYOEeb40,635
|
| 760 |
+
babel/locale-data/om_KE.dat,sha256=h8jCIllRrl8-c9jorHeFxZrbDZ2Ncj-L5iSbTFnB_XM,1593
|
| 761 |
+
babel/locale-data/or.dat,sha256=tqyhqeH0QXmi9KAGEb0KHXfCDDyjOnwcUVDUrLlVvBA,221651
|
| 762 |
+
babel/locale-data/or_IN.dat,sha256=ur6a2cCdapMoKd-6KLXR2xAF2YU8xaueeW7UTPL2yLU,658
|
| 763 |
+
babel/locale-data/os.dat,sha256=2ARxbjnZ_WYF6VQTsvXN4epcXlWpkXaVEhUNOJpAv8Q,14821
|
| 764 |
+
babel/locale-data/os_GE.dat,sha256=8NgIdMuGlNow1dXmjW6y4xOis1_3raiXcj_jLBPirpI,635
|
| 765 |
+
babel/locale-data/os_RU.dat,sha256=76MsfCZxiy_RXfhW7Do3Z8q4-jhp1hOXTBIsA6SlA-Q,695
|
| 766 |
+
babel/locale-data/osa.dat,sha256=Ob-cu1978hig_-zOnB-PJW1_496aZ_yT6S7VTFkHoEY,4538
|
| 767 |
+
babel/locale-data/osa_US.dat,sha256=qFfjNw8tVOdprzqK2wBlGH4eNMxDxDQqDDReucJZR-E,654
|
| 768 |
+
babel/locale-data/pa.dat,sha256=SpvJvlpoprVfKwN21cRB_EWho-thsHZGph64F3Dri4E,202273
|
| 769 |
+
babel/locale-data/pa_Arab.dat,sha256=VBfuWzoA5UdGbWTTG3cPAYL0ApWSup5U9LWBBh4bGUE,3789
|
| 770 |
+
babel/locale-data/pa_Arab_PK.dat,sha256=1Si67Mz8DZfo2D8Ld0b5IlZpvnSMgg4W8_zZLrHrWQ0,635
|
| 771 |
+
babel/locale-data/pa_Guru.dat,sha256=fs7wqdmuGaKQCCwGkT3lRQSKmf1dxG3jyLboZeVtPmE,1276
|
| 772 |
+
babel/locale-data/pa_Guru_IN.dat,sha256=kpz873B1I65nfS3Z5vDLmmGliFVPlPM58sB6jW9nkBY,658
|
| 773 |
+
babel/locale-data/pap.dat,sha256=ezZAfI5Z-8G89DLmSnCwMOQp-6DqMkiDnPCUkIkxihA,15323
|
| 774 |
+
babel/locale-data/pap_AW.dat,sha256=XZSGzQPijHNf5GjxUjDJQt88iD0ETRdZSTF8gn-1U4M,617
|
| 775 |
+
babel/locale-data/pap_CW.dat,sha256=Mu-gCfh3bv9pzz9RrylMffuphhqgiRaODEZm6TtCpaI,617
|
| 776 |
+
babel/locale-data/pcm.dat,sha256=6R8zfK_tsvKj2kRPIe-P2hkFqT7rPcrGghQmedW2O0k,161113
|
| 777 |
+
babel/locale-data/pcm_NG.dat,sha256=3gBp38NIuVEbHlKAtQPQXJjT3DKvy7zvUqMAZS6pGzk,617
|
| 778 |
+
babel/locale-data/pis.dat,sha256=aCXK39YyoYqy97wCU2idxYXLL9cC7myCIiJZeKgq-po,1510
|
| 779 |
+
babel/locale-data/pis_SB.dat,sha256=-CDkXv_877c__o56bBeYHAAq2X9CcnKdI65DiE61_M0,617
|
| 780 |
+
babel/locale-data/pl.dat,sha256=h6VOL3rUTgZjCFPXJAaudIbpdnTzP3vq8Uy4sStHfV8,226866
|
| 781 |
+
babel/locale-data/pl_PL.dat,sha256=3s2XpVyaKha_K9MesXKD6sZNGSn1PVRtuz9XYp1xrsg,653
|
| 782 |
+
babel/locale-data/prg.dat,sha256=vsad78h5dkCtaL_Gc-AGmXy3cc6Od1j4WCPGBdX6Tt0,17267
|
| 783 |
+
babel/locale-data/prg_PL.dat,sha256=5jT2Yeek_e_MpGShmy2v-0WWhzQkQ0WsJQlUYfIOcfU,654
|
| 784 |
+
babel/locale-data/ps.dat,sha256=3-2SDmwRdg9wxUHugOcja9GvCSLVOTSWlcG3ZPL8d00,158554
|
| 785 |
+
babel/locale-data/ps_AF.dat,sha256=sNE6bgx_nV0VWKa8InelUaFYSa3Fpx6byJw0KT4B1o4,678
|
| 786 |
+
babel/locale-data/ps_PK.dat,sha256=lWWKB2hckX_uvhzan-86B8O_pvdO_gtX_u0zuxYS5hI,7272
|
| 787 |
+
babel/locale-data/pt.dat,sha256=soVNMZhYx5JVU6pz0xidpMHQM7ltKTQXMPDpYTXp9cw,182958
|
| 788 |
+
babel/locale-data/pt_AO.dat,sha256=49hMN9AJBDNjcsQw-nl-jY_VKHanO0PGfvd--OxqOxI,1022
|
| 789 |
+
babel/locale-data/pt_BR.dat,sha256=dVKYp9IwRMbjZ_ee-eXFPudSuTRrROvbFzY3dYTYmn0,635
|
| 790 |
+
babel/locale-data/pt_CH.dat,sha256=zAvD0sYytEquwzY8ZRbVCcy7DS2ZzUXofl5qXOixZH4,653
|
| 791 |
+
babel/locale-data/pt_CV.dat,sha256=zOQn8d7--PKrhRUhQ5mPKW1Km6Tyh5JF8hstfxpITzM,1039
|
| 792 |
+
babel/locale-data/pt_GQ.dat,sha256=qI1hvtuSHOev12ips9o3Vy78NJpOMjhkW625M60lqZU,616
|
| 793 |
+
babel/locale-data/pt_GW.dat,sha256=SRxbFDIg9FwEjGjutRI9P1SeLiZBqStwSqPuHBFZwLQ,1002
|
| 794 |
+
babel/locale-data/pt_LU.dat,sha256=z9aq0BTWEnk4lXveNpmi89TKcXN_t6Ud4A_C97uyOuw,672
|
| 795 |
+
babel/locale-data/pt_MO.dat,sha256=shItJIIDrxwlcQhWLhlZG0uhyTlSBDcTag5ivxmb9TA,1635
|
| 796 |
+
babel/locale-data/pt_MZ.dat,sha256=UZ1nkXS9CpiCM1IpOG5XpGK2QqM5mE5lAgRLTGAWl-4,1042
|
| 797 |
+
babel/locale-data/pt_PT.dat,sha256=gp04WKSnca1aLOcqSHNW2cWIfjvYwnwqjC1GfZDWb3A,97393
|
| 798 |
+
babel/locale-data/pt_ST.dat,sha256=Cm2HUxlGtZaz8IXX5Ohms-HYuKgazuBcOZBz5rWOzEU,1022
|
| 799 |
+
babel/locale-data/pt_TL.dat,sha256=CIIDM_Zo0xiu4gXngxYtkYK6ldTNZMRaikSD_sAokMw,1002
|
| 800 |
+
babel/locale-data/qu.dat,sha256=REnGz3lgaIZPM1Ms0DHy92UaYnOcyspkgtuF-g021Qg,87778
|
| 801 |
+
babel/locale-data/qu_BO.dat,sha256=7RUvNrmuLtwqP-qab667GocH_c4gIvpas3dbN1uaGxU,878
|
| 802 |
+
babel/locale-data/qu_EC.dat,sha256=_5V4RYoPb3eCAA7jOCNfB7WZqd9sWP1E0tlF8mGeqFc,837
|
| 803 |
+
babel/locale-data/qu_PE.dat,sha256=Vdd0fcK2dtFgyui3Q9NElHuJ841RI-T5l2UHeBq8MQ8,635
|
| 804 |
+
babel/locale-data/quc.dat,sha256=dIAxk2IuDZhWTj-NKC9PiHBZOnG9ARyANdJZUfoVlJw,775
|
| 805 |
+
babel/locale-data/quc_GT.dat,sha256=8M8KtmnsJiTCaf-Nl5X174Omtyc6a0ri07kysDC3-5Y,636
|
| 806 |
+
babel/locale-data/raj.dat,sha256=qkuyRruXTTQLDgijSA0Equfz19Aqg0p5Mg0heaGKT00,2428
|
| 807 |
+
babel/locale-data/raj_IN.dat,sha256=SS8GPzJu5j6nfXlDoX4NFPN2QScl4M0YNsrFmWklymM,659
|
| 808 |
+
babel/locale-data/rhg.dat,sha256=dHahMWjQ_tUshtlLauqf9b4Y36LNJFGrMBsVmjBzlqQ,4611
|
| 809 |
+
babel/locale-data/rhg_Rohg.dat,sha256=DAOuwC-7uaIuZtrIXvUkYt6YkxqaKpHOma1m0-XTtrI,693
|
| 810 |
+
babel/locale-data/rhg_Rohg_BD.dat,sha256=DcLSBtf_k_f6B102-vbhBOjfzNZjiTDvEUdIOQfVc8M,1212
|
| 811 |
+
babel/locale-data/rhg_Rohg_MM.dat,sha256=HspZzbytcZQ853Jstp-eFEdqSMAD3-shgjrdxY_KQrE,636
|
| 812 |
+
babel/locale-data/rif.dat,sha256=sCGNtwBceAUxnmGt9Zq7BavFV0cH-WAQIm9bVZV3-GA,27121
|
| 813 |
+
babel/locale-data/rif_MA.dat,sha256=Qq7ZdymuPdjHeYDUDGCjMuQBRU7w5qGdgzzZ6wPfN2o,617
|
| 814 |
+
babel/locale-data/rm.dat,sha256=4ttkNT9pmmJlxjOVy5E8JUXehhAYvT_8Nj695OhAiDI,95181
|
| 815 |
+
babel/locale-data/rm_CH.dat,sha256=JHAlYXMD9Vks43cU_gcSEQmqo6pogWPl_R4VMUK2iHI,653
|
| 816 |
+
babel/locale-data/rn.dat,sha256=LwQTzbFINNeIhU5qJsEnh-raxcCDXVMGA6ZL95aU9UE,16241
|
| 817 |
+
babel/locale-data/rn_BI.dat,sha256=r5Cweh7L4EAZK-qTmJuloWc33iXeR4IJUbknrl0XC3g,616
|
| 818 |
+
babel/locale-data/ro.dat,sha256=ME332bZkm3UXYSAaniGUc1T2rre-igpBiW0PrGzJBLA,199916
|
| 819 |
+
babel/locale-data/ro_MD.dat,sha256=bvBSEcwpCW0bN9uD9gwXia6tOKIhGJDYdqI4rsgyc9U,2972
|
| 820 |
+
babel/locale-data/ro_RO.dat,sha256=lLYIYWhDUmq1EZ9oV5SETauVa_5uNN5p52dW7XeemRk,635
|
| 821 |
+
babel/locale-data/rof.dat,sha256=Yafgax503CHjHvrc_njDTMVOOD2B36sRvWvDE99geMI,15473
|
| 822 |
+
babel/locale-data/rof_TZ.dat,sha256=I_qwGjqqrcwUR_3UNydHOm_EiiLZYyRV0q-s1qfSSi0,617
|
| 823 |
+
babel/locale-data/root.dat,sha256=HsQUCDPXlPZfJjnh_WH8i4xCPfApVrl0B80k2O9B1QU,51260
|
| 824 |
+
babel/locale-data/ru.dat,sha256=Pxm5DQ8r-2VO7te2LpsTHGHaOH5sxZwnSeHvtvmLcN0,306006
|
| 825 |
+
babel/locale-data/ru_BY.dat,sha256=99UlyhoMWnfyhI5ltXGaJkycWLVfJ3FwdxyRm-yr6kM,676
|
| 826 |
+
babel/locale-data/ru_KG.dat,sha256=X-iAT1QuQGhk1mIetpGyWqDlwiBskLfwqrK6ant1XS8,659
|
| 827 |
+
babel/locale-data/ru_KZ.dat,sha256=P1_Gn3esOwDLL8sd8vVYbFA8J7QEsaDAWfZvDsn-WwA,656
|
| 828 |
+
babel/locale-data/ru_MD.dat,sha256=LU12oBwr7MfPTzfs8Dx7uUZVgHin8ybX_oPHrPIJTkw,654
|
| 829 |
+
babel/locale-data/ru_RU.dat,sha256=IVG440mXjphW6iCsKysZCW1Gem_z5_O0lZI6-R3oG_E,653
|
| 830 |
+
babel/locale-data/ru_UA.dat,sha256=aptMDcNM1sBQO4L6D1RYCa0dn76KC793HlTTqKBhyxc,1695
|
| 831 |
+
babel/locale-data/rw.dat,sha256=oiuvsWRpN6vHmtpOraN_7Y-vMBJnyex2GHA-hZuae-A,8114
|
| 832 |
+
babel/locale-data/rw_RW.dat,sha256=tw-gtzH64PeIAmNGeobgUypw7RAyKITeFAcQPGY0MG8,616
|
| 833 |
+
babel/locale-data/rwk.dat,sha256=hCqo5glP1WqFJrEGyW6r3t43NZ7bVHAOGFGDkUzeM3Y,15369
|
| 834 |
+
babel/locale-data/rwk_TZ.dat,sha256=s9duai8NRoHwn8YpQrlMd3VDf6jtQxxcUmu9CIIMzC0,617
|
| 835 |
+
babel/locale-data/sa.dat,sha256=MX4JXumJJJF07PqVoMb72hkBHnkXOtudxetoVL3D90g,16139
|
| 836 |
+
babel/locale-data/sa_IN.dat,sha256=ABNamoPpYRbO7bK6BGm0tK92kd7su7_OP7Di0wW0zZo,658
|
| 837 |
+
babel/locale-data/sah.dat,sha256=-EGjUSVxpIMo3ayQmaLMwuVBLpymPKRWxHYw3JG5P1E,39564
|
| 838 |
+
babel/locale-data/sah_RU.dat,sha256=jHlseiwMbtN-IsETeG2dsaIn6OB2kqtAogazMnn0f60,654
|
| 839 |
+
babel/locale-data/saq.dat,sha256=grj85np3tZzXQmLdtYQcu76ynQv5Jq__KIyaDECFIj0,15787
|
| 840 |
+
babel/locale-data/saq_KE.dat,sha256=kN94cJJt8AT0yBRDqUPGoJtMZdOb2e-83NNsq8hmQ64,636
|
| 841 |
+
babel/locale-data/sat.dat,sha256=T4FkJvoNFPyp72J9Arkq8-Uzbw4CtcvwoBcfA4w79oM,66818
|
| 842 |
+
babel/locale-data/sat_Deva.dat,sha256=0EHZ6UcxsVOfi399xQbOkzaH1OU4jkZ10uqmmWnK8VI,1943
|
| 843 |
+
babel/locale-data/sat_Deva_IN.dat,sha256=Bzh9Vmzia_8KLAryt9VqCl9ter9tKxng4b8oFYbYK6I,659
|
| 844 |
+
babel/locale-data/sat_Olck.dat,sha256=mszOmf6B29mFbE6qN6Moy6SfBjwsjaCsbk75dJR245Q,905
|
| 845 |
+
babel/locale-data/sat_Olck_IN.dat,sha256=Bzh9Vmzia_8KLAryt9VqCl9ter9tKxng4b8oFYbYK6I,659
|
| 846 |
+
babel/locale-data/sbp.dat,sha256=1qHxon8_TpGGnLHUBzy5cR1mCEnZmw1EuYz3QLgnT-c,15609
|
| 847 |
+
babel/locale-data/sbp_TZ.dat,sha256=chWs0tZniO53SbtBquTHGS6E4v36tgYL2b3enxHcdCU,617
|
| 848 |
+
babel/locale-data/sc.dat,sha256=YAjBWzDIuVQjqj3ql5KAKmBhdJjDOJqAxvXLLfo0kIw,189312
|
| 849 |
+
babel/locale-data/sc_IT.dat,sha256=0G0vL9YXZQLkTmnzJuuygM5ty2Tw5liDg_aWHLvg32k,653
|
| 850 |
+
babel/locale-data/scn.dat,sha256=q9oCCmGYR_gfK39yapgaT_JUhq3UrmbL6zWhW1tpo0w,9369
|
| 851 |
+
babel/locale-data/scn_IT.dat,sha256=dTXZIHDRhbFDCw02T0wL1iaJ2kfY1ZUzfbvUs4_WKLs,654
|
| 852 |
+
babel/locale-data/sd.dat,sha256=118hMgrwvx-MZQToBTPK-96xYh9hy0m3lqOXiXPU364,152237
|
| 853 |
+
babel/locale-data/sd_Arab.dat,sha256=jgkaYGUhPXll1T7CT68ridccZaERHeZdwUzGoAZBUps,879
|
| 854 |
+
babel/locale-data/sd_Arab_PK.dat,sha256=c3AXdatnrTNDHW_SOh8fNNye4CVey81FnkSXwj7MmcI,635
|
| 855 |
+
babel/locale-data/sd_Deva.dat,sha256=_-zbhQH_Y8sEnjp6KfP3fMY4GAxSgfCa_6SfEchTCoc,13950
|
| 856 |
+
babel/locale-data/sd_Deva_IN.dat,sha256=0KQFEKHV6hHidc5hxrxQEvhO-YyvFf5P5z6t9hPenH4,658
|
| 857 |
+
babel/locale-data/sdh.dat,sha256=5cD8u88qanpCtA8kPvHH9AdAi2-HbhznORqis1PYx6M,1032
|
| 858 |
+
babel/locale-data/sdh_IQ.dat,sha256=B_vUMOiGWVcD1HaR4Zk8XxVzcmMFSISe2vRscyA1lYY,679
|
| 859 |
+
babel/locale-data/sdh_IR.dat,sha256=hwMmQnne41X_lyjbyNbQq34Lpkl91bAgoavPZRuozwU,679
|
| 860 |
+
babel/locale-data/se.dat,sha256=JnN5s3b1OrcP7qmurb8Rb9NKc-ICOr_RmdFs2EBKoRA,54830
|
| 861 |
+
babel/locale-data/se_FI.dat,sha256=JbMYPQi50dAxCq6C5FahGfYm6g8Dlxg_TTP_FmmElLM,44618
|
| 862 |
+
babel/locale-data/se_NO.dat,sha256=nm5u2VQ3ne0SUFZtFqwsRa8Gg97Xn1OSxjoP2I-i_PU,653
|
| 863 |
+
babel/locale-data/se_SE.dat,sha256=6M9OxtmQAY_p9fZ_6L8zqo6i--bo_X00cvhTDEbX_UU,694
|
| 864 |
+
babel/locale-data/seh.dat,sha256=viFuK-Mg4wPnvTcrvL-iEzNqFc7Ri_VP_r9pC673SNE,15433
|
| 865 |
+
babel/locale-data/seh_MZ.dat,sha256=Sv94DueqrM3R5RjhCdwrKZsnNdL1WpjLBg6QhBnoaX0,636
|
| 866 |
+
babel/locale-data/ses.dat,sha256=aRW4cH7nGNS5S3B3ff7o02GqcIqn1mVbBRGg3NdxXUc,15812
|
| 867 |
+
babel/locale-data/ses_ML.dat,sha256=y14qGwP_r6VxzJhklYIWfYkolu0OHB-6nJ4tvF7J-iU,617
|
| 868 |
+
babel/locale-data/sg.dat,sha256=ERl6d_xd8JRnkG_D857gWi2xONyI-cEmzt-Un_hXbu4,16476
|
| 869 |
+
babel/locale-data/sg_CF.dat,sha256=QCNYqo_5l2Sv9JUFEWF6YLDR3MknhgkyMz1mO5j2Gv8,616
|
| 870 |
+
babel/locale-data/shi.dat,sha256=fuYtv_xjgmJ0-aAQiuWcJXZY3mpeq__hz4lnouEUyWE,21830
|
| 871 |
+
babel/locale-data/shi_Latn.dat,sha256=aQrfwwcvkgPaWFSev9-3WgwQXhhXj1_5myuR-QifnPo,15435
|
| 872 |
+
babel/locale-data/shi_Latn_MA.dat,sha256=X8cwkkvm2LjcClQWzHRxxmiA8P0c37D7P8lf6RO4iNQ,617
|
| 873 |
+
babel/locale-data/shi_Tfng.dat,sha256=VjsR4oSiK9oFfdIdpaVDwNSIBvFbQ3Jvm63K24bRqk0,974
|
| 874 |
+
babel/locale-data/shi_Tfng_MA.dat,sha256=X8cwkkvm2LjcClQWzHRxxmiA8P0c37D7P8lf6RO4iNQ,617
|
| 875 |
+
babel/locale-data/shn.dat,sha256=awBFmgdlHbpKsnUqWZaGAQ-YbTPm9UWkJKMn9IdJ7pM,890
|
| 876 |
+
babel/locale-data/shn_MM.dat,sha256=7VauV3cmVfAJz7kA76hsF3FdwM75CVjvHdjx6lCoH4M,636
|
| 877 |
+
babel/locale-data/shn_TH.dat,sha256=QHPmr3V4GzTbb6QA5SDl2EsVzQBjpbaDP6OHfJZ0S0Y,636
|
| 878 |
+
babel/locale-data/si.dat,sha256=bq2sGsFXh4V50vUaFFYfrGmtGKeAs4Zw-f7QVBsASIc,216119
|
| 879 |
+
babel/locale-data/si_LK.dat,sha256=cWCgV9WmnEwIIsBmhsIVzSzbrV8hkkXaV1xH1ultlUw,635
|
| 880 |
+
babel/locale-data/sid.dat,sha256=zyKwuzw51B0E8sWg60qJ3kO4rzqTtcNBRnH5D3Zm1mU,2176
|
| 881 |
+
babel/locale-data/sid_ET.dat,sha256=vtwy9BuaZwb5A3XdIl-3mws1cEAVk4s8oKy7i-GnM9o,636
|
| 882 |
+
babel/locale-data/sk.dat,sha256=eOu7gmkspAMN7UKom5LsIOzXSiS259Yk3Lsbe9F0ht4,217070
|
| 883 |
+
babel/locale-data/sk_SK.dat,sha256=eMjPq18mQOAXvkJN5WV6lKEAPyt7-eleGme2pHHevgA,653
|
| 884 |
+
babel/locale-data/skr.dat,sha256=Mrx5bET3kh5Gzd8-2J9Rm4_b_wPZTDoHuhcxqdYj5hA,1702
|
| 885 |
+
babel/locale-data/skr_PK.dat,sha256=UJpLMmJJIM5jeI-tXWPBNX4Qd3WS2nTwp3bvJg5D3WY,636
|
| 886 |
+
babel/locale-data/sl.dat,sha256=9VxIzYtRMbzKZBLJxFcQVRFVkCVkomD9Fkk9cMu2Gf4,209021
|
| 887 |
+
babel/locale-data/sl_SI.dat,sha256=3Hk2t-MUfAUtqu_Gy0_fTjOhwBUtxdnndQ7Kowg0qek,635
|
| 888 |
+
babel/locale-data/sma.dat,sha256=BaBVbhsEPN9V4JGtMt2TpMdf0oIrL8Maxt2FXDIEEss,944
|
| 889 |
+
babel/locale-data/sma_NO.dat,sha256=OeIJ-EJtvWH6z2dZ1Hv8QdmQC7M7r51t-_C6LD6ZyxE,654
|
| 890 |
+
babel/locale-data/sma_SE.dat,sha256=M_zYllAUd2UaWvccZ6ShB9-Gd8JYzIEln-88Q23syaU,654
|
| 891 |
+
babel/locale-data/smj.dat,sha256=eyHR5AZqbxxlTYhyxJfvTjpz_v6zfh3TrDtcDkCgTig,939
|
| 892 |
+
babel/locale-data/smj_NO.dat,sha256=5fz-YVJEoXswvC-RdFcJWmt-EMGcNXA3c9j_pfmxqCA,654
|
| 893 |
+
babel/locale-data/smj_SE.dat,sha256=7l73FEZcAemOwXSrfPB3X7a0cto3J4oM7AO9i9PMIBU,654
|
| 894 |
+
babel/locale-data/smn.dat,sha256=LGkyaifqt24L0NeExCtzhg8rKEKnkfJNEKtt67B-ViE,40399
|
| 895 |
+
babel/locale-data/smn_FI.dat,sha256=VRY3dbCyxEmDUTep9bQXDRldd5wSg4skqQpztnMXplk,654
|
| 896 |
+
babel/locale-data/sms.dat,sha256=ylATYbrfu8SVEVdQRbC7dTSOKCNSX7O1gjS2wJXA1tU,6521
|
| 897 |
+
babel/locale-data/sms_FI.dat,sha256=b-Mk20lC32xysqU5v6jGjDUYDZaMDvoMwWOZNdT5yuA,654
|
| 898 |
+
babel/locale-data/sn.dat,sha256=FNTHDspBYVPY7Nse1haEc19O0Sf3btsqNWQFs2Zzcgc,16732
|
| 899 |
+
babel/locale-data/sn_ZW.dat,sha256=8HnH2raHHl8PI25abODlThEhjIOGXJb_u7cyQd5YzZw,635
|
| 900 |
+
babel/locale-data/so.dat,sha256=7zIiPsmEDqj72fvDKdbzZw45fPdqeRfhzwz1Kq7OGKs,163598
|
| 901 |
+
babel/locale-data/so_DJ.dat,sha256=VWnaj_MuW4dJnlO84t60ySCvfJL7FXI4nIP9PTL5Amo,656
|
| 902 |
+
babel/locale-data/so_ET.dat,sha256=EvRRqU4yQPMYhkEK8a4MR808fwKHmW7EvPvEJdjltnE,655
|
| 903 |
+
babel/locale-data/so_KE.dat,sha256=OSiRggRZ7CTNmqiGOvW1W2Cw2RqjVESTVOdUfgVgWyU,1208
|
| 904 |
+
babel/locale-data/so_SO.dat,sha256=2IPbOqSxQGB5FukQ-B-MEme9FHYn22ClXmAV4x08pNE,616
|
| 905 |
+
babel/locale-data/sq.dat,sha256=bZnepIQgCe-7TQnvFUqOeQVLIKY_9cJ84M2vGZgQz7w,160391
|
| 906 |
+
babel/locale-data/sq_AL.dat,sha256=MN2RvkKGG2PXjCRsMHsvcnwnIOOp9tNSpcInh2uCWaI,635
|
| 907 |
+
babel/locale-data/sq_MK.dat,sha256=L_GaZJ9XuQMs0zw-xZlrefPF36SH0sJqMrdDDbwicZM,1208
|
| 908 |
+
babel/locale-data/sq_XK.dat,sha256=qILZGRwAhuIBJ9xi_T5WTrrZAVouFjQSvybrwgXTsog,1187
|
| 909 |
+
babel/locale-data/sr.dat,sha256=6ElWeN_2s3LnjnZE6fcxNw40gI0B1eo6SSBbaNJ_EH0,264530
|
| 910 |
+
babel/locale-data/sr_Cyrl.dat,sha256=Tbo90CyBAWciKeDesPhmXf7sdBQfjWsmyyrKBco_NzU,1990
|
| 911 |
+
babel/locale-data/sr_Cyrl_BA.dat,sha256=9y77TL8HHOuwyyKq8p51l9rlM65-2Vv-Kmbo7ohHQwA,41808
|
| 912 |
+
babel/locale-data/sr_Cyrl_ME.dat,sha256=gplLA3ysW5pPIrN_0cudYa6Iz7edd_HkoBNMaIBmefc,3321
|
| 913 |
+
babel/locale-data/sr_Cyrl_RS.dat,sha256=Tn9u1EvJAZZEIdgXloi326qjpq8b1N087nRQ9R1JbWE,635
|
| 914 |
+
babel/locale-data/sr_Cyrl_XK.dat,sha256=zXsda44Yd_mAhxRPtIlyiV_eashU8zPaNbNm9jGvY88,2489
|
| 915 |
+
babel/locale-data/sr_Latn.dat,sha256=oNemcY9GYcZ_gAqn9Sn-ZIzL9Evp7vL4LOJNvmA7qow,216983
|
| 916 |
+
babel/locale-data/sr_Latn_BA.dat,sha256=vTLxnlRQYlJh0H_qLUJlK41skHuDocHpOSwj80tDJGY,32576
|
| 917 |
+
babel/locale-data/sr_Latn_ME.dat,sha256=TxMVtrpMr6qgH6wXgfA3fzVlRYud9ZJGv_RwrTsS5yM,2812
|
| 918 |
+
babel/locale-data/sr_Latn_RS.dat,sha256=Tn9u1EvJAZZEIdgXloi326qjpq8b1N087nRQ9R1JbWE,635
|
| 919 |
+
babel/locale-data/sr_Latn_XK.dat,sha256=As6AQXAckdQrX91VhwSK1nLVL8w4aGRQ9oysYC0VCVc,2155
|
| 920 |
+
babel/locale-data/ss.dat,sha256=UAB0p3UMDn8KfBY32a7HVWXWpHlPa26Nr_Woaah2c3U,2178
|
| 921 |
+
babel/locale-data/ss_SZ.dat,sha256=X-Va1uVrsPa1ZX5hwhQ-ME6Q_bovUb24XXFS8UQ87lQ,1208
|
| 922 |
+
babel/locale-data/ss_ZA.dat,sha256=xwT3vZ4tmKEvJpVwFMV9U2j2FLF1tC9PEDN6MC6Qbf4,635
|
| 923 |
+
babel/locale-data/ssy.dat,sha256=QyBWLhH_sreFEBHMQ7aiqBsrGvDeQHyYAKioqksa2iU,2999
|
| 924 |
+
babel/locale-data/ssy_ER.dat,sha256=9CRIaVxgOMeMTc0tcV0Yz9yZzq_uD3g3ylZzqVpYzsM,617
|
| 925 |
+
babel/locale-data/st.dat,sha256=egWkCMfDrl4JeqQaWq4bNtsN_jdmyakDYw3H4JA5x98,7773
|
| 926 |
+
babel/locale-data/st_LS.dat,sha256=pSzdNm6-O5V6-14VcgF2iGNYQPFYIXQlY3SqUW3GcjA,1227
|
| 927 |
+
babel/locale-data/st_ZA.dat,sha256=5tdUX7dxXEL2xiS_0IvHvqhKF-gWXFsi4supkP0RDAc,635
|
| 928 |
+
babel/locale-data/su.dat,sha256=lPNz5LGfG5Rzji790eboE_QeVVaQdloUEM_SugVDfYk,11850
|
| 929 |
+
babel/locale-data/su_Latn.dat,sha256=ievzq_m7eD5pZWLnVlH7oMIdeadf8GIMqEuVPJTBjyM,745
|
| 930 |
+
babel/locale-data/su_Latn_ID.dat,sha256=axNaukDpD_-G-_4R7P1u5w4dh-ToRPN_Yo-QpC1cFRU,635
|
| 931 |
+
babel/locale-data/sv.dat,sha256=GYNajIk50PMeLWevoi_jVWunast0Y0epQ1seKjkxsyk,198682
|
| 932 |
+
babel/locale-data/sv_AX.dat,sha256=QFGzIe9UCr5gCpgHunvdPiZ-126vP7GYORL9jjip9-E,653
|
| 933 |
+
babel/locale-data/sv_FI.dat,sha256=hpYWKPb5-gd8FzXt2AakgPR_5q6KSVHRtxXn8h3VeJg,2561
|
| 934 |
+
babel/locale-data/sv_SE.dat,sha256=c9PG5p2y_4rnxepGD4uOzemBU3EOQhQNO4BtUS1m3rE,653
|
| 935 |
+
babel/locale-data/sw.dat,sha256=KCFrVqwihxion0q4eKm3Ao6LGC2Eah8pyZo7MGQ_rzA,144487
|
| 936 |
+
babel/locale-data/sw_CD.dat,sha256=W7Fw8Wqwo3_x4hWlssmWbVTj4hhSQmRv8c-VSnQdlg8,2577
|
| 937 |
+
babel/locale-data/sw_KE.dat,sha256=15P-6z2SCva9mlEmSCcc2fEySyZofVjYfMBb5lkhkuI,47616
|
| 938 |
+
babel/locale-data/sw_TZ.dat,sha256=I1bDbpEDiR1jkCgJ_W9fWCPuPxMhjQmwG3sIueKb-Rk,616
|
| 939 |
+
babel/locale-data/sw_UG.dat,sha256=kuNdg2N_dLwUKFm7wSheL1wLOdyrukPxLfDw0PN7tT8,660
|
| 940 |
+
babel/locale-data/syr.dat,sha256=ITgbI5N09dgICsUl5W8tCMl2E3SNkNHv0-Yv5K8j4WQ,112586
|
| 941 |
+
babel/locale-data/syr_IQ.dat,sha256=Mrw63eJwh0vRe3Lpj0vRf6Q4cUZXJcx9tlWkuAmMrss,679
|
| 942 |
+
babel/locale-data/syr_SY.dat,sha256=l0Yl2UMjm_7kuzvoG2-KqBp5XR88gdjf1ZlpRRNFMuc,679
|
| 943 |
+
babel/locale-data/szl.dat,sha256=9zxlWD4_wi15SqIhBGzPzPopGm1SxXQ2AM6yeyf-XdU,89335
|
| 944 |
+
babel/locale-data/szl_PL.dat,sha256=1D5dKaG2l2Haxde8uraWI2J5lzw1dIWGeJtBesua-IM,654
|
| 945 |
+
babel/locale-data/ta.dat,sha256=rD7gjfnH8Nd68iJ8BPaDfDyUCI2EAKVKTaNujuV79kY,277730
|
| 946 |
+
babel/locale-data/ta_IN.dat,sha256=BOFaDBw7fc7C6xSSFYNfkhCgCUd7ydHprJ6u0DaneSE,658
|
| 947 |
+
babel/locale-data/ta_LK.dat,sha256=Od6ln5oUnWfaAHwt_SDafWv844c7A7_7fTT2OPVTuyw,1208
|
| 948 |
+
babel/locale-data/ta_MY.dat,sha256=PEUmjhs_RUr1R5kH9uHExdnG59Hy8LmbU18vXZYYPtA,1325
|
| 949 |
+
babel/locale-data/ta_SG.dat,sha256=tbuefTSiXPMwpeV085Qp53l5uDHLsMMXmt8TPEG2fWY,1344
|
| 950 |
+
babel/locale-data/te.dat,sha256=6SBRL3zyF7F1lXtOoubu-1ayHyL8r3dUYjk_u1qsRjQ,261371
|
| 951 |
+
babel/locale-data/te_IN.dat,sha256=LICnXU-D0uhvxVpQ986Ul1JeAQktXaX53sXZSUY3L2g,658
|
| 952 |
+
babel/locale-data/teo.dat,sha256=jJ-266Aw_zTeJjwGj_VASqzm6Y3CcQYkVPXKuV_kzT8,16012
|
| 953 |
+
babel/locale-data/teo_KE.dat,sha256=S_lAg36VkA1w384kzPfXRLmJmGWfmz3ll7MzOQAtcr8,657
|
| 954 |
+
babel/locale-data/teo_UG.dat,sha256=0WlDglms5bCe1AMwCqroaXpOXu9jQroxllMwXWLb8q0,640
|
| 955 |
+
babel/locale-data/tg.dat,sha256=SBJHCOcIvep0XFcgyIRNWlvJMZBHAX7mYAosXKsmJ28,50474
|
| 956 |
+
babel/locale-data/tg_TJ.dat,sha256=TCrsEipGp0reAS2mAvwT58tyzBnYJfL5oNHWpEe1ttc,635
|
| 957 |
+
babel/locale-data/th.dat,sha256=sIY_nNarxBBb2acnGztPpvb2-Y5vjQC-kxCQucprrd4,215969
|
| 958 |
+
babel/locale-data/th_TH.dat,sha256=_QhA0WcHmW6Cr_-gU9e6cdpzTMDT19WyHas58fWDUnc,635
|
| 959 |
+
babel/locale-data/ti.dat,sha256=9fLWzKVwV1xGSo8aJJnggyE4g2aIWm-in9U8SxUNfWk,90955
|
| 960 |
+
babel/locale-data/ti_ER.dat,sha256=m9w0P5TPQ8IqpWKldwdfnw5_1Upv09AjLdO5WUbcRic,962
|
| 961 |
+
babel/locale-data/ti_ET.dat,sha256=q0b9svPg8aj9xmbXr7F6fPHqeTJmclBl5t_hqQk7IuU,635
|
| 962 |
+
babel/locale-data/tig.dat,sha256=OhQttw2rPEA8OxKOcrVFL1-MDekreKyPqs5laZhm5P0,13606
|
| 963 |
+
babel/locale-data/tig_ER.dat,sha256=OoQ0U6yyzmjKwDtzLUpqR09h_ZaGvzXlp7t-HqNxmm4,617
|
| 964 |
+
babel/locale-data/tk.dat,sha256=iFxcx5JF2g2o6W0qEw34mXIJz7ifoXBspJwzygGIOuA,164381
|
| 965 |
+
babel/locale-data/tk_TM.dat,sha256=lADxEQoz-_ImDBmpCFUqDPuZ0ozVUhZKOQF2ZwyXVlw,635
|
| 966 |
+
babel/locale-data/tn.dat,sha256=HF4MJDHCXx9HXN6QT93jdhcSCu0x2YBoKw0-sKUCZ8U,8391
|
| 967 |
+
babel/locale-data/tn_BW.dat,sha256=jWMFP1tw-o7rslHAlAIgjEXflko8UCDNaSuQ8ccvNHI,654
|
| 968 |
+
babel/locale-data/tn_ZA.dat,sha256=S3dMOsYSpBwkUv0tW9q0kKawQQl6yx77LexAL5wQqDU,635
|
| 969 |
+
babel/locale-data/to.dat,sha256=Id-3W-NahGnEl1bJwh7YbcMECyI78Ras75X6IpvD_zQ,144295
|
| 970 |
+
babel/locale-data/to_TO.dat,sha256=jcfJ2Pjof8jGE4q1y5LHSP9rb4IanN58kR7OgG8d5Q0,616
|
| 971 |
+
babel/locale-data/tok.dat,sha256=kuSPgVhnv8Rr55G-epQDVyh8FfeKxJbd2J0hierJdUQ,8870
|
| 972 |
+
babel/locale-data/tok_001.dat,sha256=PPUMevT2TBOGFSq-U-AccYkLHSbkWnBRDvxtpokTCD4,693
|
| 973 |
+
babel/locale-data/tpi.dat,sha256=mqTAJweAOy1SAH2l4mJAKktX-ZeAdvTC8JnBPxXjB0A,4030
|
| 974 |
+
babel/locale-data/tpi_PG.dat,sha256=uZD_c8yCtiYwt2EO2VOYPzhSTqWMQBOJMCuMCXe3Css,617
|
| 975 |
+
babel/locale-data/tr.dat,sha256=hu3vBMkHvyclo77i_gVa3h5MIpfQ1MJBXY-VRaU2uOQ,150633
|
| 976 |
+
babel/locale-data/tr_CY.dat,sha256=3EmCqxcPvFuZcHCzpTmHb6pjtPwqQvwCfn27B8rtXNw,1227
|
| 977 |
+
babel/locale-data/tr_TR.dat,sha256=7lS5CMZw76SVlMJxsmIJW5IfL7k9t8MrfKcnElqISSI,635
|
| 978 |
+
babel/locale-data/trv.dat,sha256=fT-LaeGQU_wR0fNRzMR6BtpEwBvsDfJ2DMDTzRDiitY,9404
|
| 979 |
+
babel/locale-data/trv_TW.dat,sha256=CTQtGdDW4Z0n2Ckb6B63HgEwNE44YTFnJCetwd8q9GU,636
|
| 980 |
+
babel/locale-data/trw.dat,sha256=dh1Z_Fy4-DddsmAl196HrjUpyglzruyX-oVG_2SkioQ,111277
|
| 981 |
+
babel/locale-data/trw_PK.dat,sha256=pBHdOulrwRLiQuC96g8ilUzpKBeG6kglBqUXB8MlURA,636
|
| 982 |
+
babel/locale-data/ts.dat,sha256=p7EFPucK9HkTVXeNKTU00s-Oas5U_HCPGX9hqT15p9I,5522
|
| 983 |
+
babel/locale-data/ts_ZA.dat,sha256=AByEO55W3DVVOBIBxIp1F2QwY01-5v6v8sDFOGSxCF0,635
|
| 984 |
+
babel/locale-data/tt.dat,sha256=giaxMvTacoDYoU05JoFRSlDwP7NGqsbrejasQ7rfLb8,34257
|
| 985 |
+
babel/locale-data/tt_RU.dat,sha256=cmv2MzolKOrsRoqQcFZGcXQj_33dLWGh9oUjnebCnz0,653
|
| 986 |
+
babel/locale-data/twq.dat,sha256=nOSN5UZAxcCgdTxQFh14Cyk5K38olCyAuT6MrVW5PeE,15509
|
| 987 |
+
babel/locale-data/twq_NE.dat,sha256=y8xQDxMtyStWC83tm_JiekFxAY0Fj-CWWdmic9GBwd4,617
|
| 988 |
+
babel/locale-data/tyv.dat,sha256=y90_CH7Yksd1Kuc6KhykhpkdGVLUgFDV-B4oSxGqn5E,693
|
| 989 |
+
babel/locale-data/tyv_RU.dat,sha256=vP_6cjMLB8I8YL7Nqrq4Gu_AWGFuANbZSdBc7ORn_IA,654
|
| 990 |
+
babel/locale-data/tzm.dat,sha256=wYFO2vX38bht1nAdcVA7dxKVMh-3yC5sItggFaXkKBo,15436
|
| 991 |
+
babel/locale-data/tzm_MA.dat,sha256=8eku_7voAqAjN651VYKCuIWvdYGOScCyqbt1rtSVO_g,617
|
| 992 |
+
babel/locale-data/ug.dat,sha256=u4kzCiJHmPyTZt7o700_WiPVGT0gCHY2OHJjWh8HN_I,118421
|
| 993 |
+
babel/locale-data/ug_CN.dat,sha256=2UselU1_d6K7NgQj0EDnDfb4Llk51eQZ7z78oYE-Ywg,635
|
| 994 |
+
babel/locale-data/uk.dat,sha256=s1x7N3g9I4_pxWnfsVhQu6lAMtV0zmrciSH7gw6NqQk,338332
|
| 995 |
+
babel/locale-data/uk_UA.dat,sha256=usJw_J4Uu9OD9nrUxNQAx6vMJBWDjbGuc9l7ssJAyuw,635
|
| 996 |
+
babel/locale-data/ur.dat,sha256=jqpjGfLFG1LR9qUthzi6QGapVahY1tbnxykSIV7pMtk,166629
|
| 997 |
+
babel/locale-data/ur_IN.dat,sha256=8DXy4PDoJngtNoi_l-pDKuuCL_jlu2xzUJy1AJ2cEnY,10687
|
| 998 |
+
babel/locale-data/ur_PK.dat,sha256=EEAGl6fLd1-a7X0n2PwRxlqwYZ0a0ELm2DuLII9spX0,635
|
| 999 |
+
babel/locale-data/uz.dat,sha256=toVvLEf1p-KlvfC91sLMUPw0MYFTpKvjI1Nk7BXWb2Q,138245
|
| 1000 |
+
babel/locale-data/uz_Arab.dat,sha256=wt8BwimSNmoFzrnduGDXMHhqj3B8-XqqN6ghg2Xm74A,3814
|
| 1001 |
+
babel/locale-data/uz_Arab_AF.dat,sha256=68eUCR8KeB0QDQRCvNMiOIkZVRozGKFTDednrQL1X_Y,678
|
| 1002 |
+
babel/locale-data/uz_Cyrl.dat,sha256=QOXtWc05xNMW85NqXzg0-fGbbwcrdLl2uMzB7NUcWNw,76779
|
| 1003 |
+
babel/locale-data/uz_Cyrl_UZ.dat,sha256=MWJtHPdj_pF2h6abRP4wUwDWAUF4-zr7jBn2RQcZ0z8,635
|
| 1004 |
+
babel/locale-data/uz_Latn.dat,sha256=L5H7Xfz2Ho-vMqviRPC4ai0MnqoF9CIebiq7muISvSA,1292
|
| 1005 |
+
babel/locale-data/uz_Latn_UZ.dat,sha256=MWJtHPdj_pF2h6abRP4wUwDWAUF4-zr7jBn2RQcZ0z8,635
|
| 1006 |
+
babel/locale-data/vai.dat,sha256=T_MWlDAfbp9qgeArFd8yPDPbyThU15kFu19QTQqAlCE,17416
|
| 1007 |
+
babel/locale-data/vai_Latn.dat,sha256=MecJYJumVm7wCyCo-YeAY4eAon5WZ4ZqR0shQ3Pdpu8,14255
|
| 1008 |
+
babel/locale-data/vai_Latn_LR.dat,sha256=LdVmBAL7nzDp-Ab_uHidBAi2crIf9nXhf8tBNfa7xdI,617
|
| 1009 |
+
babel/locale-data/vai_Vaii.dat,sha256=l_IXC76zzJ2lPLfWfjWzSw6xVtFwr-x8LofcHQsSG_0,693
|
| 1010 |
+
babel/locale-data/vai_Vaii_LR.dat,sha256=LdVmBAL7nzDp-Ab_uHidBAi2crIf9nXhf8tBNfa7xdI,617
|
| 1011 |
+
babel/locale-data/ve.dat,sha256=5bInQioXkePSDbBerQqf4sYPTiB9-zpKuDokCXX5eNA,2372
|
| 1012 |
+
babel/locale-data/ve_ZA.dat,sha256=uJndHi9RMKtDWd58f_Q3g5WgXjL3W7KLQj91rVueabQ,635
|
| 1013 |
+
babel/locale-data/vec.dat,sha256=yMXoc4EQk_ocWZHZY6_zI1ZvnA237ltMsZ8i7bw_DT8,93160
|
| 1014 |
+
babel/locale-data/vec_IT.dat,sha256=mC9jRfk9ndmkpRIpWZNCwdMwvxvB6QX6_9HanawdaUw,654
|
| 1015 |
+
babel/locale-data/vi.dat,sha256=t0BHcENJfC4E9YV59RVDAi1mkyDBY5enUXvqbxXnOqE,134514
|
| 1016 |
+
babel/locale-data/vi_VN.dat,sha256=cGwN0vw-qIaeA2g89U97N1xHSMmmaIVNPCLL2P_QJMk,635
|
| 1017 |
+
babel/locale-data/vmw.dat,sha256=mhERiGM-732X9KO0CThGEyjFtSbquT1_rmzYPnru2SM,1796
|
| 1018 |
+
babel/locale-data/vmw_MZ.dat,sha256=sz0j5RufN9oAzTalcjWNhKtCoEXzeRr5Cv6qCouK45E,636
|
| 1019 |
+
babel/locale-data/vo.dat,sha256=werwY25uwomUcf9q1dyQ8Rwgg2aCoLp78XUzBeSw0LY,4609
|
| 1020 |
+
babel/locale-data/vo_001.dat,sha256=iF2xY9XIdxC0mOYEp9hjYZp2EG-si_YaNYXri_60-4w,850
|
| 1021 |
+
babel/locale-data/vun.dat,sha256=VGNPlnoRipnocGYPgeb39d9MmE6fe5nTMWtCk4m1AEY,15373
|
| 1022 |
+
babel/locale-data/vun_TZ.dat,sha256=YKrOeOS1VnU3BWQ7HWtxjS-gMKJcKAPQLf4HTgkzf70,617
|
| 1023 |
+
babel/locale-data/wa.dat,sha256=1r6krApI8oecIKQt_9RzbpwSN0LcWSjlG34Y9Rfh07Y,880
|
| 1024 |
+
babel/locale-data/wa_BE.dat,sha256=j4YADQloo07Oek1j3aOrLYkzcFkrViS1UdRrA0Z56-o,653
|
| 1025 |
+
babel/locale-data/wae.dat,sha256=qBKStFqpkAruVDgeZJvX6U0X-hq_NkETTqgR2e7A4UQ,29641
|
| 1026 |
+
babel/locale-data/wae_CH.dat,sha256=Z0Wzu5Q9IVTnLGwWu54ozVx-fgnFz0IE3yrky8Y1IkQ,654
|
| 1027 |
+
babel/locale-data/wal.dat,sha256=AD9ZfdNNjEhX2n9T0ykd_XwEbXK-wxmsLqq39O4BjWU,8406
|
| 1028 |
+
babel/locale-data/wal_ET.dat,sha256=tNjeuU4GPTWtDmsroGmi4VUql0dA57v1tEtDF4rslVg,636
|
| 1029 |
+
babel/locale-data/wbp.dat,sha256=kzXK04f538n-PrJl6nRKIaYHMid6rJ4ACmzPcCz7NgU,746
|
| 1030 |
+
babel/locale-data/wbp_AU.dat,sha256=BT2E1-WiomuRrteCzN1_AfLyDUdEOm0ehT5miAiepBQ,636
|
| 1031 |
+
babel/locale-data/wo.dat,sha256=BEG7TtPHL_k8VoT17DngvKVPPKcUdvxaphLN9u0yBQQ,26772
|
| 1032 |
+
babel/locale-data/wo_SN.dat,sha256=fvlwe-ImWs04fsxSjTsXf8IPxEIiEi45BX8xhoBC_yg,616
|
| 1033 |
+
babel/locale-data/xh.dat,sha256=O8dE2yBzlsePz_XLbpWS7dWyU1GY1Pp1isnXKwcRbwM,65118
|
| 1034 |
+
babel/locale-data/xh_ZA.dat,sha256=9p6wHW1sxOghJMAgsP6BC3RdUhuvLpHoCkqvjsCmPps,635
|
| 1035 |
+
babel/locale-data/xnr.dat,sha256=Cf1gDvadEXabfYcRDcezxbpYffSI2kiu7fMdGjDhUeI,97436
|
| 1036 |
+
babel/locale-data/xnr_IN.dat,sha256=UbNwudCNihEFVZu3ymanDhJ52YoupG0SDGwmDByPhzQ,659
|
| 1037 |
+
babel/locale-data/xog.dat,sha256=V4U36ibPCWDoUMf31-o9mDCwylsYU0nZEx5pt-MWecM,15866
|
| 1038 |
+
babel/locale-data/xog_UG.dat,sha256=bMX0Tk5zS4P2LqlOLLpVP4nZxBFhS_qc-ndXjilDCNI,640
|
| 1039 |
+
babel/locale-data/yav.dat,sha256=UupgFFmPVcV-IgY3Fd8Y9GoOcOWgY1P22ZHuA-4QSMU,14543
|
| 1040 |
+
babel/locale-data/yav_CM.dat,sha256=CsaKwep5CARetyBX-JXHFvUVsFe1KTN4Pyz1Wh7NTHw,636
|
| 1041 |
+
babel/locale-data/yi.dat,sha256=OWr2zb3k_toEmkSXcPweqE13Tr5RhvlMm4z358uCQiY,24264
|
| 1042 |
+
babel/locale-data/yi_UA.dat,sha256=DesjWHTuxEBrjOeq8c-B82j4Hnwu0ElR2IH3fZPmq-A,635
|
| 1043 |
+
babel/locale-data/yo.dat,sha256=gexfe41oO1TQxZVsL2LFGy2wQKxC0FSZfuzI08oHC4Q,104992
|
| 1044 |
+
babel/locale-data/yo_BJ.dat,sha256=i5XKUa_OoS6wbxlJZZG2Lqx54Vi4BJpHZ-3FN4Gcy5U,40620
|
| 1045 |
+
babel/locale-data/yo_NG.dat,sha256=BEIndIiMT1Mo18S5DAWpjefthptCVQkIPeVs0umSop0,616
|
| 1046 |
+
babel/locale-data/yrl.dat,sha256=5Hn_gg7zG3hT9v6QCKNt4uwCbJagjqJ9tah4YS_0NfA,187936
|
| 1047 |
+
babel/locale-data/yrl_BR.dat,sha256=aUgLCNwgEORk2wtuez8AqkYahB8_mX41IWSqogt39YE,636
|
| 1048 |
+
babel/locale-data/yrl_CO.dat,sha256=oeTveb-u18jQraHBxtYXegyt6H4DN-NvAXDgYq0Vvx4,9331
|
| 1049 |
+
babel/locale-data/yrl_VE.dat,sha256=N5Z7PzXQXLg5_y31iqC4yFLeGQw1TvhxJsnOxgLANbA,9331
|
| 1050 |
+
babel/locale-data/yue.dat,sha256=hZlvLcrvuwoFusra9IuSlZgj6Etac0_i1EcGIsNmPPY,144020
|
| 1051 |
+
babel/locale-data/yue_Hans.dat,sha256=OFDRxkYzr-O7m-W6XZ6rzePUt8W9_jempPlMaYbcmNs,145288
|
| 1052 |
+
babel/locale-data/yue_Hans_CN.dat,sha256=MOZnu5r0xokf672rwAXfgzG3VEeTfNlDbu36fR1bB6I,636
|
| 1053 |
+
babel/locale-data/yue_Hant.dat,sha256=76wefuhsGIjk0jT05KSTEU_pbb7AfNE2u56jdRoJaDM,1306
|
| 1054 |
+
babel/locale-data/yue_Hant_HK.dat,sha256=eMZ7mOTEyKzQz0MDIjvP_Z57CS9nFIP4-Uf0Jpx1CY4,636
|
| 1055 |
+
babel/locale-data/za.dat,sha256=5EbAmE-qqvt_e4geaFxBGJi81CVoZFK4dCcJ346P4yU,12705
|
| 1056 |
+
babel/locale-data/za_CN.dat,sha256=WzhnaughSM1C1twuKYBVrelLEer-guzT43a9yBNXCsg,635
|
| 1057 |
+
babel/locale-data/zgh.dat,sha256=Q2D9KQFgDfWk4fXOdEbPcLq3yX_zxjhlK_PVI61Ok4U,22018
|
| 1058 |
+
babel/locale-data/zgh_MA.dat,sha256=sV8aPBmHY23lKIzsRna-tPz3UiXoKCMQ1Ur2tCyx2YA,617
|
| 1059 |
+
babel/locale-data/zh.dat,sha256=W0rpd4T-Jsrck3o49eOBWuPx90CRKZ0HF5zLHFQRScE,152090
|
| 1060 |
+
babel/locale-data/zh_Hans.dat,sha256=-wR64b65stjA2KWj4GWcBWiF3yI0A24p4K7wApj8qtc,1305
|
| 1061 |
+
babel/locale-data/zh_Hans_CN.dat,sha256=zz2qPpWEP9ba12T9cGsPXGI7Bg5LcmZ3NkAMiVTf61A,635
|
| 1062 |
+
babel/locale-data/zh_Hans_HK.dat,sha256=yPyZyU-xXSNyU1FYJIYpWwnh0d3uXOra9V9aj2j_YQU,3621
|
| 1063 |
+
babel/locale-data/zh_Hans_MO.dat,sha256=08kUXwHOXA0pRA8qIX7e4p0Nzl1XHSBjwhMh7f-nZBE,3752
|
| 1064 |
+
babel/locale-data/zh_Hans_SG.dat,sha256=OHZNiUfnteSXuzel-lZAMVgv58iiVTNhjq81T9Qu94s,3948
|
| 1065 |
+
babel/locale-data/zh_Hant.dat,sha256=xy_tRdQ7wviPL13mC5yheMCuCP0GRhG84DivE8xkGow,154241
|
| 1066 |
+
babel/locale-data/zh_Hant_HK.dat,sha256=p93G8I5V_rD2RAVgnZs6S-367shHnxeySfo6KAGC3NU,49873
|
| 1067 |
+
babel/locale-data/zh_Hant_MO.dat,sha256=8GSs5WRDxGFvEN8slDp9A3dmsZslPSN3NJDcT5EN4fk,710
|
| 1068 |
+
babel/locale-data/zh_Hant_TW.dat,sha256=5N4K8I3XG89knCaSoy97HGzTVOTiUcd_VmfvNJlA4Bg,635
|
| 1069 |
+
babel/locale-data/zu.dat,sha256=tNOwr1clbNNcFGkNEQu8hXlkXieSNXeOklV6JfnuNRI,139755
|
| 1070 |
+
babel/locale-data/zu_ZA.dat,sha256=jHloBfkNbQETXgE-3xVxvESitWb994_-SoY0G4_JL5E,635
|
| 1071 |
+
babel/localedata.py,sha256=Iz6UN2WKU5ngOsnUWg6zs1lJ_1I4mBIZ9xbrM3XvdF0,8239
|
| 1072 |
+
babel/localtime/__init__.py,sha256=i-Lr3nOPaEQ9xGx8CP36ya8yh3Tx3H-WSkeG0m-rnH4,1043
|
| 1073 |
+
babel/localtime/__pycache__/__init__.cpython-311.pyc,,
|
| 1074 |
+
babel/localtime/__pycache__/_fallback.cpython-311.pyc,,
|
| 1075 |
+
babel/localtime/__pycache__/_helpers.cpython-311.pyc,,
|
| 1076 |
+
babel/localtime/__pycache__/_unix.cpython-311.pyc,,
|
| 1077 |
+
babel/localtime/__pycache__/_win32.cpython-311.pyc,,
|
| 1078 |
+
babel/localtime/_fallback.py,sha256=kvQB89KoogRnH6hnfFGy2nICby30Z6XpT2hmm-MY4kM,1207
|
| 1079 |
+
babel/localtime/_helpers.py,sha256=8WIkbnxv1aGVvXm63pFlB_IBRQNsMQlATsx7vorRivQ,1060
|
| 1080 |
+
babel/localtime/_unix.py,sha256=7ExS68O5KpjqgZ6Dhho2WhxlYQYe2etJiW8BW2mXMCc,3455
|
| 1081 |
+
babel/localtime/_win32.py,sha256=nSNnxSMOVAlvqvX50h9HSCzBfP7mj8njJ80JZ3pOIWk,3211
|
| 1082 |
+
babel/messages/__init__.py,sha256=v-Ekb85OfEQ_jGCTSK_oJNhxIM44XLT-71UHvjw3LUE,349
|
| 1083 |
+
babel/messages/__pycache__/__init__.cpython-311.pyc,,
|
| 1084 |
+
babel/messages/__pycache__/catalog.cpython-311.pyc,,
|
| 1085 |
+
babel/messages/__pycache__/checkers.cpython-311.pyc,,
|
| 1086 |
+
babel/messages/__pycache__/extract.cpython-311.pyc,,
|
| 1087 |
+
babel/messages/__pycache__/frontend.cpython-311.pyc,,
|
| 1088 |
+
babel/messages/__pycache__/jslexer.cpython-311.pyc,,
|
| 1089 |
+
babel/messages/__pycache__/mofile.cpython-311.pyc,,
|
| 1090 |
+
babel/messages/__pycache__/plurals.cpython-311.pyc,,
|
| 1091 |
+
babel/messages/__pycache__/pofile.cpython-311.pyc,,
|
| 1092 |
+
babel/messages/__pycache__/setuptools_frontend.cpython-311.pyc,,
|
| 1093 |
+
babel/messages/catalog.py,sha256=0qexbG2LC7tJ5jezH3_cObJYutgHztQy_GKTYXCwqDs,36302
|
| 1094 |
+
babel/messages/checkers.py,sha256=LK5_AeOyptGB3Nj4dvQ8QS6vBTLoQOOw_TLkQmxi2OQ,6375
|
| 1095 |
+
babel/messages/extract.py,sha256=qBgqKLRgrAR6PuZ6d4EXslp3Qb6JWqm1gA6WXNx0Tnk,34333
|
| 1096 |
+
babel/messages/frontend.py,sha256=e3_v7Ae1BpH9DF7XN9dEw6JuFvCqzcyrVbXoLpYdXB4,41618
|
| 1097 |
+
babel/messages/jslexer.py,sha256=-y8ANArYt8q0_c6GQcquUfCs2UY_qv7IuKJr_9Ae9OE,7153
|
| 1098 |
+
babel/messages/mofile.py,sha256=rhfPviWXvs0WBlnppcretWCDdssxZrHK493dFTi-jbU,7345
|
| 1099 |
+
babel/messages/plurals.py,sha256=ABqBQNzUvaNuOEdGlyun4THKUs_qMmeGMmWrKOZk4ZI,7319
|
| 1100 |
+
babel/messages/pofile.py,sha256=3Rsw5T5SoPworyAnmbhacAHNhFuqsMgOEArV6Ktl1ZU,23293
|
| 1101 |
+
babel/messages/setuptools_frontend.py,sha256=m1l9NHuawj1pSncZeC82cUJfdwxib_C7JSUb_2EhbUM,3485
|
| 1102 |
+
babel/numbers.py,sha256=knUuBrQvLp5uQboRREfWMqK62cJE6kd_Af9k2esHjBk,61657
|
| 1103 |
+
babel/plural.py,sha256=hZRI_fpBhxdBJkKLn5AR6DZ2dTDHhNNDIRby-EXj7uU,23218
|
| 1104 |
+
babel/py.typed,sha256=DtCsIDq6KOv2NOEdQjTbeMWJKRh6ZEL2E-6Mf1RLeMA,59
|
| 1105 |
+
babel/support.py,sha256=-D0lGTFVr3yq_4KqDYs0pdSAqrplNiJKKZ092Ojf1n0,27456
|
| 1106 |
+
babel/units.py,sha256=Lljs-eGwdUms4RbGsKEAzqoXsYGoC-42gGNQSX6Gn64,13604
|
| 1107 |
+
babel/util.py,sha256=t6_jIu8yzSg-43Ymwr3xzERi-UIJXy0xH2eiq6R-uw0,7956
|
pgsql/pgAdmin 4/python/Lib/site-packages/Babel-2.15.0.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: bdist_wheel (0.43.0)
|
| 3 |
+
Root-Is-Purelib: true
|
| 4 |
+
Tag: py3-none-any
|
| 5 |
+
|
pgsql/pgAdmin 4/python/Lib/site-packages/Babel-2.15.0.dist-info/entry_points.txt
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[babel.checkers]
|
| 2 |
+
num_plurals = babel.messages.checkers:num_plurals
|
| 3 |
+
python_format = babel.messages.checkers:python_format
|
| 4 |
+
|
| 5 |
+
[babel.extractors]
|
| 6 |
+
ignore = babel.messages.extract:extract_nothing
|
| 7 |
+
javascript = babel.messages.extract:extract_javascript
|
| 8 |
+
python = babel.messages.extract:extract_python
|
| 9 |
+
|
| 10 |
+
[console_scripts]
|
| 11 |
+
pybabel = babel.messages.frontend:main
|
| 12 |
+
|
| 13 |
+
[distutils.commands]
|
| 14 |
+
compile_catalog = babel.messages.setuptools_frontend:compile_catalog
|
| 15 |
+
extract_messages = babel.messages.setuptools_frontend:extract_messages
|
| 16 |
+
init_catalog = babel.messages.setuptools_frontend:init_catalog
|
| 17 |
+
update_catalog = babel.messages.setuptools_frontend:update_catalog
|
| 18 |
+
|
| 19 |
+
[distutils.setup_keywords]
|
| 20 |
+
message_extractors = babel.messages.setuptools_frontend:check_message_extractors
|
pgsql/pgAdmin 4/python/Lib/site-packages/Babel-2.15.0.dist-info/top_level.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
babel
|
pgsql/pgAdmin 4/python/Lib/site-packages/Brotli-1.1.0.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip
|
pgsql/pgAdmin 4/python/Lib/site-packages/Brotli-1.1.0.dist-info/LICENSE
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright (c) 2009, 2010, 2013-2016 by the Brotli Authors.
|
| 2 |
+
|
| 3 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 4 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 5 |
+
in the Software without restriction, including without limitation the rights
|
| 6 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 7 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 8 |
+
furnished to do so, subject to the following conditions:
|
| 9 |
+
|
| 10 |
+
The above copyright notice and this permission notice shall be included in
|
| 11 |
+
all copies or substantial portions of the Software.
|
| 12 |
+
|
| 13 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 14 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 15 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 16 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 17 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 18 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
| 19 |
+
THE SOFTWARE.
|
pgsql/pgAdmin 4/python/Lib/site-packages/Brotli-1.1.0.dist-info/METADATA
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.1
|
| 2 |
+
Name: Brotli
|
| 3 |
+
Version: 1.1.0
|
| 4 |
+
Summary: Python bindings for the Brotli compression library
|
| 5 |
+
Home-page: https://github.com/google/brotli
|
| 6 |
+
Author: The Brotli Authors
|
| 7 |
+
License: MIT
|
| 8 |
+
Platform: Posix
|
| 9 |
+
Platform: MacOS X
|
| 10 |
+
Platform: Windows
|
| 11 |
+
Classifier: Development Status :: 4 - Beta
|
| 12 |
+
Classifier: Environment :: Console
|
| 13 |
+
Classifier: Intended Audience :: Developers
|
| 14 |
+
Classifier: License :: OSI Approved :: MIT License
|
| 15 |
+
Classifier: Operating System :: MacOS :: MacOS X
|
| 16 |
+
Classifier: Operating System :: Microsoft :: Windows
|
| 17 |
+
Classifier: Operating System :: POSIX :: Linux
|
| 18 |
+
Classifier: Programming Language :: C
|
| 19 |
+
Classifier: Programming Language :: C++
|
| 20 |
+
Classifier: Programming Language :: Python
|
| 21 |
+
Classifier: Programming Language :: Python :: 2
|
| 22 |
+
Classifier: Programming Language :: Python :: 2.7
|
| 23 |
+
Classifier: Programming Language :: Python :: 3
|
| 24 |
+
Classifier: Programming Language :: Python :: 3.3
|
| 25 |
+
Classifier: Programming Language :: Python :: 3.4
|
| 26 |
+
Classifier: Programming Language :: Python :: 3.5
|
| 27 |
+
Classifier: Programming Language :: Unix Shell
|
| 28 |
+
Classifier: Topic :: Software Development :: Libraries
|
| 29 |
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
| 30 |
+
Classifier: Topic :: System :: Archiving
|
| 31 |
+
Classifier: Topic :: System :: Archiving :: Compression
|
| 32 |
+
Classifier: Topic :: Text Processing :: Fonts
|
| 33 |
+
Classifier: Topic :: Utilities
|
| 34 |
+
Description-Content-Type: text/markdown
|
| 35 |
+
License-File: LICENSE
|
| 36 |
+
|
| 37 |
+
<p align="center">
|
| 38 |
+
<img src="https://github.com/google/brotli/actions/workflows/build_test.yml/badge.svg" alt="GitHub Actions Build Status" href="https://github.com/google/brotli/actions?query=branch%3Amaster">
|
| 39 |
+
<img src="https://oss-fuzz-build-logs.storage.googleapis.com/badges/brotli.svg" alt="Fuzzing Status" href="https://oss-fuzz-build-logs.storage.googleapis.com/index.html#brotli">
|
| 40 |
+
</p>
|
| 41 |
+
<p align="center"><img src="https://brotli.org/brotli.svg" alt="Brotli" width="64"></p>
|
| 42 |
+
|
| 43 |
+
### Introduction
|
| 44 |
+
|
| 45 |
+
Brotli is a generic-purpose lossless compression algorithm that compresses data
|
| 46 |
+
using a combination of a modern variant of the LZ77 algorithm, Huffman coding
|
| 47 |
+
and 2nd order context modeling, with a compression ratio comparable to the best
|
| 48 |
+
currently available general-purpose compression methods. It is similar in speed
|
| 49 |
+
with deflate but offers more dense compression.
|
| 50 |
+
|
| 51 |
+
The specification of the Brotli Compressed Data Format is defined in [RFC 7932](https://tools.ietf.org/html/rfc7932).
|
| 52 |
+
|
| 53 |
+
Brotli is open-sourced under the MIT License, see the LICENSE file.
|
| 54 |
+
|
| 55 |
+
> **Please note:** brotli is a "stream" format; it does not contain
|
| 56 |
+
> meta-information, like checksums or uncompresssed data length. It is possible
|
| 57 |
+
> to modify "raw" ranges of the compressed stream and the decoder will not
|
| 58 |
+
> notice that.
|
| 59 |
+
|
| 60 |
+
### Build instructions
|
| 61 |
+
|
| 62 |
+
#### Vcpkg
|
| 63 |
+
|
| 64 |
+
You can download and install brotli using the [vcpkg](https://github.com/Microsoft/vcpkg/) dependency manager:
|
| 65 |
+
|
| 66 |
+
git clone https://github.com/Microsoft/vcpkg.git
|
| 67 |
+
cd vcpkg
|
| 68 |
+
./bootstrap-vcpkg.sh
|
| 69 |
+
./vcpkg integrate install
|
| 70 |
+
./vcpkg install brotli
|
| 71 |
+
|
| 72 |
+
The brotli port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository.
|
| 73 |
+
|
| 74 |
+
#### Bazel
|
| 75 |
+
|
| 76 |
+
See [Bazel](http://www.bazel.build/)
|
| 77 |
+
|
| 78 |
+
#### CMake
|
| 79 |
+
|
| 80 |
+
The basic commands to build and install brotli are:
|
| 81 |
+
|
| 82 |
+
$ mkdir out && cd out
|
| 83 |
+
$ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./installed ..
|
| 84 |
+
$ cmake --build . --config Release --target install
|
| 85 |
+
|
| 86 |
+
You can use other [CMake](https://cmake.org/) configuration.
|
| 87 |
+
|
| 88 |
+
#### Python
|
| 89 |
+
|
| 90 |
+
To install the latest release of the Python module, run the following:
|
| 91 |
+
|
| 92 |
+
$ pip install brotli
|
| 93 |
+
|
| 94 |
+
To install the tip-of-the-tree version, run:
|
| 95 |
+
|
| 96 |
+
$ pip install --upgrade git+https://github.com/google/brotli
|
| 97 |
+
|
| 98 |
+
See the [Python readme](python/README.md) for more details on installing
|
| 99 |
+
from source, development, and testing.
|
| 100 |
+
|
| 101 |
+
### Contributing
|
| 102 |
+
|
| 103 |
+
We glad to answer/library related questions in
|
| 104 |
+
[brotli mailing list](https://groups.google.com/forum/#!forum/brotli).
|
| 105 |
+
|
| 106 |
+
Regular issues / feature requests should be reported in
|
| 107 |
+
[issue tracker](https://github.com/google/brotli/issues).
|
| 108 |
+
|
| 109 |
+
For reporting vulnerability please read [SECURITY](SECURITY.md).
|
| 110 |
+
|
| 111 |
+
For contributing changes please read [CONTRIBUTING](CONTRIBUTING.md).
|
| 112 |
+
|
| 113 |
+
### Benchmarks
|
| 114 |
+
* [Squash Compression Benchmark](https://quixdb.github.io/squash-benchmark/) / [Unstable Squash Compression Benchmark](https://quixdb.github.io/squash-benchmark/unstable/)
|
| 115 |
+
* [Large Text Compression Benchmark](http://mattmahoney.net/dc/text.html)
|
| 116 |
+
* [Lzturbo Benchmark](https://sites.google.com/site/powturbo/home/benchmark)
|
| 117 |
+
|
| 118 |
+
### Related projects
|
| 119 |
+
> **Disclaimer:** Brotli authors take no responsibility for the third party projects mentioned in this section.
|
| 120 |
+
|
| 121 |
+
Independent [decoder](https://github.com/madler/brotli) implementation by Mark Adler, based entirely on format specification.
|
| 122 |
+
|
| 123 |
+
JavaScript port of brotli [decoder](https://github.com/devongovett/brotli.js). Could be used directly via `npm install brotli`
|
| 124 |
+
|
| 125 |
+
Hand ported [decoder / encoder](https://github.com/dominikhlbg/BrotliHaxe) in haxe by Dominik Homberger. Output source code: JavaScript, PHP, Python, Java and C#
|
| 126 |
+
|
| 127 |
+
7Zip [plugin](https://github.com/mcmilk/7-Zip-Zstd)
|
| 128 |
+
|
| 129 |
+
Dart [native bindings](https://github.com/thosakwe/brotli)
|
| 130 |
+
|
| 131 |
+
Dart compression framework with [fast FFI-based Brotli implementation](https://pub.dev/documentation/es_compression/latest/brotli/brotli-library.html) with ready-to-use prebuilt binaries for Win/Linux/Mac
|
pgsql/pgAdmin 4/python/Lib/site-packages/Brotli-1.1.0.dist-info/RECORD
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Brotli-1.1.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 2 |
+
Brotli-1.1.0.dist-info/LICENSE,sha256=YK4PE-dswuqqEIZ37vpM4Wtkf2u-jPChrJQp2C7Kckg,1103
|
| 3 |
+
Brotli-1.1.0.dist-info/METADATA,sha256=haxT0gOqq3_iFq-_zfAiWExRUORg8c4O8wd_55nhCWU,5627
|
| 4 |
+
Brotli-1.1.0.dist-info/RECORD,,
|
| 5 |
+
Brotli-1.1.0.dist-info/WHEEL,sha256=badvNS-y9fEq0X-qzdZYvql_JFjI7Xfw-wR8FsjoK0I,102
|
| 6 |
+
Brotli-1.1.0.dist-info/top_level.txt,sha256=gsS54HrhO3ZveFxeMrKo_7qH4Sm4TbQ7jGLVBEqJ4NI,15
|
| 7 |
+
__pycache__/brotli.cpython-311.pyc,,
|
| 8 |
+
_brotli.cp311-win_amd64.pyd,sha256=H811sDZzkE2UcewDwO8ml40lE1ogJgIOZ5F0ve-Xbc8,820736
|
| 9 |
+
brotli.py,sha256=f1qBr2xlHP689IgPpW9qtVSVBXxlNLAPwsr6BbKOr9M,1921
|
pgsql/pgAdmin 4/python/Lib/site-packages/Brotli-1.1.0.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: bdist_wheel (0.41.2)
|
| 3 |
+
Root-Is-Purelib: false
|
| 4 |
+
Tag: cp311-cp311-win_amd64
|
| 5 |
+
|
pgsql/pgAdmin 4/python/Lib/site-packages/Brotli-1.1.0.dist-info/top_level.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_brotli
|
| 2 |
+
brotli
|
pgsql/pgAdmin 4/python/Lib/site-packages/README.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
This directory exists so that 3rd party packages can be installed
|
| 2 |
+
here. Read the source for site.py for more details.
|
pgsql/pgAdmin 4/python/Lib/site-packages/_virtualenv.py
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Patches that are applied at runtime to the virtual environment."""
|
| 2 |
+
|
| 3 |
+
from __future__ import annotations
|
| 4 |
+
|
| 5 |
+
import os
|
| 6 |
+
import sys
|
| 7 |
+
|
| 8 |
+
VIRTUALENV_PATCH_FILE = os.path.join(__file__)
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
def patch_dist(dist):
|
| 12 |
+
"""
|
| 13 |
+
Distutils allows user to configure some arguments via a configuration file:
|
| 14 |
+
https://docs.python.org/3/install/index.html#distutils-configuration-files.
|
| 15 |
+
|
| 16 |
+
Some of this arguments though don't make sense in context of the virtual environment files, let's fix them up.
|
| 17 |
+
""" # noqa: D205
|
| 18 |
+
# we cannot allow some install config as that would get packages installed outside of the virtual environment
|
| 19 |
+
old_parse_config_files = dist.Distribution.parse_config_files
|
| 20 |
+
|
| 21 |
+
def parse_config_files(self, *args, **kwargs):
|
| 22 |
+
result = old_parse_config_files(self, *args, **kwargs)
|
| 23 |
+
install = self.get_option_dict("install")
|
| 24 |
+
|
| 25 |
+
if "prefix" in install: # the prefix governs where to install the libraries
|
| 26 |
+
install["prefix"] = VIRTUALENV_PATCH_FILE, os.path.abspath(sys.prefix)
|
| 27 |
+
for base in ("purelib", "platlib", "headers", "scripts", "data"):
|
| 28 |
+
key = f"install_{base}"
|
| 29 |
+
if key in install: # do not allow global configs to hijack venv paths
|
| 30 |
+
install.pop(key, None)
|
| 31 |
+
return result
|
| 32 |
+
|
| 33 |
+
dist.Distribution.parse_config_files = parse_config_files
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
# Import hook that patches some modules to ignore configuration values that break package installation in case
|
| 37 |
+
# of virtual environments.
|
| 38 |
+
_DISTUTILS_PATCH = "distutils.dist", "setuptools.dist"
|
| 39 |
+
# https://docs.python.org/3/library/importlib.html#setting-up-an-importer
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
class _Finder:
|
| 43 |
+
"""A meta path finder that allows patching the imported distutils modules."""
|
| 44 |
+
|
| 45 |
+
fullname = None
|
| 46 |
+
|
| 47 |
+
# lock[0] is threading.Lock(), but initialized lazily to avoid importing threading very early at startup,
|
| 48 |
+
# because there are gevent-based applications that need to be first to import threading by themselves.
|
| 49 |
+
# See https://github.com/pypa/virtualenv/issues/1895 for details.
|
| 50 |
+
lock = [] # noqa: RUF012
|
| 51 |
+
|
| 52 |
+
def find_spec(self, fullname, path, target=None): # noqa: ARG002
|
| 53 |
+
if fullname in _DISTUTILS_PATCH and self.fullname is None: # noqa: PLR1702
|
| 54 |
+
# initialize lock[0] lazily
|
| 55 |
+
if len(self.lock) == 0:
|
| 56 |
+
import threading # noqa: PLC0415
|
| 57 |
+
|
| 58 |
+
lock = threading.Lock()
|
| 59 |
+
# there is possibility that two threads T1 and T2 are simultaneously running into find_spec,
|
| 60 |
+
# observing .lock as empty, and further going into hereby initialization. However due to the GIL,
|
| 61 |
+
# list.append() operation is atomic and this way only one of the threads will "win" to put the lock
|
| 62 |
+
# - that every thread will use - into .lock[0].
|
| 63 |
+
# https://docs.python.org/3/faq/library.html#what-kinds-of-global-value-mutation-are-thread-safe
|
| 64 |
+
self.lock.append(lock)
|
| 65 |
+
|
| 66 |
+
from functools import partial # noqa: PLC0415
|
| 67 |
+
from importlib.util import find_spec # noqa: PLC0415
|
| 68 |
+
|
| 69 |
+
with self.lock[0]:
|
| 70 |
+
self.fullname = fullname
|
| 71 |
+
try:
|
| 72 |
+
spec = find_spec(fullname, path)
|
| 73 |
+
if spec is not None:
|
| 74 |
+
# https://www.python.org/dev/peps/pep-0451/#how-loading-will-work
|
| 75 |
+
is_new_api = hasattr(spec.loader, "exec_module")
|
| 76 |
+
func_name = "exec_module" if is_new_api else "load_module"
|
| 77 |
+
old = getattr(spec.loader, func_name)
|
| 78 |
+
func = self.exec_module if is_new_api else self.load_module
|
| 79 |
+
if old is not func:
|
| 80 |
+
try: # noqa: SIM105
|
| 81 |
+
setattr(spec.loader, func_name, partial(func, old))
|
| 82 |
+
except AttributeError:
|
| 83 |
+
pass # C-Extension loaders are r/o such as zipimporter with <3.7
|
| 84 |
+
return spec
|
| 85 |
+
finally:
|
| 86 |
+
self.fullname = None
|
| 87 |
+
return None
|
| 88 |
+
|
| 89 |
+
@staticmethod
|
| 90 |
+
def exec_module(old, module):
|
| 91 |
+
old(module)
|
| 92 |
+
if module.__name__ in _DISTUTILS_PATCH:
|
| 93 |
+
patch_dist(module)
|
| 94 |
+
|
| 95 |
+
@staticmethod
|
| 96 |
+
def load_module(old, name):
|
| 97 |
+
module = old(name)
|
| 98 |
+
if module.__name__ in _DISTUTILS_PATCH:
|
| 99 |
+
patch_dist(module)
|
| 100 |
+
return module
|
| 101 |
+
|
| 102 |
+
|
| 103 |
+
sys.meta_path.insert(0, _Finder())
|
pgsql/pgAdmin 4/python/Lib/site-packages/adodbapi/__init__.py
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""adodbapi - A python DB API 2.0 (PEP 249) interface to Microsoft ADO
|
| 2 |
+
|
| 3 |
+
Copyright (C) 2002 Henrik Ekelund, version 2.1 by Vernon Cole
|
| 4 |
+
* http://sourceforge.net/projects/adodbapi
|
| 5 |
+
"""
|
| 6 |
+
import sys
|
| 7 |
+
import time
|
| 8 |
+
|
| 9 |
+
from .adodbapi import Connection, Cursor, __version__, connect, dateconverter
|
| 10 |
+
from .apibase import (
|
| 11 |
+
BINARY,
|
| 12 |
+
DATETIME,
|
| 13 |
+
NUMBER,
|
| 14 |
+
ROWID,
|
| 15 |
+
STRING,
|
| 16 |
+
DatabaseError,
|
| 17 |
+
DataError,
|
| 18 |
+
Error,
|
| 19 |
+
FetchFailedError,
|
| 20 |
+
IntegrityError,
|
| 21 |
+
InterfaceError,
|
| 22 |
+
InternalError,
|
| 23 |
+
NotSupportedError,
|
| 24 |
+
OperationalError,
|
| 25 |
+
ProgrammingError,
|
| 26 |
+
Warning,
|
| 27 |
+
apilevel,
|
| 28 |
+
paramstyle,
|
| 29 |
+
threadsafety,
|
| 30 |
+
)
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
def Binary(aString):
|
| 34 |
+
"""This function constructs an object capable of holding a binary (long) string value."""
|
| 35 |
+
return bytes(aString)
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
def Date(year, month, day):
|
| 39 |
+
"This function constructs an object holding a date value."
|
| 40 |
+
return dateconverter.Date(year, month, day)
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
def Time(hour, minute, second):
|
| 44 |
+
"This function constructs an object holding a time value."
|
| 45 |
+
return dateconverter.Time(hour, minute, second)
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
def Timestamp(year, month, day, hour, minute, second):
|
| 49 |
+
"This function constructs an object holding a time stamp value."
|
| 50 |
+
return dateconverter.Timestamp(year, month, day, hour, minute, second)
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
def DateFromTicks(ticks):
|
| 54 |
+
"""This function constructs an object holding a date value from the given ticks value
|
| 55 |
+
(number of seconds since the epoch; see the documentation of the standard Python time module for details).
|
| 56 |
+
"""
|
| 57 |
+
return Date(*time.gmtime(ticks)[:3])
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
def TimeFromTicks(ticks):
|
| 61 |
+
"""This function constructs an object holding a time value from the given ticks value
|
| 62 |
+
(number of seconds since the epoch; see the documentation of the standard Python time module for details).
|
| 63 |
+
"""
|
| 64 |
+
return Time(*time.gmtime(ticks)[3:6])
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
def TimestampFromTicks(ticks):
|
| 68 |
+
"""This function constructs an object holding a time stamp value from the given
|
| 69 |
+
ticks value (number of seconds since the epoch;
|
| 70 |
+
see the documentation of the standard Python time module for details)."""
|
| 71 |
+
return Timestamp(*time.gmtime(ticks)[:6])
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
version = "adodbapi v" + __version__
|
pgsql/pgAdmin 4/python/Lib/site-packages/adodbapi/ado_consts.py
ADDED
|
@@ -0,0 +1,281 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ADO enumerated constants documented on MSDN:
|
| 2 |
+
# http://msdn.microsoft.com/en-us/library/ms678353(VS.85).aspx
|
| 3 |
+
|
| 4 |
+
# IsolationLevelEnum
|
| 5 |
+
adXactUnspecified = -1
|
| 6 |
+
adXactBrowse = 0x100
|
| 7 |
+
adXactChaos = 0x10
|
| 8 |
+
adXactCursorStability = 0x1000
|
| 9 |
+
adXactIsolated = 0x100000
|
| 10 |
+
adXactReadCommitted = 0x1000
|
| 11 |
+
adXactReadUncommitted = 0x100
|
| 12 |
+
adXactRepeatableRead = 0x10000
|
| 13 |
+
adXactSerializable = 0x100000
|
| 14 |
+
|
| 15 |
+
# CursorLocationEnum
|
| 16 |
+
adUseClient = 3
|
| 17 |
+
adUseServer = 2
|
| 18 |
+
|
| 19 |
+
# CursorTypeEnum
|
| 20 |
+
adOpenDynamic = 2
|
| 21 |
+
adOpenForwardOnly = 0
|
| 22 |
+
adOpenKeyset = 1
|
| 23 |
+
adOpenStatic = 3
|
| 24 |
+
adOpenUnspecified = -1
|
| 25 |
+
|
| 26 |
+
# CommandTypeEnum
|
| 27 |
+
adCmdText = 1
|
| 28 |
+
adCmdStoredProc = 4
|
| 29 |
+
adSchemaTables = 20
|
| 30 |
+
|
| 31 |
+
# ParameterDirectionEnum
|
| 32 |
+
adParamInput = 1
|
| 33 |
+
adParamInputOutput = 3
|
| 34 |
+
adParamOutput = 2
|
| 35 |
+
adParamReturnValue = 4
|
| 36 |
+
adParamUnknown = 0
|
| 37 |
+
directions = {
|
| 38 |
+
0: "Unknown",
|
| 39 |
+
1: "Input",
|
| 40 |
+
2: "Output",
|
| 41 |
+
3: "InputOutput",
|
| 42 |
+
4: "Return",
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
def ado_direction_name(ado_dir):
|
| 47 |
+
try:
|
| 48 |
+
return "adParam" + directions[ado_dir]
|
| 49 |
+
except:
|
| 50 |
+
return "unknown direction (" + str(ado_dir) + ")"
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
# ObjectStateEnum
|
| 54 |
+
adStateClosed = 0
|
| 55 |
+
adStateOpen = 1
|
| 56 |
+
adStateConnecting = 2
|
| 57 |
+
adStateExecuting = 4
|
| 58 |
+
adStateFetching = 8
|
| 59 |
+
|
| 60 |
+
# FieldAttributeEnum
|
| 61 |
+
adFldMayBeNull = 0x40
|
| 62 |
+
|
| 63 |
+
# ConnectModeEnum
|
| 64 |
+
adModeUnknown = 0
|
| 65 |
+
adModeRead = 1
|
| 66 |
+
adModeWrite = 2
|
| 67 |
+
adModeReadWrite = 3
|
| 68 |
+
adModeShareDenyRead = 4
|
| 69 |
+
adModeShareDenyWrite = 8
|
| 70 |
+
adModeShareExclusive = 12
|
| 71 |
+
adModeShareDenyNone = 16
|
| 72 |
+
adModeRecursive = 0x400000
|
| 73 |
+
|
| 74 |
+
# XactAttributeEnum
|
| 75 |
+
adXactCommitRetaining = 131072
|
| 76 |
+
adXactAbortRetaining = 262144
|
| 77 |
+
|
| 78 |
+
ado_error_TIMEOUT = -2147217871
|
| 79 |
+
|
| 80 |
+
# DataTypeEnum - ADO Data types documented at:
|
| 81 |
+
# http://msdn2.microsoft.com/en-us/library/ms675318.aspx
|
| 82 |
+
adArray = 0x2000
|
| 83 |
+
adEmpty = 0x0
|
| 84 |
+
adBSTR = 0x8
|
| 85 |
+
adBigInt = 0x14
|
| 86 |
+
adBinary = 0x80
|
| 87 |
+
adBoolean = 0xB
|
| 88 |
+
adChapter = 0x88
|
| 89 |
+
adChar = 0x81
|
| 90 |
+
adCurrency = 0x6
|
| 91 |
+
adDBDate = 0x85
|
| 92 |
+
adDBTime = 0x86
|
| 93 |
+
adDBTimeStamp = 0x87
|
| 94 |
+
adDate = 0x7
|
| 95 |
+
adDecimal = 0xE
|
| 96 |
+
adDouble = 0x5
|
| 97 |
+
adError = 0xA
|
| 98 |
+
adFileTime = 0x40
|
| 99 |
+
adGUID = 0x48
|
| 100 |
+
adIDispatch = 0x9
|
| 101 |
+
adIUnknown = 0xD
|
| 102 |
+
adInteger = 0x3
|
| 103 |
+
adLongVarBinary = 0xCD
|
| 104 |
+
adLongVarChar = 0xC9
|
| 105 |
+
adLongVarWChar = 0xCB
|
| 106 |
+
adNumeric = 0x83
|
| 107 |
+
adPropVariant = 0x8A
|
| 108 |
+
adSingle = 0x4
|
| 109 |
+
adSmallInt = 0x2
|
| 110 |
+
adTinyInt = 0x10
|
| 111 |
+
adUnsignedBigInt = 0x15
|
| 112 |
+
adUnsignedInt = 0x13
|
| 113 |
+
adUnsignedSmallInt = 0x12
|
| 114 |
+
adUnsignedTinyInt = 0x11
|
| 115 |
+
adUserDefined = 0x84
|
| 116 |
+
adVarBinary = 0xCC
|
| 117 |
+
adVarChar = 0xC8
|
| 118 |
+
adVarNumeric = 0x8B
|
| 119 |
+
adVarWChar = 0xCA
|
| 120 |
+
adVariant = 0xC
|
| 121 |
+
adWChar = 0x82
|
| 122 |
+
# Additional constants used by introspection but not ADO itself
|
| 123 |
+
AUTO_FIELD_MARKER = -1000
|
| 124 |
+
|
| 125 |
+
adTypeNames = {
|
| 126 |
+
adBSTR: "adBSTR",
|
| 127 |
+
adBigInt: "adBigInt",
|
| 128 |
+
adBinary: "adBinary",
|
| 129 |
+
adBoolean: "adBoolean",
|
| 130 |
+
adChapter: "adChapter",
|
| 131 |
+
adChar: "adChar",
|
| 132 |
+
adCurrency: "adCurrency",
|
| 133 |
+
adDBDate: "adDBDate",
|
| 134 |
+
adDBTime: "adDBTime",
|
| 135 |
+
adDBTimeStamp: "adDBTimeStamp",
|
| 136 |
+
adDate: "adDate",
|
| 137 |
+
adDecimal: "adDecimal",
|
| 138 |
+
adDouble: "adDouble",
|
| 139 |
+
adEmpty: "adEmpty",
|
| 140 |
+
adError: "adError",
|
| 141 |
+
adFileTime: "adFileTime",
|
| 142 |
+
adGUID: "adGUID",
|
| 143 |
+
adIDispatch: "adIDispatch",
|
| 144 |
+
adIUnknown: "adIUnknown",
|
| 145 |
+
adInteger: "adInteger",
|
| 146 |
+
adLongVarBinary: "adLongVarBinary",
|
| 147 |
+
adLongVarChar: "adLongVarChar",
|
| 148 |
+
adLongVarWChar: "adLongVarWChar",
|
| 149 |
+
adNumeric: "adNumeric",
|
| 150 |
+
adPropVariant: "adPropVariant",
|
| 151 |
+
adSingle: "adSingle",
|
| 152 |
+
adSmallInt: "adSmallInt",
|
| 153 |
+
adTinyInt: "adTinyInt",
|
| 154 |
+
adUnsignedBigInt: "adUnsignedBigInt",
|
| 155 |
+
adUnsignedInt: "adUnsignedInt",
|
| 156 |
+
adUnsignedSmallInt: "adUnsignedSmallInt",
|
| 157 |
+
adUnsignedTinyInt: "adUnsignedTinyInt",
|
| 158 |
+
adUserDefined: "adUserDefined",
|
| 159 |
+
adVarBinary: "adVarBinary",
|
| 160 |
+
adVarChar: "adVarChar",
|
| 161 |
+
adVarNumeric: "adVarNumeric",
|
| 162 |
+
adVarWChar: "adVarWChar",
|
| 163 |
+
adVariant: "adVariant",
|
| 164 |
+
adWChar: "adWChar",
|
| 165 |
+
}
|
| 166 |
+
|
| 167 |
+
|
| 168 |
+
def ado_type_name(ado_type):
|
| 169 |
+
return adTypeNames.get(ado_type, "unknown type (" + str(ado_type) + ")")
|
| 170 |
+
|
| 171 |
+
|
| 172 |
+
# here in decimal, sorted by value
|
| 173 |
+
# adEmpty 0 Specifies no value (DBTYPE_EMPTY).
|
| 174 |
+
# adSmallInt 2 Indicates a two-byte signed integer (DBTYPE_I2).
|
| 175 |
+
# adInteger 3 Indicates a four-byte signed integer (DBTYPE_I4).
|
| 176 |
+
# adSingle 4 Indicates a single-precision floating-point value (DBTYPE_R4).
|
| 177 |
+
# adDouble 5 Indicates a double-precision floating-point value (DBTYPE_R8).
|
| 178 |
+
# adCurrency 6 Indicates a currency value (DBTYPE_CY). Currency is a fixed-point number
|
| 179 |
+
# with four digits to the right of the decimal point. It is stored in an eight-byte signed integer scaled by 10,000.
|
| 180 |
+
# adDate 7 Indicates a date value (DBTYPE_DATE). A date is stored as a double, the whole part of which is
|
| 181 |
+
# the number of days since December 30, 1899, and the fractional part of which is the fraction of a day.
|
| 182 |
+
# adBSTR 8 Indicates a null-terminated character string (Unicode) (DBTYPE_BSTR).
|
| 183 |
+
# adIDispatch 9 Indicates a pointer to an IDispatch interface on a COM object (DBTYPE_IDISPATCH).
|
| 184 |
+
# adError 10 Indicates a 32-bit error code (DBTYPE_ERROR).
|
| 185 |
+
# adBoolean 11 Indicates a boolean value (DBTYPE_BOOL).
|
| 186 |
+
# adVariant 12 Indicates an Automation Variant (DBTYPE_VARIANT).
|
| 187 |
+
# adIUnknown 13 Indicates a pointer to an IUnknown interface on a COM object (DBTYPE_IUNKNOWN).
|
| 188 |
+
# adDecimal 14 Indicates an exact numeric value with a fixed precision and scale (DBTYPE_DECIMAL).
|
| 189 |
+
# adTinyInt 16 Indicates a one-byte signed integer (DBTYPE_I1).
|
| 190 |
+
# adUnsignedTinyInt 17 Indicates a one-byte unsigned integer (DBTYPE_UI1).
|
| 191 |
+
# adUnsignedSmallInt 18 Indicates a two-byte unsigned integer (DBTYPE_UI2).
|
| 192 |
+
# adUnsignedInt 19 Indicates a four-byte unsigned integer (DBTYPE_UI4).
|
| 193 |
+
# adBigInt 20 Indicates an eight-byte signed integer (DBTYPE_I8).
|
| 194 |
+
# adUnsignedBigInt 21 Indicates an eight-byte unsigned integer (DBTYPE_UI8).
|
| 195 |
+
# adFileTime 64 Indicates a 64-bit value representing the number of 100-nanosecond intervals since
|
| 196 |
+
# January 1, 1601 (DBTYPE_FILETIME).
|
| 197 |
+
# adGUID 72 Indicates a globally unique identifier (GUID) (DBTYPE_GUID).
|
| 198 |
+
# adBinary 128 Indicates a binary value (DBTYPE_BYTES).
|
| 199 |
+
# adChar 129 Indicates a string value (DBTYPE_STR).
|
| 200 |
+
# adWChar 130 Indicates a null-terminated Unicode character string (DBTYPE_WSTR).
|
| 201 |
+
# adNumeric 131 Indicates an exact numeric value with a fixed precision and scale (DBTYPE_NUMERIC).
|
| 202 |
+
# adUserDefined 132 Indicates a user-defined variable (DBTYPE_UDT).
|
| 203 |
+
# adUserDefined 132 Indicates a user-defined variable (DBTYPE_UDT).
|
| 204 |
+
# adDBDate 133 Indicates a date value (yyyymmdd) (DBTYPE_DBDATE).
|
| 205 |
+
# adDBTime 134 Indicates a time value (hhmmss) (DBTYPE_DBTIME).
|
| 206 |
+
# adDBTimeStamp 135 Indicates a date/time stamp (yyyymmddhhmmss plus a fraction in billionths) (DBTYPE_DBTIMESTAMP).
|
| 207 |
+
# adChapter 136 Indicates a four-byte chapter value that identifies rows in a child rowset (DBTYPE_HCHAPTER).
|
| 208 |
+
# adPropVariant 138 Indicates an Automation PROPVARIANT (DBTYPE_PROP_VARIANT).
|
| 209 |
+
# adVarNumeric 139 Indicates a numeric value (Parameter object only).
|
| 210 |
+
# adVarChar 200 Indicates a string value (Parameter object only).
|
| 211 |
+
# adLongVarChar 201 Indicates a long string value (Parameter object only).
|
| 212 |
+
# adVarWChar 202 Indicates a null-terminated Unicode character string (Parameter object only).
|
| 213 |
+
# adLongVarWChar 203 Indicates a long null-terminated Unicode string value (Parameter object only).
|
| 214 |
+
# adVarBinary 204 Indicates a binary value (Parameter object only).
|
| 215 |
+
# adLongVarBinary 205 Indicates a long binary value (Parameter object only).
|
| 216 |
+
# adArray (Does not apply to ADOX.) 0x2000 A flag value, always combined with another data type constant,
|
| 217 |
+
# that indicates an array of that other data type.
|
| 218 |
+
|
| 219 |
+
# Error codes to names
|
| 220 |
+
adoErrors = {
|
| 221 |
+
0xE7B: "adErrBoundToCommand",
|
| 222 |
+
0xE94: "adErrCannotComplete",
|
| 223 |
+
0xEA4: "adErrCantChangeConnection",
|
| 224 |
+
0xC94: "adErrCantChangeProvider",
|
| 225 |
+
0xE8C: "adErrCantConvertvalue",
|
| 226 |
+
0xE8D: "adErrCantCreate",
|
| 227 |
+
0xEA3: "adErrCatalogNotSet",
|
| 228 |
+
0xE8E: "adErrColumnNotOnThisRow",
|
| 229 |
+
0xD5D: "adErrDataConversion",
|
| 230 |
+
0xE89: "adErrDataOverflow",
|
| 231 |
+
0xE9A: "adErrDelResOutOfScope",
|
| 232 |
+
0xEA6: "adErrDenyNotSupported",
|
| 233 |
+
0xEA7: "adErrDenyTypeNotSupported",
|
| 234 |
+
0xCB3: "adErrFeatureNotAvailable",
|
| 235 |
+
0xEA5: "adErrFieldsUpdateFailed",
|
| 236 |
+
0xC93: "adErrIllegalOperation",
|
| 237 |
+
0xCAE: "adErrInTransaction",
|
| 238 |
+
0xE87: "adErrIntegrityViolation",
|
| 239 |
+
0xBB9: "adErrInvalidArgument",
|
| 240 |
+
0xE7D: "adErrInvalidConnection",
|
| 241 |
+
0xE7C: "adErrInvalidParamInfo",
|
| 242 |
+
0xE82: "adErrInvalidTransaction",
|
| 243 |
+
0xE91: "adErrInvalidURL",
|
| 244 |
+
0xCC1: "adErrItemNotFound",
|
| 245 |
+
0xBCD: "adErrNoCurrentRecord",
|
| 246 |
+
0xE83: "adErrNotExecuting",
|
| 247 |
+
0xE7E: "adErrNotReentrant",
|
| 248 |
+
0xE78: "adErrObjectClosed",
|
| 249 |
+
0xD27: "adErrObjectInCollection",
|
| 250 |
+
0xD5C: "adErrObjectNotSet",
|
| 251 |
+
0xE79: "adErrObjectOpen",
|
| 252 |
+
0xBBA: "adErrOpeningFile",
|
| 253 |
+
0xE80: "adErrOperationCancelled",
|
| 254 |
+
0xE96: "adErrOutOfSpace",
|
| 255 |
+
0xE88: "adErrPermissionDenied",
|
| 256 |
+
0xE9E: "adErrPropConflicting",
|
| 257 |
+
0xE9B: "adErrPropInvalidColumn",
|
| 258 |
+
0xE9C: "adErrPropInvalidOption",
|
| 259 |
+
0xE9D: "adErrPropInvalidValue",
|
| 260 |
+
0xE9F: "adErrPropNotAllSettable",
|
| 261 |
+
0xEA0: "adErrPropNotSet",
|
| 262 |
+
0xEA1: "adErrPropNotSettable",
|
| 263 |
+
0xEA2: "adErrPropNotSupported",
|
| 264 |
+
0xBB8: "adErrProviderFailed",
|
| 265 |
+
0xE7A: "adErrProviderNotFound",
|
| 266 |
+
0xBBB: "adErrReadFile",
|
| 267 |
+
0xE93: "adErrResourceExists",
|
| 268 |
+
0xE92: "adErrResourceLocked",
|
| 269 |
+
0xE97: "adErrResourceOutOfScope",
|
| 270 |
+
0xE8A: "adErrSchemaViolation",
|
| 271 |
+
0xE8B: "adErrSignMismatch",
|
| 272 |
+
0xE81: "adErrStillConnecting",
|
| 273 |
+
0xE7F: "adErrStillExecuting",
|
| 274 |
+
0xE90: "adErrTreePermissionDenied",
|
| 275 |
+
0xE8F: "adErrURLDoesNotExist",
|
| 276 |
+
0xE99: "adErrURLNamedRowDoesNotExist",
|
| 277 |
+
0xE98: "adErrUnavailable",
|
| 278 |
+
0xE84: "adErrUnsafeOperation",
|
| 279 |
+
0xE95: "adErrVolumeNotFound",
|
| 280 |
+
0xBBC: "adErrWriteFile",
|
| 281 |
+
}
|
pgsql/pgAdmin 4/python/Lib/site-packages/adodbapi/adodbapi.py
ADDED
|
@@ -0,0 +1,1223 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""adodbapi - A python DB API 2.0 (PEP 249) interface to Microsoft ADO
|
| 2 |
+
|
| 3 |
+
Copyright (C) 2002 Henrik Ekelund, versions 2.1 and later by Vernon Cole
|
| 4 |
+
* http://sourceforge.net/projects/pywin32
|
| 5 |
+
* https://github.com/mhammond/pywin32
|
| 6 |
+
* http://sourceforge.net/projects/adodbapi
|
| 7 |
+
|
| 8 |
+
This library is free software; you can redistribute it and/or
|
| 9 |
+
modify it under the terms of the GNU Lesser General Public
|
| 10 |
+
License as published by the Free Software Foundation; either
|
| 11 |
+
version 2.1 of the License, or (at your option) any later version.
|
| 12 |
+
|
| 13 |
+
This library is distributed in the hope that it will be useful,
|
| 14 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 15 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
| 16 |
+
Lesser General Public License for more details.
|
| 17 |
+
|
| 18 |
+
You should have received a copy of the GNU Lesser General Public
|
| 19 |
+
License along with this library; if not, write to the Free Software
|
| 20 |
+
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
| 21 |
+
|
| 22 |
+
django adaptations and refactoring by Adam Vandenberg
|
| 23 |
+
|
| 24 |
+
DB-API 2.0 specification: http://www.python.org/dev/peps/pep-0249/
|
| 25 |
+
|
| 26 |
+
This module source should run correctly in CPython versions 2.7 and later,
|
| 27 |
+
or IronPython version 2.7 and later,
|
| 28 |
+
or, after running through 2to3.py, CPython 3.4 or later.
|
| 29 |
+
"""
|
| 30 |
+
|
| 31 |
+
__version__ = "2.6.2.0"
|
| 32 |
+
version = "adodbapi v" + __version__
|
| 33 |
+
|
| 34 |
+
import copy
|
| 35 |
+
import decimal
|
| 36 |
+
import os
|
| 37 |
+
import sys
|
| 38 |
+
import weakref
|
| 39 |
+
|
| 40 |
+
from . import ado_consts as adc, apibase as api, process_connect_string
|
| 41 |
+
|
| 42 |
+
try:
|
| 43 |
+
verbose = int(os.environ["ADODBAPI_VERBOSE"])
|
| 44 |
+
except:
|
| 45 |
+
verbose = False
|
| 46 |
+
if verbose:
|
| 47 |
+
print(version)
|
| 48 |
+
|
| 49 |
+
# --- define objects to smooth out IronPython <-> CPython differences
|
| 50 |
+
onWin32 = False # assume the worst
|
| 51 |
+
if api.onIronPython:
|
| 52 |
+
from clr import Reference
|
| 53 |
+
from System import (
|
| 54 |
+
Activator,
|
| 55 |
+
Array,
|
| 56 |
+
Byte,
|
| 57 |
+
DateTime,
|
| 58 |
+
DBNull,
|
| 59 |
+
Decimal as SystemDecimal,
|
| 60 |
+
Type,
|
| 61 |
+
)
|
| 62 |
+
|
| 63 |
+
def Dispatch(dispatch):
|
| 64 |
+
type = Type.GetTypeFromProgID(dispatch)
|
| 65 |
+
return Activator.CreateInstance(type)
|
| 66 |
+
|
| 67 |
+
def getIndexedValue(obj, index):
|
| 68 |
+
return obj.Item[index]
|
| 69 |
+
|
| 70 |
+
else: # try pywin32
|
| 71 |
+
try:
|
| 72 |
+
import pythoncom
|
| 73 |
+
import pywintypes
|
| 74 |
+
import win32com.client
|
| 75 |
+
|
| 76 |
+
onWin32 = True
|
| 77 |
+
|
| 78 |
+
def Dispatch(dispatch):
|
| 79 |
+
return win32com.client.Dispatch(dispatch)
|
| 80 |
+
|
| 81 |
+
except ImportError:
|
| 82 |
+
import warnings
|
| 83 |
+
|
| 84 |
+
warnings.warn(
|
| 85 |
+
"pywin32 package (or IronPython) required for adodbapi.", ImportWarning
|
| 86 |
+
)
|
| 87 |
+
|
| 88 |
+
def getIndexedValue(obj, index):
|
| 89 |
+
return obj(index)
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
from collections.abc import Mapping
|
| 93 |
+
|
| 94 |
+
# --- define objects to smooth out Python3000 <-> Python 2.x differences
|
| 95 |
+
unicodeType = str
|
| 96 |
+
longType = int
|
| 97 |
+
StringTypes = str
|
| 98 |
+
maxint = sys.maxsize
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
# ----------------- The .connect method -----------------
|
| 102 |
+
def make_COM_connecter():
|
| 103 |
+
try:
|
| 104 |
+
if onWin32:
|
| 105 |
+
pythoncom.CoInitialize() # v2.1 Paj
|
| 106 |
+
c = Dispatch("ADODB.Connection") # connect _after_ CoIninialize v2.1.1 adamvan
|
| 107 |
+
except:
|
| 108 |
+
raise api.InterfaceError(
|
| 109 |
+
"Windows COM Error: Dispatch('ADODB.Connection') failed."
|
| 110 |
+
)
|
| 111 |
+
return c
|
| 112 |
+
|
| 113 |
+
|
| 114 |
+
def connect(*args, **kwargs): # --> a db-api connection object
|
| 115 |
+
"""Connect to a database.
|
| 116 |
+
|
| 117 |
+
call using:
|
| 118 |
+
:connection_string -- An ADODB formatted connection string, see:
|
| 119 |
+
* http://www.connectionstrings.com
|
| 120 |
+
* http://www.asp101.com/articles/john/connstring/default.asp
|
| 121 |
+
:timeout -- A command timeout value, in seconds (default 30 seconds)
|
| 122 |
+
"""
|
| 123 |
+
co = Connection() # make an empty connection object
|
| 124 |
+
|
| 125 |
+
kwargs = process_connect_string.process(args, kwargs, True)
|
| 126 |
+
|
| 127 |
+
try: # connect to the database, using the connection information in kwargs
|
| 128 |
+
co.connect(kwargs)
|
| 129 |
+
return co
|
| 130 |
+
except Exception as e:
|
| 131 |
+
message = 'Error opening connection to "%s"' % co.connection_string
|
| 132 |
+
raise api.OperationalError(e, message)
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
# so you could use something like:
|
| 136 |
+
# myConnection.paramstyle = 'named'
|
| 137 |
+
# The programmer may also change the default.
|
| 138 |
+
# For example, if I were using django, I would say:
|
| 139 |
+
# import adodbapi as Database
|
| 140 |
+
# Database.adodbapi.paramstyle = 'format'
|
| 141 |
+
|
| 142 |
+
# ------- other module level defaults --------
|
| 143 |
+
defaultIsolationLevel = adc.adXactReadCommitted
|
| 144 |
+
# Set defaultIsolationLevel on module level before creating the connection.
|
| 145 |
+
# For example:
|
| 146 |
+
# import adodbapi, ado_consts
|
| 147 |
+
# adodbapi.adodbapi.defaultIsolationLevel=ado_consts.adXactBrowse"
|
| 148 |
+
#
|
| 149 |
+
# Set defaultCursorLocation on module level before creating the connection.
|
| 150 |
+
# It may be one of the "adUse..." consts.
|
| 151 |
+
defaultCursorLocation = adc.adUseClient # changed from adUseServer as of v 2.3.0
|
| 152 |
+
|
| 153 |
+
dateconverter = api.pythonDateTimeConverter() # default
|
| 154 |
+
|
| 155 |
+
|
| 156 |
+
def format_parameters(ADOparameters, show_value=False):
|
| 157 |
+
"""Format a collection of ADO Command Parameters.
|
| 158 |
+
|
| 159 |
+
Used by error reporting in _execute_command.
|
| 160 |
+
"""
|
| 161 |
+
try:
|
| 162 |
+
if show_value:
|
| 163 |
+
desc = [
|
| 164 |
+
'Name: %s, Dir.: %s, Type: %s, Size: %s, Value: "%s", Precision: %s, NumericScale: %s'
|
| 165 |
+
% (
|
| 166 |
+
p.Name,
|
| 167 |
+
adc.directions[p.Direction],
|
| 168 |
+
adc.adTypeNames.get(p.Type, str(p.Type) + " (unknown type)"),
|
| 169 |
+
p.Size,
|
| 170 |
+
p.Value,
|
| 171 |
+
p.Precision,
|
| 172 |
+
p.NumericScale,
|
| 173 |
+
)
|
| 174 |
+
for p in ADOparameters
|
| 175 |
+
]
|
| 176 |
+
else:
|
| 177 |
+
desc = [
|
| 178 |
+
"Name: %s, Dir.: %s, Type: %s, Size: %s, Precision: %s, NumericScale: %s"
|
| 179 |
+
% (
|
| 180 |
+
p.Name,
|
| 181 |
+
adc.directions[p.Direction],
|
| 182 |
+
adc.adTypeNames.get(p.Type, str(p.Type) + " (unknown type)"),
|
| 183 |
+
p.Size,
|
| 184 |
+
p.Precision,
|
| 185 |
+
p.NumericScale,
|
| 186 |
+
)
|
| 187 |
+
for p in ADOparameters
|
| 188 |
+
]
|
| 189 |
+
return "[" + "\n".join(desc) + "]"
|
| 190 |
+
except:
|
| 191 |
+
return "[]"
|
| 192 |
+
|
| 193 |
+
|
| 194 |
+
def _configure_parameter(p, value, adotype, settings_known):
|
| 195 |
+
"""Configure the given ADO Parameter 'p' with the Python 'value'."""
|
| 196 |
+
|
| 197 |
+
if adotype in api.adoBinaryTypes:
|
| 198 |
+
p.Size = len(value)
|
| 199 |
+
p.AppendChunk(value)
|
| 200 |
+
|
| 201 |
+
elif isinstance(value, StringTypes): # v2.1 Jevon
|
| 202 |
+
L = len(value)
|
| 203 |
+
if adotype in api.adoStringTypes: # v2.2.1 Cole
|
| 204 |
+
if settings_known:
|
| 205 |
+
L = min(L, p.Size) # v2.1 Cole limit data to defined size
|
| 206 |
+
p.Value = value[:L] # v2.1 Jevon & v2.1 Cole
|
| 207 |
+
else:
|
| 208 |
+
p.Value = value # dont limit if db column is numeric
|
| 209 |
+
if L > 0: # v2.1 Cole something does not like p.Size as Zero
|
| 210 |
+
p.Size = L # v2.1 Jevon
|
| 211 |
+
|
| 212 |
+
elif isinstance(value, decimal.Decimal):
|
| 213 |
+
if api.onIronPython:
|
| 214 |
+
s = str(value)
|
| 215 |
+
p.Value = s
|
| 216 |
+
p.Size = len(s)
|
| 217 |
+
else:
|
| 218 |
+
p.Value = value
|
| 219 |
+
exponent = value.as_tuple()[2]
|
| 220 |
+
digit_count = len(value.as_tuple()[1])
|
| 221 |
+
p.Precision = digit_count
|
| 222 |
+
if exponent == 0:
|
| 223 |
+
p.NumericScale = 0
|
| 224 |
+
elif exponent < 0:
|
| 225 |
+
p.NumericScale = -exponent
|
| 226 |
+
if p.Precision < p.NumericScale:
|
| 227 |
+
p.Precision = p.NumericScale
|
| 228 |
+
else: # exponent > 0:
|
| 229 |
+
p.NumericScale = 0
|
| 230 |
+
p.Precision = digit_count + exponent
|
| 231 |
+
|
| 232 |
+
elif type(value) in dateconverter.types:
|
| 233 |
+
if settings_known and adotype in api.adoDateTimeTypes:
|
| 234 |
+
p.Value = dateconverter.COMDate(value)
|
| 235 |
+
else: # probably a string
|
| 236 |
+
# provide the date as a string in the format 'YYYY-MM-dd'
|
| 237 |
+
s = dateconverter.DateObjectToIsoFormatString(value)
|
| 238 |
+
p.Value = s
|
| 239 |
+
p.Size = len(s)
|
| 240 |
+
|
| 241 |
+
elif api.onIronPython and isinstance(value, longType): # Iron Python Long
|
| 242 |
+
s = str(value) # feature workaround for IPy 2.0
|
| 243 |
+
p.Value = s
|
| 244 |
+
|
| 245 |
+
elif adotype == adc.adEmpty: # ADO will not let you specify a null column
|
| 246 |
+
p.Type = (
|
| 247 |
+
adc.adInteger
|
| 248 |
+
) # so we will fake it to be an integer (just to have something)
|
| 249 |
+
p.Value = None # and pass in a Null *value*
|
| 250 |
+
|
| 251 |
+
# For any other type, set the value and let pythoncom do the right thing.
|
| 252 |
+
else:
|
| 253 |
+
p.Value = value
|
| 254 |
+
|
| 255 |
+
|
| 256 |
+
# # # # # ----- the Class that defines a connection ----- # # # # #
|
| 257 |
+
class Connection(object):
|
| 258 |
+
# include connection attributes as class attributes required by api definition.
|
| 259 |
+
Warning = api.Warning
|
| 260 |
+
Error = api.Error
|
| 261 |
+
InterfaceError = api.InterfaceError
|
| 262 |
+
DataError = api.DataError
|
| 263 |
+
DatabaseError = api.DatabaseError
|
| 264 |
+
OperationalError = api.OperationalError
|
| 265 |
+
IntegrityError = api.IntegrityError
|
| 266 |
+
InternalError = api.InternalError
|
| 267 |
+
NotSupportedError = api.NotSupportedError
|
| 268 |
+
ProgrammingError = api.ProgrammingError
|
| 269 |
+
FetchFailedError = api.FetchFailedError # (special for django)
|
| 270 |
+
# ...class attributes... (can be overridden by instance attributes)
|
| 271 |
+
verbose = api.verbose
|
| 272 |
+
|
| 273 |
+
@property
|
| 274 |
+
def dbapi(self): # a proposed db-api version 3 extension.
|
| 275 |
+
"Return a reference to the DBAPI module for this Connection."
|
| 276 |
+
return api
|
| 277 |
+
|
| 278 |
+
def __init__(self): # now define the instance attributes
|
| 279 |
+
self.connector = None
|
| 280 |
+
self.paramstyle = api.paramstyle
|
| 281 |
+
self.supportsTransactions = False
|
| 282 |
+
self.connection_string = ""
|
| 283 |
+
self.cursors = weakref.WeakValueDictionary()
|
| 284 |
+
self.dbms_name = ""
|
| 285 |
+
self.dbms_version = ""
|
| 286 |
+
self.errorhandler = None # use the standard error handler for this instance
|
| 287 |
+
self.transaction_level = 0 # 0 == Not in a transaction, at the top level
|
| 288 |
+
self._autocommit = False
|
| 289 |
+
|
| 290 |
+
def connect(self, kwargs, connection_maker=make_COM_connecter):
|
| 291 |
+
if verbose > 9:
|
| 292 |
+
print("kwargs=", repr(kwargs))
|
| 293 |
+
try:
|
| 294 |
+
self.connection_string = (
|
| 295 |
+
kwargs["connection_string"] % kwargs
|
| 296 |
+
) # insert keyword arguments
|
| 297 |
+
except Exception as e:
|
| 298 |
+
self._raiseConnectionError(
|
| 299 |
+
KeyError, "Python string format error in connection string->"
|
| 300 |
+
)
|
| 301 |
+
self.timeout = kwargs.get("timeout", 30)
|
| 302 |
+
self.mode = kwargs.get("mode", adc.adModeUnknown)
|
| 303 |
+
self.kwargs = kwargs
|
| 304 |
+
if verbose:
|
| 305 |
+
print('%s attempting: "%s"' % (version, self.connection_string))
|
| 306 |
+
self.connector = connection_maker()
|
| 307 |
+
self.connector.ConnectionTimeout = self.timeout
|
| 308 |
+
self.connector.ConnectionString = self.connection_string
|
| 309 |
+
self.connector.Mode = self.mode
|
| 310 |
+
|
| 311 |
+
try:
|
| 312 |
+
self.connector.Open() # Open the ADO connection
|
| 313 |
+
except api.Error:
|
| 314 |
+
self._raiseConnectionError(
|
| 315 |
+
api.DatabaseError,
|
| 316 |
+
"ADO error trying to Open=%s" % self.connection_string,
|
| 317 |
+
)
|
| 318 |
+
|
| 319 |
+
try: # Stefan Fuchs; support WINCCOLEDBProvider
|
| 320 |
+
if getIndexedValue(self.connector.Properties, "Transaction DDL").Value != 0:
|
| 321 |
+
self.supportsTransactions = True
|
| 322 |
+
except pywintypes.com_error:
|
| 323 |
+
pass # Stefan Fuchs
|
| 324 |
+
self.dbms_name = getIndexedValue(self.connector.Properties, "DBMS Name").Value
|
| 325 |
+
try: # Stefan Fuchs
|
| 326 |
+
self.dbms_version = getIndexedValue(
|
| 327 |
+
self.connector.Properties, "DBMS Version"
|
| 328 |
+
).Value
|
| 329 |
+
except pywintypes.com_error:
|
| 330 |
+
pass # Stefan Fuchs
|
| 331 |
+
self.connector.CursorLocation = defaultCursorLocation # v2.1 Rose
|
| 332 |
+
if self.supportsTransactions:
|
| 333 |
+
self.connector.IsolationLevel = defaultIsolationLevel
|
| 334 |
+
self._autocommit = bool(kwargs.get("autocommit", False))
|
| 335 |
+
if not self._autocommit:
|
| 336 |
+
self.transaction_level = (
|
| 337 |
+
self.connector.BeginTrans()
|
| 338 |
+
) # Disables autocommit & inits transaction_level
|
| 339 |
+
else:
|
| 340 |
+
self._autocommit = True
|
| 341 |
+
if "paramstyle" in kwargs:
|
| 342 |
+
self.paramstyle = kwargs["paramstyle"] # let setattr do the error checking
|
| 343 |
+
self.messages = []
|
| 344 |
+
if verbose:
|
| 345 |
+
print("adodbapi New connection at %X" % id(self))
|
| 346 |
+
|
| 347 |
+
def _raiseConnectionError(self, errorclass, errorvalue):
|
| 348 |
+
eh = self.errorhandler
|
| 349 |
+
if eh is None:
|
| 350 |
+
eh = api.standardErrorHandler
|
| 351 |
+
eh(self, None, errorclass, errorvalue)
|
| 352 |
+
|
| 353 |
+
def _closeAdoConnection(self): # all v2.1 Rose
|
| 354 |
+
"""close the underlying ADO Connection object,
|
| 355 |
+
rolling it back first if it supports transactions."""
|
| 356 |
+
if self.connector is None:
|
| 357 |
+
return
|
| 358 |
+
if not self._autocommit:
|
| 359 |
+
if self.transaction_level:
|
| 360 |
+
try:
|
| 361 |
+
self.connector.RollbackTrans()
|
| 362 |
+
except:
|
| 363 |
+
pass
|
| 364 |
+
self.connector.Close()
|
| 365 |
+
if verbose:
|
| 366 |
+
print("adodbapi Closed connection at %X" % id(self))
|
| 367 |
+
|
| 368 |
+
def close(self):
|
| 369 |
+
"""Close the connection now (rather than whenever __del__ is called).
|
| 370 |
+
|
| 371 |
+
The connection will be unusable from this point forward;
|
| 372 |
+
an Error (or subclass) exception will be raised if any operation is attempted with the connection.
|
| 373 |
+
The same applies to all cursor objects trying to use the connection.
|
| 374 |
+
"""
|
| 375 |
+
for crsr in list(self.cursors.values())[
|
| 376 |
+
:
|
| 377 |
+
]: # copy the list, then close each one
|
| 378 |
+
crsr.close(dont_tell_me=True) # close without back-link clearing
|
| 379 |
+
self.messages = []
|
| 380 |
+
try:
|
| 381 |
+
self._closeAdoConnection() # v2.1 Rose
|
| 382 |
+
except Exception as e:
|
| 383 |
+
self._raiseConnectionError(sys.exc_info()[0], sys.exc_info()[1])
|
| 384 |
+
|
| 385 |
+
self.connector = None # v2.4.2.2 fix subtle timeout bug
|
| 386 |
+
# per M.Hammond: "I expect the benefits of uninitializing are probably fairly small,
|
| 387 |
+
# so never uninitializing will probably not cause any problems."
|
| 388 |
+
|
| 389 |
+
def commit(self):
|
| 390 |
+
"""Commit any pending transaction to the database.
|
| 391 |
+
|
| 392 |
+
Note that if the database supports an auto-commit feature,
|
| 393 |
+
this must be initially off. An interface method may be provided to turn it back on.
|
| 394 |
+
Database modules that do not support transactions should implement this method with void functionality.
|
| 395 |
+
"""
|
| 396 |
+
self.messages = []
|
| 397 |
+
if not self.supportsTransactions:
|
| 398 |
+
return
|
| 399 |
+
|
| 400 |
+
try:
|
| 401 |
+
self.transaction_level = self.connector.CommitTrans()
|
| 402 |
+
if verbose > 1:
|
| 403 |
+
print("commit done on connection at %X" % id(self))
|
| 404 |
+
if not (
|
| 405 |
+
self._autocommit
|
| 406 |
+
or (self.connector.Attributes & adc.adXactAbortRetaining)
|
| 407 |
+
):
|
| 408 |
+
# If attributes has adXactCommitRetaining it performs retaining commits that is,
|
| 409 |
+
# calling CommitTrans automatically starts a new transaction. Not all providers support this.
|
| 410 |
+
# If not, we will have to start a new transaction by this command:
|
| 411 |
+
self.transaction_level = self.connector.BeginTrans()
|
| 412 |
+
except Exception as e:
|
| 413 |
+
self._raiseConnectionError(api.ProgrammingError, e)
|
| 414 |
+
|
| 415 |
+
def _rollback(self):
|
| 416 |
+
"""In case a database does provide transactions this method causes the the database to roll back to
|
| 417 |
+
the start of any pending transaction. Closing a connection without committing the changes first will
|
| 418 |
+
cause an implicit rollback to be performed.
|
| 419 |
+
|
| 420 |
+
If the database does not support the functionality required by the method, the interface should
|
| 421 |
+
throw an exception in case the method is used.
|
| 422 |
+
The preferred approach is to not implement the method and thus have Python generate
|
| 423 |
+
an AttributeError in case the method is requested. This allows the programmer to check for database
|
| 424 |
+
capabilities using the standard hasattr() function.
|
| 425 |
+
|
| 426 |
+
For some dynamically configured interfaces it may not be appropriate to require dynamically making
|
| 427 |
+
the method available. These interfaces should then raise a NotSupportedError to indicate the
|
| 428 |
+
non-ability to perform the roll back when the method is invoked.
|
| 429 |
+
"""
|
| 430 |
+
self.messages = []
|
| 431 |
+
if (
|
| 432 |
+
self.transaction_level
|
| 433 |
+
): # trying to roll back with no open transaction causes an error
|
| 434 |
+
try:
|
| 435 |
+
self.transaction_level = self.connector.RollbackTrans()
|
| 436 |
+
if verbose > 1:
|
| 437 |
+
print("rollback done on connection at %X" % id(self))
|
| 438 |
+
if not self._autocommit and not (
|
| 439 |
+
self.connector.Attributes & adc.adXactAbortRetaining
|
| 440 |
+
):
|
| 441 |
+
# If attributes has adXactAbortRetaining it performs retaining aborts that is,
|
| 442 |
+
# calling RollbackTrans automatically starts a new transaction. Not all providers support this.
|
| 443 |
+
# If not, we will have to start a new transaction by this command:
|
| 444 |
+
if (
|
| 445 |
+
not self.transaction_level
|
| 446 |
+
): # if self.transaction_level == 0 or self.transaction_level is None:
|
| 447 |
+
self.transaction_level = self.connector.BeginTrans()
|
| 448 |
+
except Exception as e:
|
| 449 |
+
self._raiseConnectionError(api.ProgrammingError, e)
|
| 450 |
+
|
| 451 |
+
def __setattr__(self, name, value):
|
| 452 |
+
if name == "autocommit": # extension: allow user to turn autocommit on or off
|
| 453 |
+
if self.supportsTransactions:
|
| 454 |
+
object.__setattr__(self, "_autocommit", bool(value))
|
| 455 |
+
try:
|
| 456 |
+
self._rollback() # must clear any outstanding transactions
|
| 457 |
+
except:
|
| 458 |
+
pass
|
| 459 |
+
return
|
| 460 |
+
elif name == "paramstyle":
|
| 461 |
+
if value not in api.accepted_paramstyles:
|
| 462 |
+
self._raiseConnectionError(
|
| 463 |
+
api.NotSupportedError,
|
| 464 |
+
'paramstyle="%s" not in:%s'
|
| 465 |
+
% (value, repr(api.accepted_paramstyles)),
|
| 466 |
+
)
|
| 467 |
+
elif name == "variantConversions":
|
| 468 |
+
value = copy.copy(
|
| 469 |
+
value
|
| 470 |
+
) # make a new copy -- no changes in the default, please
|
| 471 |
+
object.__setattr__(self, name, value)
|
| 472 |
+
|
| 473 |
+
def __getattr__(self, item):
|
| 474 |
+
if (
|
| 475 |
+
item == "rollback"
|
| 476 |
+
): # the rollback method only appears if the database supports transactions
|
| 477 |
+
if self.supportsTransactions:
|
| 478 |
+
return (
|
| 479 |
+
self._rollback
|
| 480 |
+
) # return the rollback method so the caller can execute it.
|
| 481 |
+
else:
|
| 482 |
+
raise AttributeError("this data provider does not support Rollback")
|
| 483 |
+
elif item == "autocommit":
|
| 484 |
+
return self._autocommit
|
| 485 |
+
else:
|
| 486 |
+
raise AttributeError(
|
| 487 |
+
'no such attribute in ADO connection object as="%s"' % item
|
| 488 |
+
)
|
| 489 |
+
|
| 490 |
+
def cursor(self):
|
| 491 |
+
"Return a new Cursor Object using the connection."
|
| 492 |
+
self.messages = []
|
| 493 |
+
c = Cursor(self)
|
| 494 |
+
return c
|
| 495 |
+
|
| 496 |
+
def _i_am_here(self, crsr):
|
| 497 |
+
"message from a new cursor proclaiming its existence"
|
| 498 |
+
oid = id(crsr)
|
| 499 |
+
self.cursors[oid] = crsr
|
| 500 |
+
|
| 501 |
+
def _i_am_closing(self, crsr):
|
| 502 |
+
"message from a cursor giving connection a chance to clean up"
|
| 503 |
+
try:
|
| 504 |
+
del self.cursors[id(crsr)]
|
| 505 |
+
except:
|
| 506 |
+
pass
|
| 507 |
+
|
| 508 |
+
def printADOerrors(self):
|
| 509 |
+
j = self.connector.Errors.Count
|
| 510 |
+
if j:
|
| 511 |
+
print("ADO Errors:(%i)" % j)
|
| 512 |
+
for e in self.connector.Errors:
|
| 513 |
+
print("Description: %s" % e.Description)
|
| 514 |
+
print("Error: %s %s " % (e.Number, adc.adoErrors.get(e.Number, "unknown")))
|
| 515 |
+
if e.Number == adc.ado_error_TIMEOUT:
|
| 516 |
+
print(
|
| 517 |
+
"Timeout Error: Try using adodbpi.connect(constr,timeout=Nseconds)"
|
| 518 |
+
)
|
| 519 |
+
print("Source: %s" % e.Source)
|
| 520 |
+
print("NativeError: %s" % e.NativeError)
|
| 521 |
+
print("SQL State: %s" % e.SQLState)
|
| 522 |
+
|
| 523 |
+
def _suggest_error_class(self):
|
| 524 |
+
"""Introspect the current ADO Errors and determine an appropriate error class.
|
| 525 |
+
|
| 526 |
+
Error.SQLState is a SQL-defined error condition, per the SQL specification:
|
| 527 |
+
http://www.contrib.andrew.cmu.edu/~shadow/sql/sql1992.txt
|
| 528 |
+
|
| 529 |
+
The 23000 class of errors are integrity errors.
|
| 530 |
+
Error 40002 is a transactional integrity error.
|
| 531 |
+
"""
|
| 532 |
+
if self.connector is not None:
|
| 533 |
+
for e in self.connector.Errors:
|
| 534 |
+
state = str(e.SQLState)
|
| 535 |
+
if state.startswith("23") or state == "40002":
|
| 536 |
+
return api.IntegrityError
|
| 537 |
+
return api.DatabaseError
|
| 538 |
+
|
| 539 |
+
def __del__(self):
|
| 540 |
+
try:
|
| 541 |
+
self._closeAdoConnection() # v2.1 Rose
|
| 542 |
+
except:
|
| 543 |
+
pass
|
| 544 |
+
self.connector = None
|
| 545 |
+
|
| 546 |
+
def __enter__(self): # Connections are context managers
|
| 547 |
+
return self
|
| 548 |
+
|
| 549 |
+
def __exit__(self, exc_type, exc_val, exc_tb):
|
| 550 |
+
if exc_type:
|
| 551 |
+
self._rollback() # automatic rollback on errors
|
| 552 |
+
else:
|
| 553 |
+
self.commit()
|
| 554 |
+
|
| 555 |
+
def get_table_names(self):
|
| 556 |
+
schema = self.connector.OpenSchema(20) # constant = adSchemaTables
|
| 557 |
+
|
| 558 |
+
tables = []
|
| 559 |
+
while not schema.EOF:
|
| 560 |
+
name = getIndexedValue(schema.Fields, "TABLE_NAME").Value
|
| 561 |
+
tables.append(name)
|
| 562 |
+
schema.MoveNext()
|
| 563 |
+
del schema
|
| 564 |
+
return tables
|
| 565 |
+
|
| 566 |
+
|
| 567 |
+
# # # # # ----- the Class that defines a cursor ----- # # # # #
|
| 568 |
+
class Cursor(object):
|
| 569 |
+
## ** api required attributes:
|
| 570 |
+
## description...
|
| 571 |
+
## This read-only attribute is a sequence of 7-item sequences.
|
| 572 |
+
## Each of these sequences contains information describing one result column:
|
| 573 |
+
## (name, type_code, display_size, internal_size, precision, scale, null_ok).
|
| 574 |
+
## This attribute will be None for operations that do not return rows or if the
|
| 575 |
+
## cursor has not had an operation invoked via the executeXXX() method yet.
|
| 576 |
+
## The type_code can be interpreted by comparing it to the Type Objects specified in the section below.
|
| 577 |
+
## rowcount...
|
| 578 |
+
## This read-only attribute specifies the number of rows that the last executeXXX() produced
|
| 579 |
+
## (for DQL statements like select) or affected (for DML statements like update or insert).
|
| 580 |
+
## The attribute is -1 in case no executeXXX() has been performed on the cursor or
|
| 581 |
+
## the rowcount of the last operation is not determinable by the interface.[7]
|
| 582 |
+
## arraysize...
|
| 583 |
+
## This read/write attribute specifies the number of rows to fetch at a time with fetchmany().
|
| 584 |
+
## It defaults to 1 meaning to fetch a single row at a time.
|
| 585 |
+
## Implementations must observe this value with respect to the fetchmany() method,
|
| 586 |
+
## but are free to interact with the database a single row at a time.
|
| 587 |
+
## It may also be used in the implementation of executemany().
|
| 588 |
+
## ** extension attributes:
|
| 589 |
+
## paramstyle...
|
| 590 |
+
## allows the programmer to override the connection's default paramstyle
|
| 591 |
+
## errorhandler...
|
| 592 |
+
## allows the programmer to override the connection's default error handler
|
| 593 |
+
|
| 594 |
+
def __init__(self, connection):
|
| 595 |
+
self.command = None
|
| 596 |
+
self._ado_prepared = False
|
| 597 |
+
self.messages = []
|
| 598 |
+
self.connection = connection
|
| 599 |
+
self.paramstyle = connection.paramstyle # used for overriding the paramstyle
|
| 600 |
+
self._parameter_names = []
|
| 601 |
+
self.recordset_is_remote = False
|
| 602 |
+
self.rs = None # the ADO recordset for this cursor
|
| 603 |
+
self.converters = [] # conversion function for each column
|
| 604 |
+
self.columnNames = {} # names of columns {lowercase name : number,...}
|
| 605 |
+
self.numberOfColumns = 0
|
| 606 |
+
self._description = None
|
| 607 |
+
self.rowcount = -1
|
| 608 |
+
self.errorhandler = connection.errorhandler
|
| 609 |
+
self.arraysize = 1
|
| 610 |
+
connection._i_am_here(self)
|
| 611 |
+
if verbose:
|
| 612 |
+
print(
|
| 613 |
+
"%s New cursor at %X on conn %X"
|
| 614 |
+
% (version, id(self), id(self.connection))
|
| 615 |
+
)
|
| 616 |
+
|
| 617 |
+
def __iter__(self): # [2.1 Zamarev]
|
| 618 |
+
return iter(self.fetchone, None) # [2.1 Zamarev]
|
| 619 |
+
|
| 620 |
+
def prepare(self, operation):
|
| 621 |
+
self.command = operation
|
| 622 |
+
self._description = None
|
| 623 |
+
self._ado_prepared = "setup"
|
| 624 |
+
|
| 625 |
+
def __next__(self):
|
| 626 |
+
r = self.fetchone()
|
| 627 |
+
if r:
|
| 628 |
+
return r
|
| 629 |
+
raise StopIteration
|
| 630 |
+
|
| 631 |
+
def __enter__(self):
|
| 632 |
+
"Allow database cursors to be used with context managers."
|
| 633 |
+
return self
|
| 634 |
+
|
| 635 |
+
def __exit__(self, exc_type, exc_val, exc_tb):
|
| 636 |
+
"Allow database cursors to be used with context managers."
|
| 637 |
+
self.close()
|
| 638 |
+
|
| 639 |
+
def _raiseCursorError(self, errorclass, errorvalue):
|
| 640 |
+
eh = self.errorhandler
|
| 641 |
+
if eh is None:
|
| 642 |
+
eh = api.standardErrorHandler
|
| 643 |
+
eh(self.connection, self, errorclass, errorvalue)
|
| 644 |
+
|
| 645 |
+
def build_column_info(self, recordset):
|
| 646 |
+
self.converters = [] # convertion function for each column
|
| 647 |
+
self.columnNames = {} # names of columns {lowercase name : number,...}
|
| 648 |
+
self._description = None
|
| 649 |
+
|
| 650 |
+
# if EOF and BOF are true at the same time, there are no records in the recordset
|
| 651 |
+
if (recordset is None) or (recordset.State == adc.adStateClosed):
|
| 652 |
+
self.rs = None
|
| 653 |
+
self.numberOfColumns = 0
|
| 654 |
+
return
|
| 655 |
+
self.rs = recordset # v2.1.1 bkline
|
| 656 |
+
self.recordset_format = api.RS_ARRAY if api.onIronPython else api.RS_WIN_32
|
| 657 |
+
self.numberOfColumns = recordset.Fields.Count
|
| 658 |
+
try:
|
| 659 |
+
varCon = self.connection.variantConversions
|
| 660 |
+
except AttributeError:
|
| 661 |
+
varCon = api.variantConversions
|
| 662 |
+
for i in range(self.numberOfColumns):
|
| 663 |
+
f = getIndexedValue(self.rs.Fields, i)
|
| 664 |
+
try:
|
| 665 |
+
self.converters.append(
|
| 666 |
+
varCon[f.Type]
|
| 667 |
+
) # conversion function for this column
|
| 668 |
+
except KeyError:
|
| 669 |
+
self._raiseCursorError(
|
| 670 |
+
api.InternalError, "Data column of Unknown ADO type=%s" % f.Type
|
| 671 |
+
)
|
| 672 |
+
self.columnNames[f.Name.lower()] = i # columnNames lookup
|
| 673 |
+
|
| 674 |
+
def _makeDescriptionFromRS(self):
|
| 675 |
+
# Abort if closed or no recordset.
|
| 676 |
+
if self.rs is None:
|
| 677 |
+
self._description = None
|
| 678 |
+
return
|
| 679 |
+
desc = []
|
| 680 |
+
for i in range(self.numberOfColumns):
|
| 681 |
+
f = getIndexedValue(self.rs.Fields, i)
|
| 682 |
+
if self.rs.EOF or self.rs.BOF:
|
| 683 |
+
display_size = None
|
| 684 |
+
else:
|
| 685 |
+
display_size = (
|
| 686 |
+
f.ActualSize
|
| 687 |
+
) # TODO: Is this the correct defintion according to the DB API 2 Spec ?
|
| 688 |
+
null_ok = bool(f.Attributes & adc.adFldMayBeNull) # v2.1 Cole
|
| 689 |
+
desc.append(
|
| 690 |
+
(
|
| 691 |
+
f.Name,
|
| 692 |
+
f.Type,
|
| 693 |
+
display_size,
|
| 694 |
+
f.DefinedSize,
|
| 695 |
+
f.Precision,
|
| 696 |
+
f.NumericScale,
|
| 697 |
+
null_ok,
|
| 698 |
+
)
|
| 699 |
+
)
|
| 700 |
+
self._description = desc
|
| 701 |
+
|
| 702 |
+
def get_description(self):
|
| 703 |
+
if not self._description:
|
| 704 |
+
self._makeDescriptionFromRS()
|
| 705 |
+
return self._description
|
| 706 |
+
|
| 707 |
+
def __getattr__(self, item):
|
| 708 |
+
if item == "description":
|
| 709 |
+
return self.get_description()
|
| 710 |
+
object.__getattribute__(
|
| 711 |
+
self, item
|
| 712 |
+
) # may get here on Remote attribute calls for existing attributes
|
| 713 |
+
|
| 714 |
+
def format_description(self, d):
|
| 715 |
+
"""Format db_api description tuple for printing."""
|
| 716 |
+
if self.description is None:
|
| 717 |
+
self._makeDescriptionFromRS()
|
| 718 |
+
if isinstance(d, int):
|
| 719 |
+
d = self.description[d]
|
| 720 |
+
desc = (
|
| 721 |
+
"Name= %s, Type= %s, DispSize= %s, IntSize= %s, Precision= %s, Scale= %s NullOK=%s"
|
| 722 |
+
% (
|
| 723 |
+
d[0],
|
| 724 |
+
adc.adTypeNames.get(d[1], str(d[1]) + " (unknown type)"),
|
| 725 |
+
d[2],
|
| 726 |
+
d[3],
|
| 727 |
+
d[4],
|
| 728 |
+
d[5],
|
| 729 |
+
d[6],
|
| 730 |
+
)
|
| 731 |
+
)
|
| 732 |
+
return desc
|
| 733 |
+
|
| 734 |
+
def close(self, dont_tell_me=False):
|
| 735 |
+
"""Close the cursor now (rather than whenever __del__ is called).
|
| 736 |
+
The cursor will be unusable from this point forward; an Error (or subclass)
|
| 737 |
+
exception will be raised if any operation is attempted with the cursor.
|
| 738 |
+
"""
|
| 739 |
+
if self.connection is None:
|
| 740 |
+
return
|
| 741 |
+
self.messages = []
|
| 742 |
+
if (
|
| 743 |
+
self.rs and self.rs.State != adc.adStateClosed
|
| 744 |
+
): # rs exists and is open #v2.1 Rose
|
| 745 |
+
self.rs.Close() # v2.1 Rose
|
| 746 |
+
self.rs = None # let go of the recordset so ADO will let it be disposed #v2.1 Rose
|
| 747 |
+
if not dont_tell_me:
|
| 748 |
+
self.connection._i_am_closing(
|
| 749 |
+
self
|
| 750 |
+
) # take me off the connection's cursors list
|
| 751 |
+
self.connection = (
|
| 752 |
+
None # this will make all future method calls on me throw an exception
|
| 753 |
+
)
|
| 754 |
+
if verbose:
|
| 755 |
+
print("adodbapi Closed cursor at %X" % id(self))
|
| 756 |
+
|
| 757 |
+
def __del__(self):
|
| 758 |
+
try:
|
| 759 |
+
self.close()
|
| 760 |
+
except:
|
| 761 |
+
pass
|
| 762 |
+
|
| 763 |
+
def _new_command(self, command_type=adc.adCmdText):
|
| 764 |
+
self.cmd = None
|
| 765 |
+
self.messages = []
|
| 766 |
+
|
| 767 |
+
if self.connection is None:
|
| 768 |
+
self._raiseCursorError(api.InterfaceError, None)
|
| 769 |
+
return
|
| 770 |
+
try:
|
| 771 |
+
self.cmd = Dispatch("ADODB.Command")
|
| 772 |
+
self.cmd.ActiveConnection = self.connection.connector
|
| 773 |
+
self.cmd.CommandTimeout = self.connection.timeout
|
| 774 |
+
self.cmd.CommandType = command_type
|
| 775 |
+
self.cmd.CommandText = self.commandText
|
| 776 |
+
self.cmd.Prepared = bool(self._ado_prepared)
|
| 777 |
+
except:
|
| 778 |
+
self._raiseCursorError(
|
| 779 |
+
api.DatabaseError,
|
| 780 |
+
'Error creating new ADODB.Command object for "%s"'
|
| 781 |
+
% repr(self.commandText),
|
| 782 |
+
)
|
| 783 |
+
|
| 784 |
+
def _execute_command(self):
|
| 785 |
+
# Stored procedures may have an integer return value
|
| 786 |
+
self.return_value = None
|
| 787 |
+
recordset = None
|
| 788 |
+
count = -1 # default value
|
| 789 |
+
if verbose:
|
| 790 |
+
print('Executing command="%s"' % self.commandText)
|
| 791 |
+
try:
|
| 792 |
+
# ----- the actual SQL is executed here ---
|
| 793 |
+
if api.onIronPython:
|
| 794 |
+
ra = Reference[int]()
|
| 795 |
+
recordset = self.cmd.Execute(ra)
|
| 796 |
+
count = ra.Value
|
| 797 |
+
else: # pywin32
|
| 798 |
+
recordset, count = self.cmd.Execute()
|
| 799 |
+
# ----- ------------------------------- ---
|
| 800 |
+
except Exception as e:
|
| 801 |
+
_message = ""
|
| 802 |
+
if hasattr(e, "args"):
|
| 803 |
+
_message += str(e.args) + "\n"
|
| 804 |
+
_message += "Command:\n%s\nParameters:\n%s" % (
|
| 805 |
+
self.commandText,
|
| 806 |
+
format_parameters(self.cmd.Parameters, True),
|
| 807 |
+
)
|
| 808 |
+
klass = self.connection._suggest_error_class()
|
| 809 |
+
self._raiseCursorError(klass, _message)
|
| 810 |
+
try:
|
| 811 |
+
self.rowcount = recordset.RecordCount
|
| 812 |
+
except:
|
| 813 |
+
self.rowcount = count
|
| 814 |
+
self.build_column_info(recordset)
|
| 815 |
+
|
| 816 |
+
# The ADO documentation hints that obtaining the recordcount may be timeconsuming
|
| 817 |
+
# "If the Recordset object does not support approximate positioning, this property
|
| 818 |
+
# may be a significant drain on resources # [ekelund]
|
| 819 |
+
# Therefore, COM will not return rowcount for server-side cursors. [Cole]
|
| 820 |
+
# Client-side cursors (the default since v2.8) will force a static
|
| 821 |
+
# cursor, and rowcount will then be set accurately [Cole]
|
| 822 |
+
|
| 823 |
+
def get_rowcount(self):
|
| 824 |
+
return self.rowcount
|
| 825 |
+
|
| 826 |
+
def get_returned_parameters(self):
|
| 827 |
+
"""with some providers, returned parameters and the .return_value are not available until
|
| 828 |
+
after the last recordset has been read. In that case, you must coll nextset() until it
|
| 829 |
+
returns None, then call this method to get your returned information."""
|
| 830 |
+
|
| 831 |
+
retLst = (
|
| 832 |
+
[]
|
| 833 |
+
) # store procedures may return altered parameters, including an added "return value" item
|
| 834 |
+
for p in tuple(self.cmd.Parameters):
|
| 835 |
+
if verbose > 2:
|
| 836 |
+
print(
|
| 837 |
+
'Returned=Name: %s, Dir.: %s, Type: %s, Size: %s, Value: "%s",'
|
| 838 |
+
" Precision: %s, NumericScale: %s"
|
| 839 |
+
% (
|
| 840 |
+
p.Name,
|
| 841 |
+
adc.directions[p.Direction],
|
| 842 |
+
adc.adTypeNames.get(p.Type, str(p.Type) + " (unknown type)"),
|
| 843 |
+
p.Size,
|
| 844 |
+
p.Value,
|
| 845 |
+
p.Precision,
|
| 846 |
+
p.NumericScale,
|
| 847 |
+
)
|
| 848 |
+
)
|
| 849 |
+
pyObject = api.convert_to_python(p.Value, api.variantConversions[p.Type])
|
| 850 |
+
if p.Direction == adc.adParamReturnValue:
|
| 851 |
+
self.returnValue = (
|
| 852 |
+
pyObject # also load the undocumented attribute (Vernon's Error!)
|
| 853 |
+
)
|
| 854 |
+
self.return_value = pyObject
|
| 855 |
+
else:
|
| 856 |
+
retLst.append(pyObject)
|
| 857 |
+
return retLst # return the parameter list to the caller
|
| 858 |
+
|
| 859 |
+
def callproc(self, procname, parameters=None):
|
| 860 |
+
"""Call a stored database procedure with the given name.
|
| 861 |
+
The sequence of parameters must contain one entry for each
|
| 862 |
+
argument that the sproc expects. The result of the
|
| 863 |
+
call is returned as modified copy of the input
|
| 864 |
+
sequence. Input parameters are left untouched, output and
|
| 865 |
+
input/output parameters replaced with possibly new values.
|
| 866 |
+
|
| 867 |
+
The sproc may also provide a result set as output,
|
| 868 |
+
which is available through the standard .fetch*() methods.
|
| 869 |
+
Extension: A "return_value" property may be set on the
|
| 870 |
+
cursor if the sproc defines an integer return value.
|
| 871 |
+
"""
|
| 872 |
+
self._parameter_names = []
|
| 873 |
+
self.commandText = procname
|
| 874 |
+
self._new_command(command_type=adc.adCmdStoredProc)
|
| 875 |
+
self._buildADOparameterList(parameters, sproc=True)
|
| 876 |
+
if verbose > 2:
|
| 877 |
+
print(
|
| 878 |
+
"Calling Stored Proc with Params=",
|
| 879 |
+
format_parameters(self.cmd.Parameters, True),
|
| 880 |
+
)
|
| 881 |
+
self._execute_command()
|
| 882 |
+
return self.get_returned_parameters()
|
| 883 |
+
|
| 884 |
+
def _reformat_operation(self, operation, parameters):
|
| 885 |
+
if self.paramstyle in ("format", "pyformat"): # convert %s to ?
|
| 886 |
+
operation, self._parameter_names = api.changeFormatToQmark(operation)
|
| 887 |
+
elif self.paramstyle == "named" or (
|
| 888 |
+
self.paramstyle == "dynamic" and isinstance(parameters, Mapping)
|
| 889 |
+
):
|
| 890 |
+
operation, self._parameter_names = api.changeNamedToQmark(
|
| 891 |
+
operation
|
| 892 |
+
) # convert :name to ?
|
| 893 |
+
return operation
|
| 894 |
+
|
| 895 |
+
def _buildADOparameterList(self, parameters, sproc=False):
|
| 896 |
+
self.parameters = parameters
|
| 897 |
+
if parameters is None:
|
| 898 |
+
parameters = []
|
| 899 |
+
|
| 900 |
+
# Note: ADO does not preserve the parameter list, even if "Prepared" is True, so we must build every time.
|
| 901 |
+
parameters_known = False
|
| 902 |
+
if sproc: # needed only if we are calling a stored procedure
|
| 903 |
+
try: # attempt to use ADO's parameter list
|
| 904 |
+
self.cmd.Parameters.Refresh()
|
| 905 |
+
if verbose > 2:
|
| 906 |
+
print(
|
| 907 |
+
"ADO detected Params=",
|
| 908 |
+
format_parameters(self.cmd.Parameters, True),
|
| 909 |
+
)
|
| 910 |
+
print("Program Parameters=", repr(parameters))
|
| 911 |
+
parameters_known = True
|
| 912 |
+
except api.Error:
|
| 913 |
+
if verbose:
|
| 914 |
+
print("ADO Parameter Refresh failed")
|
| 915 |
+
pass
|
| 916 |
+
else:
|
| 917 |
+
if len(parameters) != self.cmd.Parameters.Count - 1:
|
| 918 |
+
raise api.ProgrammingError(
|
| 919 |
+
"You must supply %d parameters for this stored procedure"
|
| 920 |
+
% (self.cmd.Parameters.Count - 1)
|
| 921 |
+
)
|
| 922 |
+
if sproc or parameters != []:
|
| 923 |
+
i = 0
|
| 924 |
+
if parameters_known: # use ado parameter list
|
| 925 |
+
if self._parameter_names: # named parameters
|
| 926 |
+
for i, pm_name in enumerate(self._parameter_names):
|
| 927 |
+
p = getIndexedValue(self.cmd.Parameters, i)
|
| 928 |
+
try:
|
| 929 |
+
_configure_parameter(
|
| 930 |
+
p, parameters[pm_name], p.Type, parameters_known
|
| 931 |
+
)
|
| 932 |
+
except Exception as e:
|
| 933 |
+
_message = (
|
| 934 |
+
"Error Converting Parameter %s: %s, %s <- %s\n"
|
| 935 |
+
% (
|
| 936 |
+
p.Name,
|
| 937 |
+
adc.ado_type_name(p.Type),
|
| 938 |
+
p.Value,
|
| 939 |
+
repr(parameters[pm_name]),
|
| 940 |
+
)
|
| 941 |
+
)
|
| 942 |
+
self._raiseCursorError(
|
| 943 |
+
api.DataError, _message + "->" + repr(e.args)
|
| 944 |
+
)
|
| 945 |
+
else: # regular sequence of parameters
|
| 946 |
+
for value in parameters:
|
| 947 |
+
p = getIndexedValue(self.cmd.Parameters, i)
|
| 948 |
+
if (
|
| 949 |
+
p.Direction == adc.adParamReturnValue
|
| 950 |
+
): # this is an extra parameter added by ADO
|
| 951 |
+
i += 1 # skip the extra
|
| 952 |
+
p = getIndexedValue(self.cmd.Parameters, i)
|
| 953 |
+
try:
|
| 954 |
+
_configure_parameter(p, value, p.Type, parameters_known)
|
| 955 |
+
except Exception as e:
|
| 956 |
+
_message = (
|
| 957 |
+
"Error Converting Parameter %s: %s, %s <- %s\n"
|
| 958 |
+
% (
|
| 959 |
+
p.Name,
|
| 960 |
+
adc.ado_type_name(p.Type),
|
| 961 |
+
p.Value,
|
| 962 |
+
repr(value),
|
| 963 |
+
)
|
| 964 |
+
)
|
| 965 |
+
self._raiseCursorError(
|
| 966 |
+
api.DataError, _message + "->" + repr(e.args)
|
| 967 |
+
)
|
| 968 |
+
i += 1
|
| 969 |
+
else: # -- build own parameter list
|
| 970 |
+
if (
|
| 971 |
+
self._parameter_names
|
| 972 |
+
): # we expect a dictionary of parameters, this is the list of expected names
|
| 973 |
+
for parm_name in self._parameter_names:
|
| 974 |
+
elem = parameters[parm_name]
|
| 975 |
+
adotype = api.pyTypeToADOType(elem)
|
| 976 |
+
p = self.cmd.CreateParameter(
|
| 977 |
+
parm_name, adotype, adc.adParamInput
|
| 978 |
+
)
|
| 979 |
+
_configure_parameter(p, elem, adotype, parameters_known)
|
| 980 |
+
try:
|
| 981 |
+
self.cmd.Parameters.Append(p)
|
| 982 |
+
except Exception as e:
|
| 983 |
+
_message = "Error Building Parameter %s: %s, %s <- %s\n" % (
|
| 984 |
+
p.Name,
|
| 985 |
+
adc.ado_type_name(p.Type),
|
| 986 |
+
p.Value,
|
| 987 |
+
repr(elem),
|
| 988 |
+
)
|
| 989 |
+
self._raiseCursorError(
|
| 990 |
+
api.DataError, _message + "->" + repr(e.args)
|
| 991 |
+
)
|
| 992 |
+
else: # expecting the usual sequence of parameters
|
| 993 |
+
if sproc:
|
| 994 |
+
p = self.cmd.CreateParameter(
|
| 995 |
+
"@RETURN_VALUE", adc.adInteger, adc.adParamReturnValue
|
| 996 |
+
)
|
| 997 |
+
self.cmd.Parameters.Append(p)
|
| 998 |
+
|
| 999 |
+
for elem in parameters:
|
| 1000 |
+
name = "p%i" % i
|
| 1001 |
+
adotype = api.pyTypeToADOType(elem)
|
| 1002 |
+
p = self.cmd.CreateParameter(
|
| 1003 |
+
name, adotype, adc.adParamInput
|
| 1004 |
+
) # Name, Type, Direction, Size, Value
|
| 1005 |
+
_configure_parameter(p, elem, adotype, parameters_known)
|
| 1006 |
+
try:
|
| 1007 |
+
self.cmd.Parameters.Append(p)
|
| 1008 |
+
except Exception as e:
|
| 1009 |
+
_message = "Error Building Parameter %s: %s, %s <- %s\n" % (
|
| 1010 |
+
p.Name,
|
| 1011 |
+
adc.ado_type_name(p.Type),
|
| 1012 |
+
p.Value,
|
| 1013 |
+
repr(elem),
|
| 1014 |
+
)
|
| 1015 |
+
self._raiseCursorError(
|
| 1016 |
+
api.DataError, _message + "->" + repr(e.args)
|
| 1017 |
+
)
|
| 1018 |
+
i += 1
|
| 1019 |
+
if self._ado_prepared == "setup":
|
| 1020 |
+
self._ado_prepared = (
|
| 1021 |
+
True # parameters will be "known" by ADO next loop
|
| 1022 |
+
)
|
| 1023 |
+
|
| 1024 |
+
def execute(self, operation, parameters=None):
|
| 1025 |
+
"""Prepare and execute a database operation (query or command).
|
| 1026 |
+
|
| 1027 |
+
Parameters may be provided as sequence or mapping and will be bound to variables in the operation.
|
| 1028 |
+
Variables are specified in a database-specific notation
|
| 1029 |
+
(see the module's paramstyle attribute for details). [5]
|
| 1030 |
+
A reference to the operation will be retained by the cursor.
|
| 1031 |
+
If the same operation object is passed in again, then the cursor
|
| 1032 |
+
can optimize its behavior. This is most effective for algorithms
|
| 1033 |
+
where the same operation is used, but different parameters are bound to it (many times).
|
| 1034 |
+
|
| 1035 |
+
For maximum efficiency when reusing an operation, it is best to use
|
| 1036 |
+
the setinputsizes() method to specify the parameter types and sizes ahead of time.
|
| 1037 |
+
It is legal for a parameter to not match the predefined information;
|
| 1038 |
+
the implementation should compensate, possibly with a loss of efficiency.
|
| 1039 |
+
|
| 1040 |
+
The parameters may also be specified as list of tuples to e.g. insert multiple rows in
|
| 1041 |
+
a single operation, but this kind of usage is depreciated: executemany() should be used instead.
|
| 1042 |
+
|
| 1043 |
+
Return value is not defined.
|
| 1044 |
+
|
| 1045 |
+
[5] The module will use the __getitem__ method of the parameters object to map either positions
|
| 1046 |
+
(integers) or names (strings) to parameter values. This allows for both sequences and mappings
|
| 1047 |
+
to be used as input.
|
| 1048 |
+
The term "bound" refers to the process of binding an input value to a database execution buffer.
|
| 1049 |
+
In practical terms, this means that the input value is directly used as a value in the operation.
|
| 1050 |
+
The client should not be required to "escape" the value so that it can be used -- the value
|
| 1051 |
+
should be equal to the actual database value."""
|
| 1052 |
+
if (
|
| 1053 |
+
self.command is not operation
|
| 1054 |
+
or self._ado_prepared == "setup"
|
| 1055 |
+
or not hasattr(self, "commandText")
|
| 1056 |
+
):
|
| 1057 |
+
if self.command is not operation:
|
| 1058 |
+
self._ado_prepared = False
|
| 1059 |
+
self.command = operation
|
| 1060 |
+
self._parameter_names = []
|
| 1061 |
+
self.commandText = (
|
| 1062 |
+
operation
|
| 1063 |
+
if (self.paramstyle == "qmark" or not parameters)
|
| 1064 |
+
else self._reformat_operation(operation, parameters)
|
| 1065 |
+
)
|
| 1066 |
+
self._new_command()
|
| 1067 |
+
self._buildADOparameterList(parameters)
|
| 1068 |
+
if verbose > 3:
|
| 1069 |
+
print("Params=", format_parameters(self.cmd.Parameters, True))
|
| 1070 |
+
self._execute_command()
|
| 1071 |
+
|
| 1072 |
+
def executemany(self, operation, seq_of_parameters):
|
| 1073 |
+
"""Prepare a database operation (query or command)
|
| 1074 |
+
and then execute it against all parameter sequences or mappings found in the sequence seq_of_parameters.
|
| 1075 |
+
|
| 1076 |
+
Return values are not defined.
|
| 1077 |
+
"""
|
| 1078 |
+
self.messages = list()
|
| 1079 |
+
total_recordcount = 0
|
| 1080 |
+
|
| 1081 |
+
self.prepare(operation)
|
| 1082 |
+
for params in seq_of_parameters:
|
| 1083 |
+
self.execute(self.command, params)
|
| 1084 |
+
if self.rowcount == -1:
|
| 1085 |
+
total_recordcount = -1
|
| 1086 |
+
if total_recordcount != -1:
|
| 1087 |
+
total_recordcount += self.rowcount
|
| 1088 |
+
self.rowcount = total_recordcount
|
| 1089 |
+
|
| 1090 |
+
def _fetch(self, limit=None):
|
| 1091 |
+
"""Fetch rows from the current recordset.
|
| 1092 |
+
|
| 1093 |
+
limit -- Number of rows to fetch, or None (default) to fetch all rows.
|
| 1094 |
+
"""
|
| 1095 |
+
if self.connection is None or self.rs is None:
|
| 1096 |
+
self._raiseCursorError(
|
| 1097 |
+
api.FetchFailedError, "fetch() on closed connection or empty query set"
|
| 1098 |
+
)
|
| 1099 |
+
return
|
| 1100 |
+
|
| 1101 |
+
if self.rs.State == adc.adStateClosed or self.rs.BOF or self.rs.EOF:
|
| 1102 |
+
return list()
|
| 1103 |
+
if limit: # limit number of rows retrieved
|
| 1104 |
+
ado_results = self.rs.GetRows(limit)
|
| 1105 |
+
else: # get all rows
|
| 1106 |
+
ado_results = self.rs.GetRows()
|
| 1107 |
+
if (
|
| 1108 |
+
self.recordset_format == api.RS_ARRAY
|
| 1109 |
+
): # result of GetRows is a two-dimension array
|
| 1110 |
+
length = (
|
| 1111 |
+
len(ado_results) // self.numberOfColumns
|
| 1112 |
+
) # length of first dimension
|
| 1113 |
+
else: # pywin32
|
| 1114 |
+
length = len(ado_results[0]) # result of GetRows is tuples in a tuple
|
| 1115 |
+
fetchObject = api.SQLrows(
|
| 1116 |
+
ado_results, length, self
|
| 1117 |
+
) # new object to hold the results of the fetch
|
| 1118 |
+
return fetchObject
|
| 1119 |
+
|
| 1120 |
+
def fetchone(self):
|
| 1121 |
+
"""Fetch the next row of a query result set, returning a single sequence,
|
| 1122 |
+
or None when no more data is available.
|
| 1123 |
+
|
| 1124 |
+
An Error (or subclass) exception is raised if the previous call to executeXXX()
|
| 1125 |
+
did not produce any result set or no call was issued yet.
|
| 1126 |
+
"""
|
| 1127 |
+
self.messages = []
|
| 1128 |
+
result = self._fetch(1)
|
| 1129 |
+
if result: # return record (not list of records)
|
| 1130 |
+
return result[0]
|
| 1131 |
+
return None
|
| 1132 |
+
|
| 1133 |
+
def fetchmany(self, size=None):
|
| 1134 |
+
"""Fetch the next set of rows of a query result, returning a list of tuples. An empty sequence is returned when no more rows are available.
|
| 1135 |
+
|
| 1136 |
+
The number of rows to fetch per call is specified by the parameter.
|
| 1137 |
+
If it is not given, the cursor's arraysize determines the number of rows to be fetched.
|
| 1138 |
+
The method should try to fetch as many rows as indicated by the size parameter.
|
| 1139 |
+
If this is not possible due to the specified number of rows not being available,
|
| 1140 |
+
fewer rows may be returned.
|
| 1141 |
+
|
| 1142 |
+
An Error (or subclass) exception is raised if the previous call to executeXXX()
|
| 1143 |
+
did not produce any result set or no call was issued yet.
|
| 1144 |
+
|
| 1145 |
+
Note there are performance considerations involved with the size parameter.
|
| 1146 |
+
For optimal performance, it is usually best to use the arraysize attribute.
|
| 1147 |
+
If the size parameter is used, then it is best for it to retain the same value from
|
| 1148 |
+
one fetchmany() call to the next.
|
| 1149 |
+
"""
|
| 1150 |
+
self.messages = []
|
| 1151 |
+
if size is None:
|
| 1152 |
+
size = self.arraysize
|
| 1153 |
+
return self._fetch(size)
|
| 1154 |
+
|
| 1155 |
+
def fetchall(self):
|
| 1156 |
+
"""Fetch all (remaining) rows of a query result, returning them as a sequence of sequences (e.g. a list of tuples).
|
| 1157 |
+
|
| 1158 |
+
Note that the cursor's arraysize attribute
|
| 1159 |
+
can affect the performance of this operation.
|
| 1160 |
+
An Error (or subclass) exception is raised if the previous call to executeXXX()
|
| 1161 |
+
did not produce any result set or no call was issued yet.
|
| 1162 |
+
"""
|
| 1163 |
+
self.messages = []
|
| 1164 |
+
return self._fetch()
|
| 1165 |
+
|
| 1166 |
+
def nextset(self):
|
| 1167 |
+
"""Skip to the next available recordset, discarding any remaining rows from the current recordset.
|
| 1168 |
+
|
| 1169 |
+
If there are no more sets, the method returns None. Otherwise, it returns a true
|
| 1170 |
+
value and subsequent calls to the fetch methods will return rows from the next result set.
|
| 1171 |
+
|
| 1172 |
+
An Error (or subclass) exception is raised if the previous call to executeXXX()
|
| 1173 |
+
did not produce any result set or no call was issued yet.
|
| 1174 |
+
"""
|
| 1175 |
+
self.messages = []
|
| 1176 |
+
if self.connection is None or self.rs is None:
|
| 1177 |
+
self._raiseCursorError(
|
| 1178 |
+
api.OperationalError,
|
| 1179 |
+
("nextset() on closed connection or empty query set"),
|
| 1180 |
+
)
|
| 1181 |
+
return None
|
| 1182 |
+
|
| 1183 |
+
if api.onIronPython:
|
| 1184 |
+
try:
|
| 1185 |
+
recordset = self.rs.NextRecordset()
|
| 1186 |
+
except TypeError:
|
| 1187 |
+
recordset = None
|
| 1188 |
+
except api.Error as exc:
|
| 1189 |
+
self._raiseCursorError(api.NotSupportedError, exc.args)
|
| 1190 |
+
else: # pywin32
|
| 1191 |
+
try: # [begin 2.1 ekelund]
|
| 1192 |
+
rsTuple = self.rs.NextRecordset() #
|
| 1193 |
+
except pywintypes.com_error as exc: # return appropriate error
|
| 1194 |
+
self._raiseCursorError(
|
| 1195 |
+
api.NotSupportedError, exc.args
|
| 1196 |
+
) # [end 2.1 ekelund]
|
| 1197 |
+
recordset = rsTuple[0]
|
| 1198 |
+
if recordset is None:
|
| 1199 |
+
return None
|
| 1200 |
+
self.build_column_info(recordset)
|
| 1201 |
+
return True
|
| 1202 |
+
|
| 1203 |
+
def setinputsizes(self, sizes):
|
| 1204 |
+
pass
|
| 1205 |
+
|
| 1206 |
+
def setoutputsize(self, size, column=None):
|
| 1207 |
+
pass
|
| 1208 |
+
|
| 1209 |
+
def _last_query(self): # let the programmer see what query we actually used
|
| 1210 |
+
try:
|
| 1211 |
+
if self.parameters == None:
|
| 1212 |
+
ret = self.commandText
|
| 1213 |
+
else:
|
| 1214 |
+
ret = "%s,parameters=%s" % (self.commandText, repr(self.parameters))
|
| 1215 |
+
except:
|
| 1216 |
+
ret = None
|
| 1217 |
+
return ret
|
| 1218 |
+
|
| 1219 |
+
query = property(_last_query, None, None, "returns the last query executed")
|
| 1220 |
+
|
| 1221 |
+
|
| 1222 |
+
if __name__ == "__main__":
|
| 1223 |
+
raise api.ProgrammingError(version + " cannot be run as a main program.")
|
pgsql/pgAdmin 4/python/Lib/site-packages/adodbapi/apibase.py
ADDED
|
@@ -0,0 +1,794 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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 by Vernon Cole
|
| 4 |
+
* http://sourceforge.net/projects/pywin32
|
| 5 |
+
* http://sourceforge.net/projects/adodbapi
|
| 6 |
+
"""
|
| 7 |
+
|
| 8 |
+
import datetime
|
| 9 |
+
import decimal
|
| 10 |
+
import numbers
|
| 11 |
+
import sys
|
| 12 |
+
import time
|
| 13 |
+
|
| 14 |
+
# noinspection PyUnresolvedReferences
|
| 15 |
+
from . import ado_consts as adc
|
| 16 |
+
|
| 17 |
+
verbose = False # debugging flag
|
| 18 |
+
|
| 19 |
+
onIronPython = sys.platform == "cli"
|
| 20 |
+
if onIronPython: # we need type definitions for odd data we may need to convert
|
| 21 |
+
# noinspection PyUnresolvedReferences
|
| 22 |
+
from System import DateTime, DBNull
|
| 23 |
+
|
| 24 |
+
NullTypes = (type(None), DBNull)
|
| 25 |
+
else:
|
| 26 |
+
DateTime = type(NotImplemented) # should never be seen on win32
|
| 27 |
+
NullTypes = type(None)
|
| 28 |
+
|
| 29 |
+
# --- define objects to smooth out Python3 <-> Python 2.x differences
|
| 30 |
+
unicodeType = str
|
| 31 |
+
longType = int
|
| 32 |
+
StringTypes = str
|
| 33 |
+
makeByteBuffer = bytes
|
| 34 |
+
memoryViewType = memoryview
|
| 35 |
+
_BaseException = Exception
|
| 36 |
+
|
| 37 |
+
try: # jdhardy -- handle bytes under IronPython & Py3
|
| 38 |
+
bytes
|
| 39 |
+
except NameError:
|
| 40 |
+
bytes = str # define it for old Pythons
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
# ------- Error handlers ------
|
| 44 |
+
def standardErrorHandler(connection, cursor, errorclass, errorvalue):
|
| 45 |
+
err = (errorclass, errorvalue)
|
| 46 |
+
try:
|
| 47 |
+
connection.messages.append(err)
|
| 48 |
+
except:
|
| 49 |
+
pass
|
| 50 |
+
if cursor is not None:
|
| 51 |
+
try:
|
| 52 |
+
cursor.messages.append(err)
|
| 53 |
+
except:
|
| 54 |
+
pass
|
| 55 |
+
raise errorclass(errorvalue)
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
# Note: _BaseException is defined differently between Python 2.x and 3.x
|
| 59 |
+
class Error(_BaseException):
|
| 60 |
+
pass # Exception that is the base class of all other error
|
| 61 |
+
# exceptions. You can use this to catch all errors with one
|
| 62 |
+
# single 'except' statement. Warnings are not considered
|
| 63 |
+
# errors and thus should not use this class as base. It must
|
| 64 |
+
# be a subclass of the Python StandardError (defined in the
|
| 65 |
+
# module exceptions).
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
class Warning(_BaseException):
|
| 69 |
+
pass
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
class InterfaceError(Error):
|
| 73 |
+
pass
|
| 74 |
+
|
| 75 |
+
|
| 76 |
+
class DatabaseError(Error):
|
| 77 |
+
pass
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
class InternalError(DatabaseError):
|
| 81 |
+
pass
|
| 82 |
+
|
| 83 |
+
|
| 84 |
+
class OperationalError(DatabaseError):
|
| 85 |
+
pass
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
class ProgrammingError(DatabaseError):
|
| 89 |
+
pass
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
class IntegrityError(DatabaseError):
|
| 93 |
+
pass
|
| 94 |
+
|
| 95 |
+
|
| 96 |
+
class DataError(DatabaseError):
|
| 97 |
+
pass
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
class NotSupportedError(DatabaseError):
|
| 101 |
+
pass
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
class FetchFailedError(OperationalError):
|
| 105 |
+
"""
|
| 106 |
+
Error is used by RawStoredProcedureQuerySet to determine when a fetch
|
| 107 |
+
failed due to a connection being closed or there is no record set
|
| 108 |
+
returned. (Non-standard, added especially for django)
|
| 109 |
+
"""
|
| 110 |
+
|
| 111 |
+
pass
|
| 112 |
+
|
| 113 |
+
|
| 114 |
+
# # # # # ----- Type Objects and Constructors ----- # # # # #
|
| 115 |
+
# Many databases need to have the input in a particular format for binding to an operation's input parameters.
|
| 116 |
+
# For example, if an input is destined for a DATE column, then it must be bound to the database in a particular
|
| 117 |
+
# string format. Similar problems exist for "Row ID" columns or large binary items (e.g. blobs or RAW columns).
|
| 118 |
+
# This presents problems for Python since the parameters to the executeXXX() method are untyped.
|
| 119 |
+
# When the database module sees a Python string object, it doesn't know if it should be bound as a simple CHAR
|
| 120 |
+
# column, as a raw BINARY item, or as a DATE.
|
| 121 |
+
#
|
| 122 |
+
# To overcome this problem, a module must provide the constructors defined below to create objects that can
|
| 123 |
+
# hold special values. When passed to the cursor methods, the module can then detect the proper type of
|
| 124 |
+
# the input parameter and bind it accordingly.
|
| 125 |
+
|
| 126 |
+
# A Cursor Object's description attribute returns information about each of the result columns of a query.
|
| 127 |
+
# The type_code must compare equal to one of Type Objects defined below. Type Objects may be equal to more than
|
| 128 |
+
# one type code (e.g. DATETIME could be equal to the type codes for date, time and timestamp columns;
|
| 129 |
+
# see the Implementation Hints below for details).
|
| 130 |
+
|
| 131 |
+
# SQL NULL values are represented by the Python None singleton on input and output.
|
| 132 |
+
|
| 133 |
+
# Note: Usage of Unix ticks for database interfacing can cause troubles because of the limited date range they cover.
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
# def Date(year,month,day):
|
| 137 |
+
# "This function constructs an object holding a date value. "
|
| 138 |
+
# return dateconverter.date(year,month,day) #dateconverter.Date(year,month,day)
|
| 139 |
+
#
|
| 140 |
+
# def Time(hour,minute,second):
|
| 141 |
+
# "This function constructs an object holding a time value. "
|
| 142 |
+
# return dateconverter.time(hour, minute, second) # dateconverter.Time(hour,minute,second)
|
| 143 |
+
#
|
| 144 |
+
# def Timestamp(year,month,day,hour,minute,second):
|
| 145 |
+
# "This function constructs an object holding a time stamp value. "
|
| 146 |
+
# return dateconverter.datetime(year,month,day,hour,minute,second)
|
| 147 |
+
#
|
| 148 |
+
# def DateFromTicks(ticks):
|
| 149 |
+
# """This function constructs an object holding a date value from the given ticks value
|
| 150 |
+
# (number of seconds since the epoch; see the documentation of the standard Python time module for details). """
|
| 151 |
+
# return Date(*time.gmtime(ticks)[:3])
|
| 152 |
+
#
|
| 153 |
+
# def TimeFromTicks(ticks):
|
| 154 |
+
# """This function constructs an object holding a time value from the given ticks value
|
| 155 |
+
# (number of seconds since the epoch; see the documentation of the standard Python time module for details). """
|
| 156 |
+
# return Time(*time.gmtime(ticks)[3:6])
|
| 157 |
+
#
|
| 158 |
+
# def TimestampFromTicks(ticks):
|
| 159 |
+
# """This function constructs an object holding a time stamp value from the given
|
| 160 |
+
# ticks value (number of seconds since the epoch;
|
| 161 |
+
# see the documentation of the standard Python time module for details). """
|
| 162 |
+
# return Timestamp(*time.gmtime(ticks)[:6])
|
| 163 |
+
#
|
| 164 |
+
# def Binary(aString):
|
| 165 |
+
# """This function constructs an object capable of holding a binary (long) string value. """
|
| 166 |
+
# b = makeByteBuffer(aString)
|
| 167 |
+
# return b
|
| 168 |
+
# ----- Time converters ----------------------------------------------
|
| 169 |
+
class TimeConverter(object): # this is a generic time converter skeleton
|
| 170 |
+
def __init__(self): # the details will be filled in by instances
|
| 171 |
+
self._ordinal_1899_12_31 = datetime.date(1899, 12, 31).toordinal() - 1
|
| 172 |
+
# Use cls.types to compare if an input parameter is a datetime
|
| 173 |
+
self.types = {
|
| 174 |
+
type(self.Date(2000, 1, 1)),
|
| 175 |
+
type(self.Time(12, 1, 1)),
|
| 176 |
+
type(self.Timestamp(2000, 1, 1, 12, 1, 1)),
|
| 177 |
+
datetime.datetime,
|
| 178 |
+
datetime.time,
|
| 179 |
+
datetime.date,
|
| 180 |
+
}
|
| 181 |
+
|
| 182 |
+
def COMDate(self, obj):
|
| 183 |
+
"""Returns a ComDate from a date-time"""
|
| 184 |
+
try: # most likely a datetime
|
| 185 |
+
tt = obj.timetuple()
|
| 186 |
+
|
| 187 |
+
try:
|
| 188 |
+
ms = obj.microsecond
|
| 189 |
+
except:
|
| 190 |
+
ms = 0
|
| 191 |
+
return self.ComDateFromTuple(tt, ms)
|
| 192 |
+
except: # might be a tuple
|
| 193 |
+
try:
|
| 194 |
+
return self.ComDateFromTuple(obj)
|
| 195 |
+
except: # try an mxdate
|
| 196 |
+
try:
|
| 197 |
+
return obj.COMDate()
|
| 198 |
+
except:
|
| 199 |
+
raise ValueError('Cannot convert "%s" to COMdate.' % repr(obj))
|
| 200 |
+
|
| 201 |
+
def ComDateFromTuple(self, t, microseconds=0):
|
| 202 |
+
d = datetime.date(t[0], t[1], t[2])
|
| 203 |
+
integerPart = d.toordinal() - self._ordinal_1899_12_31
|
| 204 |
+
ms = (t[3] * 3600 + t[4] * 60 + t[5]) * 1000000 + microseconds
|
| 205 |
+
fractPart = float(ms) / 86400000000.0
|
| 206 |
+
return integerPart + fractPart
|
| 207 |
+
|
| 208 |
+
def DateObjectFromCOMDate(self, comDate):
|
| 209 |
+
"Returns an object of the wanted type from a ComDate"
|
| 210 |
+
raise NotImplementedError # "Abstract class"
|
| 211 |
+
|
| 212 |
+
def Date(self, year, month, day):
|
| 213 |
+
"This function constructs an object holding a date value."
|
| 214 |
+
raise NotImplementedError # "Abstract class"
|
| 215 |
+
|
| 216 |
+
def Time(self, hour, minute, second):
|
| 217 |
+
"This function constructs an object holding a time value."
|
| 218 |
+
raise NotImplementedError # "Abstract class"
|
| 219 |
+
|
| 220 |
+
def Timestamp(self, year, month, day, hour, minute, second):
|
| 221 |
+
"This function constructs an object holding a time stamp value."
|
| 222 |
+
raise NotImplementedError # "Abstract class"
|
| 223 |
+
# all purpose date to ISO format converter
|
| 224 |
+
|
| 225 |
+
def DateObjectToIsoFormatString(self, obj):
|
| 226 |
+
"This function should return a string in the format 'YYYY-MM-dd HH:MM:SS:ms' (ms optional)"
|
| 227 |
+
try: # most likely, a datetime.datetime
|
| 228 |
+
s = obj.isoformat(" ")
|
| 229 |
+
except (TypeError, AttributeError):
|
| 230 |
+
if isinstance(obj, datetime.date):
|
| 231 |
+
s = obj.isoformat() + " 00:00:00" # return exact midnight
|
| 232 |
+
else:
|
| 233 |
+
try: # maybe it has a strftime method, like mx
|
| 234 |
+
s = obj.strftime("%Y-%m-%d %H:%M:%S")
|
| 235 |
+
except AttributeError:
|
| 236 |
+
try: # but may be time.struct_time
|
| 237 |
+
s = time.strftime("%Y-%m-%d %H:%M:%S", obj)
|
| 238 |
+
except:
|
| 239 |
+
raise ValueError('Cannot convert "%s" to isoformat' % repr(obj))
|
| 240 |
+
return s
|
| 241 |
+
|
| 242 |
+
|
| 243 |
+
# -- Optional: if mx extensions are installed you may use mxDateTime ----
|
| 244 |
+
try:
|
| 245 |
+
import mx.DateTime
|
| 246 |
+
|
| 247 |
+
mxDateTime = True
|
| 248 |
+
except:
|
| 249 |
+
mxDateTime = False
|
| 250 |
+
if mxDateTime:
|
| 251 |
+
|
| 252 |
+
class mxDateTimeConverter(TimeConverter): # used optionally if installed
|
| 253 |
+
def __init__(self):
|
| 254 |
+
TimeConverter.__init__(self)
|
| 255 |
+
self.types.add(type(mx.DateTime))
|
| 256 |
+
|
| 257 |
+
def DateObjectFromCOMDate(self, comDate):
|
| 258 |
+
return mx.DateTime.DateTimeFromCOMDate(comDate)
|
| 259 |
+
|
| 260 |
+
def Date(self, year, month, day):
|
| 261 |
+
return mx.DateTime.Date(year, month, day)
|
| 262 |
+
|
| 263 |
+
def Time(self, hour, minute, second):
|
| 264 |
+
return mx.DateTime.Time(hour, minute, second)
|
| 265 |
+
|
| 266 |
+
def Timestamp(self, year, month, day, hour, minute, second):
|
| 267 |
+
return mx.DateTime.Timestamp(year, month, day, hour, minute, second)
|
| 268 |
+
|
| 269 |
+
else:
|
| 270 |
+
|
| 271 |
+
class mxDateTimeConverter(TimeConverter):
|
| 272 |
+
pass # if no mx is installed
|
| 273 |
+
|
| 274 |
+
|
| 275 |
+
class pythonDateTimeConverter(TimeConverter): # standard since Python 2.3
|
| 276 |
+
def __init__(self):
|
| 277 |
+
TimeConverter.__init__(self)
|
| 278 |
+
|
| 279 |
+
def DateObjectFromCOMDate(self, comDate):
|
| 280 |
+
if isinstance(comDate, datetime.datetime):
|
| 281 |
+
odn = comDate.toordinal()
|
| 282 |
+
tim = comDate.time()
|
| 283 |
+
new = datetime.datetime.combine(datetime.datetime.fromordinal(odn), tim)
|
| 284 |
+
return new
|
| 285 |
+
# return comDate.replace(tzinfo=None) # make non aware
|
| 286 |
+
elif isinstance(comDate, DateTime):
|
| 287 |
+
fComDate = comDate.ToOADate() # ironPython clr Date/Time
|
| 288 |
+
else:
|
| 289 |
+
fComDate = float(comDate) # ComDate is number of days since 1899-12-31
|
| 290 |
+
integerPart = int(fComDate)
|
| 291 |
+
floatpart = fComDate - integerPart
|
| 292 |
+
##if floatpart == 0.0:
|
| 293 |
+
## return datetime.date.fromordinal(integerPart + self._ordinal_1899_12_31)
|
| 294 |
+
dte = datetime.datetime.fromordinal(
|
| 295 |
+
integerPart + self._ordinal_1899_12_31
|
| 296 |
+
) + datetime.timedelta(milliseconds=floatpart * 86400000)
|
| 297 |
+
# millisecondsperday=86400000 # 24*60*60*1000
|
| 298 |
+
return dte
|
| 299 |
+
|
| 300 |
+
def Date(self, year, month, day):
|
| 301 |
+
return datetime.date(year, month, day)
|
| 302 |
+
|
| 303 |
+
def Time(self, hour, minute, second):
|
| 304 |
+
return datetime.time(hour, minute, second)
|
| 305 |
+
|
| 306 |
+
def Timestamp(self, year, month, day, hour, minute, second):
|
| 307 |
+
return datetime.datetime(year, month, day, hour, minute, second)
|
| 308 |
+
|
| 309 |
+
|
| 310 |
+
class pythonTimeConverter(TimeConverter): # the old, ?nix type date and time
|
| 311 |
+
def __init__(self): # caution: this Class gets confised by timezones and DST
|
| 312 |
+
TimeConverter.__init__(self)
|
| 313 |
+
self.types.add(time.struct_time)
|
| 314 |
+
|
| 315 |
+
def DateObjectFromCOMDate(self, comDate):
|
| 316 |
+
"Returns ticks since 1970"
|
| 317 |
+
if isinstance(comDate, datetime.datetime):
|
| 318 |
+
return comDate.timetuple()
|
| 319 |
+
elif isinstance(comDate, DateTime): # ironPython clr date/time
|
| 320 |
+
fcomDate = comDate.ToOADate()
|
| 321 |
+
else:
|
| 322 |
+
fcomDate = float(comDate)
|
| 323 |
+
secondsperday = 86400 # 24*60*60
|
| 324 |
+
# ComDate is number of days since 1899-12-31, gmtime epoch is 1970-1-1 = 25569 days
|
| 325 |
+
t = time.gmtime(secondsperday * (fcomDate - 25569.0))
|
| 326 |
+
return t # year,month,day,hour,minute,second,weekday,julianday,daylightsaving=t
|
| 327 |
+
|
| 328 |
+
def Date(self, year, month, day):
|
| 329 |
+
return self.Timestamp(year, month, day, 0, 0, 0)
|
| 330 |
+
|
| 331 |
+
def Time(self, hour, minute, second):
|
| 332 |
+
return time.gmtime((hour * 60 + minute) * 60 + second)
|
| 333 |
+
|
| 334 |
+
def Timestamp(self, year, month, day, hour, minute, second):
|
| 335 |
+
return time.localtime(
|
| 336 |
+
time.mktime((year, month, day, hour, minute, second, 0, 0, -1))
|
| 337 |
+
)
|
| 338 |
+
|
| 339 |
+
|
| 340 |
+
base_dateconverter = pythonDateTimeConverter()
|
| 341 |
+
|
| 342 |
+
# ------ DB API required module attributes ---------------------
|
| 343 |
+
threadsafety = 1 # TODO -- find out whether this module is actually BETTER than 1.
|
| 344 |
+
|
| 345 |
+
apilevel = "2.0" # String constant stating the supported DB API level.
|
| 346 |
+
|
| 347 |
+
paramstyle = "qmark" # the default parameter style
|
| 348 |
+
|
| 349 |
+
# ------ control for an extension which may become part of DB API 3.0 ---
|
| 350 |
+
accepted_paramstyles = ("qmark", "named", "format", "pyformat", "dynamic")
|
| 351 |
+
|
| 352 |
+
# ------------------------------------------------------------------------------------------
|
| 353 |
+
# define similar types for generic conversion routines
|
| 354 |
+
adoIntegerTypes = (
|
| 355 |
+
adc.adInteger,
|
| 356 |
+
adc.adSmallInt,
|
| 357 |
+
adc.adTinyInt,
|
| 358 |
+
adc.adUnsignedInt,
|
| 359 |
+
adc.adUnsignedSmallInt,
|
| 360 |
+
adc.adUnsignedTinyInt,
|
| 361 |
+
adc.adBoolean,
|
| 362 |
+
adc.adError,
|
| 363 |
+
) # max 32 bits
|
| 364 |
+
adoRowIdTypes = (adc.adChapter,) # v2.1 Rose
|
| 365 |
+
adoLongTypes = (adc.adBigInt, adc.adFileTime, adc.adUnsignedBigInt)
|
| 366 |
+
adoExactNumericTypes = (
|
| 367 |
+
adc.adDecimal,
|
| 368 |
+
adc.adNumeric,
|
| 369 |
+
adc.adVarNumeric,
|
| 370 |
+
adc.adCurrency,
|
| 371 |
+
) # v2.3 Cole
|
| 372 |
+
adoApproximateNumericTypes = (adc.adDouble, adc.adSingle) # v2.1 Cole
|
| 373 |
+
adoStringTypes = (
|
| 374 |
+
adc.adBSTR,
|
| 375 |
+
adc.adChar,
|
| 376 |
+
adc.adLongVarChar,
|
| 377 |
+
adc.adLongVarWChar,
|
| 378 |
+
adc.adVarChar,
|
| 379 |
+
adc.adVarWChar,
|
| 380 |
+
adc.adWChar,
|
| 381 |
+
)
|
| 382 |
+
adoBinaryTypes = (adc.adBinary, adc.adLongVarBinary, adc.adVarBinary)
|
| 383 |
+
adoDateTimeTypes = (adc.adDBTime, adc.adDBTimeStamp, adc.adDate, adc.adDBDate)
|
| 384 |
+
adoRemainingTypes = (
|
| 385 |
+
adc.adEmpty,
|
| 386 |
+
adc.adIDispatch,
|
| 387 |
+
adc.adIUnknown,
|
| 388 |
+
adc.adPropVariant,
|
| 389 |
+
adc.adArray,
|
| 390 |
+
adc.adUserDefined,
|
| 391 |
+
adc.adVariant,
|
| 392 |
+
adc.adGUID,
|
| 393 |
+
)
|
| 394 |
+
|
| 395 |
+
|
| 396 |
+
# this class is a trick to determine whether a type is a member of a related group of types. see PEP notes
|
| 397 |
+
class DBAPITypeObject(object):
|
| 398 |
+
def __init__(self, valuesTuple):
|
| 399 |
+
self.values = frozenset(valuesTuple)
|
| 400 |
+
|
| 401 |
+
def __eq__(self, other):
|
| 402 |
+
return other in self.values
|
| 403 |
+
|
| 404 |
+
def __ne__(self, other):
|
| 405 |
+
return other not in self.values
|
| 406 |
+
|
| 407 |
+
|
| 408 |
+
"""This type object is used to describe columns in a database that are string-based (e.g. CHAR). """
|
| 409 |
+
STRING = DBAPITypeObject(adoStringTypes)
|
| 410 |
+
|
| 411 |
+
"""This type object is used to describe (long) binary columns in a database (e.g. LONG, RAW, BLOBs). """
|
| 412 |
+
BINARY = DBAPITypeObject(adoBinaryTypes)
|
| 413 |
+
|
| 414 |
+
"""This type object is used to describe numeric columns in a database. """
|
| 415 |
+
NUMBER = DBAPITypeObject(
|
| 416 |
+
adoIntegerTypes + adoLongTypes + adoExactNumericTypes + adoApproximateNumericTypes
|
| 417 |
+
)
|
| 418 |
+
|
| 419 |
+
"""This type object is used to describe date/time columns in a database. """
|
| 420 |
+
|
| 421 |
+
DATETIME = DBAPITypeObject(adoDateTimeTypes)
|
| 422 |
+
"""This type object is used to describe the "Row ID" column in a database. """
|
| 423 |
+
ROWID = DBAPITypeObject(adoRowIdTypes)
|
| 424 |
+
|
| 425 |
+
OTHER = DBAPITypeObject(adoRemainingTypes)
|
| 426 |
+
|
| 427 |
+
# ------- utilities for translating python data types to ADO data types ---------------------------------
|
| 428 |
+
typeMap = {
|
| 429 |
+
memoryViewType: adc.adVarBinary,
|
| 430 |
+
float: adc.adDouble,
|
| 431 |
+
type(None): adc.adEmpty,
|
| 432 |
+
str: adc.adBSTR,
|
| 433 |
+
bool: adc.adBoolean, # v2.1 Cole
|
| 434 |
+
decimal.Decimal: adc.adDecimal,
|
| 435 |
+
int: adc.adBigInt,
|
| 436 |
+
bytes: adc.adVarBinary,
|
| 437 |
+
}
|
| 438 |
+
|
| 439 |
+
|
| 440 |
+
def pyTypeToADOType(d):
|
| 441 |
+
tp = type(d)
|
| 442 |
+
try:
|
| 443 |
+
return typeMap[tp]
|
| 444 |
+
except KeyError: # The type was not defined in the pre-computed Type table
|
| 445 |
+
from . import dateconverter
|
| 446 |
+
|
| 447 |
+
if (
|
| 448 |
+
tp in dateconverter.types
|
| 449 |
+
): # maybe it is one of our supported Date/Time types
|
| 450 |
+
return adc.adDate
|
| 451 |
+
# otherwise, attempt to discern the type by probing the data object itself -- to handle duck typing
|
| 452 |
+
if isinstance(d, StringTypes):
|
| 453 |
+
return adc.adBSTR
|
| 454 |
+
if isinstance(d, numbers.Integral):
|
| 455 |
+
return adc.adBigInt
|
| 456 |
+
if isinstance(d, numbers.Real):
|
| 457 |
+
return adc.adDouble
|
| 458 |
+
raise DataError('cannot convert "%s" (type=%s) to ADO' % (repr(d), tp))
|
| 459 |
+
|
| 460 |
+
|
| 461 |
+
# # # # # # # # # # # # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
| 462 |
+
# functions to convert database values to Python objects
|
| 463 |
+
# ------------------------------------------------------------------------
|
| 464 |
+
# variant type : function converting variant to Python value
|
| 465 |
+
def variantConvertDate(v):
|
| 466 |
+
from . import dateconverter # this function only called when adodbapi is running
|
| 467 |
+
|
| 468 |
+
return dateconverter.DateObjectFromCOMDate(v)
|
| 469 |
+
|
| 470 |
+
|
| 471 |
+
def cvtString(variant): # use to get old action of adodbapi v1 if desired
|
| 472 |
+
if onIronPython:
|
| 473 |
+
try:
|
| 474 |
+
return variant.ToString()
|
| 475 |
+
except:
|
| 476 |
+
pass
|
| 477 |
+
return str(variant)
|
| 478 |
+
|
| 479 |
+
|
| 480 |
+
def cvtDecimal(variant): # better name
|
| 481 |
+
return _convertNumberWithCulture(variant, decimal.Decimal)
|
| 482 |
+
|
| 483 |
+
|
| 484 |
+
def cvtNumeric(variant): # older name - don't break old code
|
| 485 |
+
return cvtDecimal(variant)
|
| 486 |
+
|
| 487 |
+
|
| 488 |
+
def cvtFloat(variant):
|
| 489 |
+
return _convertNumberWithCulture(variant, float)
|
| 490 |
+
|
| 491 |
+
|
| 492 |
+
def _convertNumberWithCulture(variant, f):
|
| 493 |
+
try:
|
| 494 |
+
return f(variant)
|
| 495 |
+
except (ValueError, TypeError, decimal.InvalidOperation):
|
| 496 |
+
try:
|
| 497 |
+
europeVsUS = str(variant).replace(",", ".")
|
| 498 |
+
return f(europeVsUS)
|
| 499 |
+
except (ValueError, TypeError, decimal.InvalidOperation):
|
| 500 |
+
pass
|
| 501 |
+
|
| 502 |
+
|
| 503 |
+
def cvtInt(variant):
|
| 504 |
+
return int(variant)
|
| 505 |
+
|
| 506 |
+
|
| 507 |
+
def cvtLong(variant): # only important in old versions where long and int differ
|
| 508 |
+
return int(variant)
|
| 509 |
+
|
| 510 |
+
|
| 511 |
+
def cvtBuffer(variant):
|
| 512 |
+
return bytes(variant)
|
| 513 |
+
|
| 514 |
+
|
| 515 |
+
def cvtUnicode(variant):
|
| 516 |
+
return str(variant)
|
| 517 |
+
|
| 518 |
+
|
| 519 |
+
def identity(x):
|
| 520 |
+
return x
|
| 521 |
+
|
| 522 |
+
|
| 523 |
+
def cvtUnusual(variant):
|
| 524 |
+
if verbose > 1:
|
| 525 |
+
sys.stderr.write("Conversion called for Unusual data=%s\n" % repr(variant))
|
| 526 |
+
if isinstance(variant, DateTime): # COMdate or System.Date
|
| 527 |
+
from .adodbapi import ( # this will only be called when adodbapi is in use, and very rarely
|
| 528 |
+
dateconverter,
|
| 529 |
+
)
|
| 530 |
+
|
| 531 |
+
return dateconverter.DateObjectFromCOMDate(variant)
|
| 532 |
+
return variant # cannot find conversion function -- just give the data to the user
|
| 533 |
+
|
| 534 |
+
|
| 535 |
+
def convert_to_python(variant, func): # convert DB value into Python value
|
| 536 |
+
if isinstance(variant, NullTypes): # IronPython Null or None
|
| 537 |
+
return None
|
| 538 |
+
return func(variant) # call the appropriate conversion function
|
| 539 |
+
|
| 540 |
+
|
| 541 |
+
class MultiMap(dict): # builds a dictionary from {(sequence,of,keys) : function}
|
| 542 |
+
"""A dictionary of ado.type : function -- but you can set multiple items by passing a sequence of keys"""
|
| 543 |
+
|
| 544 |
+
# useful for defining conversion functions for groups of similar data types.
|
| 545 |
+
def __init__(self, aDict):
|
| 546 |
+
for k, v in list(aDict.items()):
|
| 547 |
+
self[k] = v # we must call __setitem__
|
| 548 |
+
|
| 549 |
+
def __setitem__(self, adoType, cvtFn):
|
| 550 |
+
"set a single item, or a whole sequence of items"
|
| 551 |
+
try: # user passed us a sequence, set them individually
|
| 552 |
+
for type in adoType:
|
| 553 |
+
dict.__setitem__(self, type, cvtFn)
|
| 554 |
+
except TypeError: # a single value fails attempt to iterate
|
| 555 |
+
dict.__setitem__(self, adoType, cvtFn)
|
| 556 |
+
|
| 557 |
+
|
| 558 |
+
# initialize variantConversions dictionary used to convert SQL to Python
|
| 559 |
+
# this is the dictionary of default conversion functions, built by the class above.
|
| 560 |
+
# this becomes a class attribute for the Connection, and that attribute is used
|
| 561 |
+
# to build the list of column conversion functions for the Cursor
|
| 562 |
+
variantConversions = MultiMap(
|
| 563 |
+
{
|
| 564 |
+
adoDateTimeTypes: variantConvertDate,
|
| 565 |
+
adoApproximateNumericTypes: cvtFloat,
|
| 566 |
+
adoExactNumericTypes: cvtDecimal, # use to force decimal rather than unicode
|
| 567 |
+
adoLongTypes: cvtLong,
|
| 568 |
+
adoIntegerTypes: cvtInt,
|
| 569 |
+
adoRowIdTypes: cvtInt,
|
| 570 |
+
adoStringTypes: identity,
|
| 571 |
+
adoBinaryTypes: cvtBuffer,
|
| 572 |
+
adoRemainingTypes: cvtUnusual,
|
| 573 |
+
}
|
| 574 |
+
)
|
| 575 |
+
|
| 576 |
+
# # # # # classes to emulate the result of cursor.fetchxxx() as a sequence of sequences # # # # #
|
| 577 |
+
# "an ENUM of how my low level records are laid out"
|
| 578 |
+
RS_WIN_32, RS_ARRAY, RS_REMOTE = list(range(1, 4))
|
| 579 |
+
|
| 580 |
+
|
| 581 |
+
class SQLrow(object): # a single database row
|
| 582 |
+
# class to emulate a sequence, so that a column may be retrieved by either number or name
|
| 583 |
+
def __init__(self, rows, index): # "rows" is an _SQLrows object, index is which row
|
| 584 |
+
self.rows = rows # parent 'fetch' container object
|
| 585 |
+
self.index = index # my row number within parent
|
| 586 |
+
|
| 587 |
+
def __getattr__(self, name): # used for row.columnName type of value access
|
| 588 |
+
try:
|
| 589 |
+
return self._getValue(self.rows.columnNames[name.lower()])
|
| 590 |
+
except KeyError:
|
| 591 |
+
raise AttributeError('Unknown column name "{}"'.format(name))
|
| 592 |
+
|
| 593 |
+
def _getValue(self, key): # key must be an integer
|
| 594 |
+
if (
|
| 595 |
+
self.rows.recordset_format == RS_ARRAY
|
| 596 |
+
): # retrieve from two-dimensional array
|
| 597 |
+
v = self.rows.ado_results[key, self.index]
|
| 598 |
+
elif self.rows.recordset_format == RS_REMOTE:
|
| 599 |
+
v = self.rows.ado_results[self.index][key]
|
| 600 |
+
else: # pywin32 - retrieve from tuple of tuples
|
| 601 |
+
v = self.rows.ado_results[key][self.index]
|
| 602 |
+
if self.rows.converters is NotImplemented:
|
| 603 |
+
return v
|
| 604 |
+
return convert_to_python(v, self.rows.converters[key])
|
| 605 |
+
|
| 606 |
+
def __len__(self):
|
| 607 |
+
return self.rows.numberOfColumns
|
| 608 |
+
|
| 609 |
+
def __getitem__(self, key): # used for row[key] type of value access
|
| 610 |
+
if isinstance(key, int): # normal row[1] designation
|
| 611 |
+
try:
|
| 612 |
+
return self._getValue(key)
|
| 613 |
+
except IndexError:
|
| 614 |
+
raise
|
| 615 |
+
if isinstance(key, slice):
|
| 616 |
+
indices = key.indices(self.rows.numberOfColumns)
|
| 617 |
+
vl = [self._getValue(i) for i in range(*indices)]
|
| 618 |
+
return tuple(vl)
|
| 619 |
+
try:
|
| 620 |
+
return self._getValue(
|
| 621 |
+
self.rows.columnNames[key.lower()]
|
| 622 |
+
) # extension row[columnName] designation
|
| 623 |
+
except (KeyError, TypeError):
|
| 624 |
+
er, st, tr = sys.exc_info()
|
| 625 |
+
raise er(
|
| 626 |
+
'No such key as "%s" in %s' % (repr(key), self.__repr__())
|
| 627 |
+
).with_traceback(tr)
|
| 628 |
+
|
| 629 |
+
def __iter__(self):
|
| 630 |
+
return iter(self.__next__())
|
| 631 |
+
|
| 632 |
+
def __next__(self):
|
| 633 |
+
for n in range(self.rows.numberOfColumns):
|
| 634 |
+
yield self._getValue(n)
|
| 635 |
+
|
| 636 |
+
def __repr__(self): # create a human readable representation
|
| 637 |
+
taglist = sorted(list(self.rows.columnNames.items()), key=lambda x: x[1])
|
| 638 |
+
s = "<SQLrow={"
|
| 639 |
+
for name, i in taglist:
|
| 640 |
+
s += name + ":" + repr(self._getValue(i)) + ", "
|
| 641 |
+
return s[:-2] + "}>"
|
| 642 |
+
|
| 643 |
+
def __str__(self): # create a pretty human readable representation
|
| 644 |
+
return str(
|
| 645 |
+
tuple(str(self._getValue(i)) for i in range(self.rows.numberOfColumns))
|
| 646 |
+
)
|
| 647 |
+
|
| 648 |
+
# TO-DO implement pickling an SQLrow directly
|
| 649 |
+
# def __getstate__(self): return self.__dict__
|
| 650 |
+
# def __setstate__(self, d): self.__dict__.update(d)
|
| 651 |
+
# which basically tell pickle to treat your class just like a normal one,
|
| 652 |
+
# taking self.__dict__ as representing the whole of the instance state,
|
| 653 |
+
# despite the existence of the __getattr__.
|
| 654 |
+
# # # #
|
| 655 |
+
|
| 656 |
+
|
| 657 |
+
class SQLrows(object):
|
| 658 |
+
# class to emulate a sequence for multiple rows using a container object
|
| 659 |
+
def __init__(self, ado_results, numberOfRows, cursor):
|
| 660 |
+
self.ado_results = ado_results # raw result of SQL get
|
| 661 |
+
try:
|
| 662 |
+
self.recordset_format = cursor.recordset_format
|
| 663 |
+
self.numberOfColumns = cursor.numberOfColumns
|
| 664 |
+
self.converters = cursor.converters
|
| 665 |
+
self.columnNames = cursor.columnNames
|
| 666 |
+
except AttributeError:
|
| 667 |
+
self.recordset_format = RS_ARRAY
|
| 668 |
+
self.numberOfColumns = 0
|
| 669 |
+
self.converters = []
|
| 670 |
+
self.columnNames = {}
|
| 671 |
+
self.numberOfRows = numberOfRows
|
| 672 |
+
|
| 673 |
+
def __len__(self):
|
| 674 |
+
return self.numberOfRows
|
| 675 |
+
|
| 676 |
+
def __getitem__(self, item): # used for row or row,column access
|
| 677 |
+
if not self.ado_results:
|
| 678 |
+
return []
|
| 679 |
+
if isinstance(item, slice): # will return a list of row objects
|
| 680 |
+
indices = item.indices(self.numberOfRows)
|
| 681 |
+
return [SQLrow(self, k) for k in range(*indices)]
|
| 682 |
+
elif isinstance(item, tuple) and len(item) == 2:
|
| 683 |
+
# d = some_rowsObject[i,j] will return a datum from a two-dimension address
|
| 684 |
+
i, j = item
|
| 685 |
+
if not isinstance(j, int):
|
| 686 |
+
try:
|
| 687 |
+
j = self.columnNames[j.lower()] # convert named column to numeric
|
| 688 |
+
except KeyError:
|
| 689 |
+
raise KeyError('adodbapi: no such column name as "%s"' % repr(j))
|
| 690 |
+
if self.recordset_format == RS_ARRAY: # retrieve from two-dimensional array
|
| 691 |
+
v = self.ado_results[j, i]
|
| 692 |
+
elif self.recordset_format == RS_REMOTE:
|
| 693 |
+
v = self.ado_results[i][j]
|
| 694 |
+
else: # pywin32 - retrieve from tuple of tuples
|
| 695 |
+
v = self.ado_results[j][i]
|
| 696 |
+
if self.converters is NotImplemented:
|
| 697 |
+
return v
|
| 698 |
+
return convert_to_python(v, self.converters[j])
|
| 699 |
+
else:
|
| 700 |
+
row = SQLrow(self, item) # new row descriptor
|
| 701 |
+
return row
|
| 702 |
+
|
| 703 |
+
def __iter__(self):
|
| 704 |
+
return iter(self.__next__())
|
| 705 |
+
|
| 706 |
+
def __next__(self):
|
| 707 |
+
for n in range(self.numberOfRows):
|
| 708 |
+
row = SQLrow(self, n)
|
| 709 |
+
yield row
|
| 710 |
+
# # # # #
|
| 711 |
+
|
| 712 |
+
# # # # # functions to re-format SQL requests to other paramstyle requirements # # # # # # # # # #
|
| 713 |
+
|
| 714 |
+
|
| 715 |
+
def changeNamedToQmark(
|
| 716 |
+
op,
|
| 717 |
+
): # convert from 'named' paramstyle to ADO required '?'mark parameters
|
| 718 |
+
outOp = ""
|
| 719 |
+
outparms = []
|
| 720 |
+
chunks = op.split(
|
| 721 |
+
"'"
|
| 722 |
+
) # quote all literals -- odd numbered list results are literals.
|
| 723 |
+
inQuotes = False
|
| 724 |
+
for chunk in chunks:
|
| 725 |
+
if inQuotes: # this is inside a quote
|
| 726 |
+
if chunk == "": # double apostrophe to quote one apostrophe
|
| 727 |
+
outOp = outOp[:-1] # so take one away
|
| 728 |
+
else:
|
| 729 |
+
outOp += "'" + chunk + "'" # else pass the quoted string as is.
|
| 730 |
+
else: # is SQL code -- look for a :namedParameter
|
| 731 |
+
while chunk: # some SQL string remains
|
| 732 |
+
sp = chunk.split(":", 1)
|
| 733 |
+
outOp += sp[0] # concat the part up to the :
|
| 734 |
+
s = ""
|
| 735 |
+
try:
|
| 736 |
+
chunk = sp[1]
|
| 737 |
+
except IndexError:
|
| 738 |
+
chunk = None
|
| 739 |
+
if chunk: # there was a parameter - parse it out
|
| 740 |
+
i = 0
|
| 741 |
+
c = chunk[0]
|
| 742 |
+
while c.isalnum() or c == "_":
|
| 743 |
+
i += 1
|
| 744 |
+
try:
|
| 745 |
+
c = chunk[i]
|
| 746 |
+
except IndexError:
|
| 747 |
+
break
|
| 748 |
+
s = chunk[:i]
|
| 749 |
+
chunk = chunk[i:]
|
| 750 |
+
if s:
|
| 751 |
+
outparms.append(s) # list the parameters in order
|
| 752 |
+
outOp += "?" # put in the Qmark
|
| 753 |
+
inQuotes = not inQuotes
|
| 754 |
+
return outOp, outparms
|
| 755 |
+
|
| 756 |
+
|
| 757 |
+
def changeFormatToQmark(
|
| 758 |
+
op,
|
| 759 |
+
): # convert from 'format' paramstyle to ADO required '?'mark parameters
|
| 760 |
+
outOp = ""
|
| 761 |
+
outparams = []
|
| 762 |
+
chunks = op.split(
|
| 763 |
+
"'"
|
| 764 |
+
) # quote all literals -- odd numbered list results are literals.
|
| 765 |
+
inQuotes = False
|
| 766 |
+
for chunk in chunks:
|
| 767 |
+
if inQuotes:
|
| 768 |
+
if (
|
| 769 |
+
outOp != "" and chunk == ""
|
| 770 |
+
): # he used a double apostrophe to quote one apostrophe
|
| 771 |
+
outOp = outOp[:-1] # so take one away
|
| 772 |
+
else:
|
| 773 |
+
outOp += "'" + chunk + "'" # else pass the quoted string as is.
|
| 774 |
+
else: # is SQL code -- look for a %s parameter
|
| 775 |
+
if "%(" in chunk: # ugh! pyformat!
|
| 776 |
+
while chunk: # some SQL string remains
|
| 777 |
+
sp = chunk.split("%(", 1)
|
| 778 |
+
outOp += sp[0] # concat the part up to the %
|
| 779 |
+
if len(sp) > 1:
|
| 780 |
+
try:
|
| 781 |
+
s, chunk = sp[1].split(")s", 1) # find the ')s'
|
| 782 |
+
except ValueError:
|
| 783 |
+
raise ProgrammingError(
|
| 784 |
+
'Pyformat SQL has incorrect format near "%s"' % chunk
|
| 785 |
+
)
|
| 786 |
+
outparams.append(s)
|
| 787 |
+
outOp += "?" # put in the Qmark
|
| 788 |
+
else:
|
| 789 |
+
chunk = None
|
| 790 |
+
else: # proper '%s' format
|
| 791 |
+
sp = chunk.split("%s") # make each %s
|
| 792 |
+
outOp += "?".join(sp) # into ?
|
| 793 |
+
inQuotes = not inQuotes # every other chunk is a quoted string
|
| 794 |
+
return outOp, outparams
|
pgsql/pgAdmin 4/python/Lib/site-packages/adodbapi/is64bit.py
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""is64bit.Python() --> boolean value of detected Python word size. is64bit.os() --> os build version"""
|
| 2 |
+
import sys
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
def Python():
|
| 6 |
+
if sys.platform == "cli": # IronPython
|
| 7 |
+
import System
|
| 8 |
+
|
| 9 |
+
return System.IntPtr.Size == 8
|
| 10 |
+
else:
|
| 11 |
+
try:
|
| 12 |
+
return sys.maxsize > 2147483647
|
| 13 |
+
except AttributeError:
|
| 14 |
+
return sys.maxint > 2147483647
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
def os():
|
| 18 |
+
import platform
|
| 19 |
+
|
| 20 |
+
pm = platform.machine()
|
| 21 |
+
if pm != ".." and pm.endswith("64"): # recent Python (not Iron)
|
| 22 |
+
return True
|
| 23 |
+
else:
|
| 24 |
+
import os
|
| 25 |
+
|
| 26 |
+
if "PROCESSOR_ARCHITEW6432" in os.environ:
|
| 27 |
+
return True # 32 bit program running on 64 bit Windows
|
| 28 |
+
try:
|
| 29 |
+
return os.environ["PROCESSOR_ARCHITECTURE"].endswith(
|
| 30 |
+
"64"
|
| 31 |
+
) # 64 bit Windows 64 bit program
|
| 32 |
+
except (IndexError, KeyError):
|
| 33 |
+
pass # not Windows
|
| 34 |
+
try:
|
| 35 |
+
return "64" in platform.architecture()[0] # this often works in Linux
|
| 36 |
+
except:
|
| 37 |
+
return False # is an older version of Python, assume also an older os (best we can guess)
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
if __name__ == "__main__":
|
| 41 |
+
print("is64bit.Python() =", Python(), "is64bit.os() =", os())
|
pgsql/pgAdmin 4/python/Lib/site-packages/adodbapi/license.txt
ADDED
|
@@ -0,0 +1,506 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
GNU LESSER GENERAL PUBLIC LICENSE
|
| 2 |
+
Version 2.1, February 1999
|
| 3 |
+
|
| 4 |
+
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
|
| 5 |
+
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
| 6 |
+
Everyone is permitted to copy and distribute verbatim copies
|
| 7 |
+
of this license document, but changing it is not allowed.
|
| 8 |
+
|
| 9 |
+
[This is the first released version of the Lesser GPL. It also counts
|
| 10 |
+
as the successor of the GNU Library Public License, version 2, hence
|
| 11 |
+
the version number 2.1.]
|
| 12 |
+
|
| 13 |
+
Preamble
|
| 14 |
+
|
| 15 |
+
The licenses for most software are designed to take away your
|
| 16 |
+
freedom to share and change it. By contrast, the GNU General Public
|
| 17 |
+
Licenses are intended to guarantee your freedom to share and change
|
| 18 |
+
free software--to make sure the software is free for all its users.
|
| 19 |
+
|
| 20 |
+
This license, the Lesser General Public License, applies to some
|
| 21 |
+
specially designated software packages--typically libraries--of the
|
| 22 |
+
Free Software Foundation and other authors who decide to use it. You
|
| 23 |
+
can use it too, but we suggest you first think carefully about whether
|
| 24 |
+
this license or the ordinary General Public License is the better
|
| 25 |
+
strategy to use in any particular case, based on the explanations below.
|
| 26 |
+
|
| 27 |
+
When we speak of free software, we are referring to freedom of use,
|
| 28 |
+
not price. Our General Public Licenses are designed to make sure that
|
| 29 |
+
you have the freedom to distribute copies of free software (and charge
|
| 30 |
+
for this service if you wish); that you receive source code or can get
|
| 31 |
+
it if you want it; that you can change the software and use pieces of
|
| 32 |
+
it in new free programs; and that you are informed that you can do
|
| 33 |
+
these things.
|
| 34 |
+
|
| 35 |
+
To protect your rights, we need to make restrictions that forbid
|
| 36 |
+
distributors to deny you these rights or to ask you to surrender these
|
| 37 |
+
rights. These restrictions translate to certain responsibilities for
|
| 38 |
+
you if you distribute copies of the library or if you modify it.
|
| 39 |
+
|
| 40 |
+
For example, if you distribute copies of the library, whether gratis
|
| 41 |
+
or for a fee, you must give the recipients all the rights that we gave
|
| 42 |
+
you. You must make sure that they, too, receive or can get the source
|
| 43 |
+
code. If you link other code with the library, you must provide
|
| 44 |
+
complete object files to the recipients, so that they can relink them
|
| 45 |
+
with the library after making changes to the library and recompiling
|
| 46 |
+
it. And you must show them these terms so they know their rights.
|
| 47 |
+
|
| 48 |
+
We protect your rights with a two-step method: (1) we copyright the
|
| 49 |
+
library, and (2) we offer you this license, which gives you legal
|
| 50 |
+
permission to copy, distribute and/or modify the library.
|
| 51 |
+
|
| 52 |
+
To protect each distributor, we want to make it very clear that
|
| 53 |
+
there is no warranty for the free library. Also, if the library is
|
| 54 |
+
modified by someone else and passed on, the recipients should know
|
| 55 |
+
that what they have is not the original version, so that the original
|
| 56 |
+
author's reputation will not be affected by problems that might be
|
| 57 |
+
introduced by others.
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
Finally, software patents pose a constant threat to the existence of
|
| 62 |
+
any free program. We wish to make sure that a company cannot
|
| 63 |
+
effectively restrict the users of a free program by obtaining a
|
| 64 |
+
restrictive license from a patent holder. Therefore, we insist that
|
| 65 |
+
any patent license obtained for a version of the library must be
|
| 66 |
+
consistent with the full freedom of use specified in this license.
|
| 67 |
+
|
| 68 |
+
Most GNU software, including some libraries, is covered by the
|
| 69 |
+
ordinary GNU General Public License. This license, the GNU Lesser
|
| 70 |
+
General Public License, applies to certain designated libraries, and
|
| 71 |
+
is quite different from the ordinary General Public License. We use
|
| 72 |
+
this license for certain libraries in order to permit linking those
|
| 73 |
+
libraries into non-free programs.
|
| 74 |
+
|
| 75 |
+
When a program is linked with a library, whether statically or using
|
| 76 |
+
a shared library, the combination of the two is legally speaking a
|
| 77 |
+
combined work, a derivative of the original library. The ordinary
|
| 78 |
+
General Public License therefore permits such linking only if the
|
| 79 |
+
entire combination fits its criteria of freedom. The Lesser General
|
| 80 |
+
Public License permits more lax criteria for linking other code with
|
| 81 |
+
the library.
|
| 82 |
+
|
| 83 |
+
We call this license the "Lesser" General Public License because it
|
| 84 |
+
does Less to protect the user's freedom than the ordinary General
|
| 85 |
+
Public License. It also provides other free software developers Less
|
| 86 |
+
of an advantage over competing non-free programs. These disadvantages
|
| 87 |
+
are the reason we use the ordinary General Public License for many
|
| 88 |
+
libraries. However, the Lesser license provides advantages in certain
|
| 89 |
+
special circumstances.
|
| 90 |
+
|
| 91 |
+
For example, on rare occasions, there may be a special need to
|
| 92 |
+
encourage the widest possible use of a certain library, so that it becomes
|
| 93 |
+
a de-facto standard. To achieve this, non-free programs must be
|
| 94 |
+
allowed to use the library. A more frequent case is that a free
|
| 95 |
+
library does the same job as widely used non-free libraries. In this
|
| 96 |
+
case, there is little to gain by limiting the free library to free
|
| 97 |
+
software only, so we use the Lesser General Public License.
|
| 98 |
+
|
| 99 |
+
In other cases, permission to use a particular library in non-free
|
| 100 |
+
programs enables a greater number of people to use a large body of
|
| 101 |
+
free software. For example, permission to use the GNU C Library in
|
| 102 |
+
non-free programs enables many more people to use the whole GNU
|
| 103 |
+
operating system, as well as its variant, the GNU/Linux operating
|
| 104 |
+
system.
|
| 105 |
+
|
| 106 |
+
Although the Lesser General Public License is Less protective of the
|
| 107 |
+
users' freedom, it does ensure that the user of a program that is
|
| 108 |
+
linked with the Library has the freedom and the wherewithal to run
|
| 109 |
+
that program using a modified version of the Library.
|
| 110 |
+
|
| 111 |
+
The precise terms and conditions for copying, distribution and
|
| 112 |
+
modification follow. Pay close attention to the difference between a
|
| 113 |
+
"work based on the library" and a "work that uses the library". The
|
| 114 |
+
former contains code derived from the library, whereas the latter must
|
| 115 |
+
be combined with the library in order to run.
|
| 116 |
+
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
GNU LESSER GENERAL PUBLIC LICENSE
|
| 120 |
+
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
| 121 |
+
|
| 122 |
+
0. This License Agreement applies to any software library or other
|
| 123 |
+
program which contains a notice placed by the copyright holder or
|
| 124 |
+
other authorized party saying it may be distributed under the terms of
|
| 125 |
+
this Lesser General Public License (also called "this License").
|
| 126 |
+
Each licensee is addressed as "you".
|
| 127 |
+
|
| 128 |
+
A "library" means a collection of software functions and/or data
|
| 129 |
+
prepared so as to be conveniently linked with application programs
|
| 130 |
+
(which use some of those functions and data) to form executables.
|
| 131 |
+
|
| 132 |
+
The "Library", below, refers to any such software library or work
|
| 133 |
+
which has been distributed under these terms. A "work based on the
|
| 134 |
+
Library" means either the Library or any derivative work under
|
| 135 |
+
copyright law: that is to say, a work containing the Library or a
|
| 136 |
+
portion of it, either verbatim or with modifications and/or translated
|
| 137 |
+
straightforwardly into another language. (Hereinafter, translation is
|
| 138 |
+
included without limitation in the term "modification".)
|
| 139 |
+
|
| 140 |
+
"Source code" for a work means the preferred form of the work for
|
| 141 |
+
making modifications to it. For a library, complete source code means
|
| 142 |
+
all the source code for all modules it contains, plus any associated
|
| 143 |
+
interface definition files, plus the scripts used to control compilation
|
| 144 |
+
and installation of the library.
|
| 145 |
+
|
| 146 |
+
Activities other than copying, distribution and modification are not
|
| 147 |
+
covered by this License; they are outside its scope. The act of
|
| 148 |
+
running a program using the Library is not restricted, and output from
|
| 149 |
+
such a program is covered only if its contents constitute a work based
|
| 150 |
+
on the Library (independent of the use of the Library in a tool for
|
| 151 |
+
writing it). Whether that is true depends on what the Library does
|
| 152 |
+
and what the program that uses the Library does.
|
| 153 |
+
|
| 154 |
+
1. You may copy and distribute verbatim copies of the Library's
|
| 155 |
+
complete source code as you receive it, in any medium, provided that
|
| 156 |
+
you conspicuously and appropriately publish on each copy an
|
| 157 |
+
appropriate copyright notice and disclaimer of warranty; keep intact
|
| 158 |
+
all the notices that refer to this License and to the absence of any
|
| 159 |
+
warranty; and distribute a copy of this License along with the
|
| 160 |
+
Library.
|
| 161 |
+
You may charge a fee for the physical act of transferring a copy,
|
| 162 |
+
and you may at your option offer warranty protection in exchange for a
|
| 163 |
+
fee.
|
| 164 |
+
|
| 165 |
+
2. You may modify your copy or copies of the Library or any portion
|
| 166 |
+
of it, thus forming a work based on the Library, and copy and
|
| 167 |
+
distribute such modifications or work under the terms of Section 1
|
| 168 |
+
above, provided that you also meet all of these conditions:
|
| 169 |
+
|
| 170 |
+
a) The modified work must itself be a software library.
|
| 171 |
+
|
| 172 |
+
b) You must cause the files modified to carry prominent notices
|
| 173 |
+
stating that you changed the files and the date of any change.
|
| 174 |
+
|
| 175 |
+
c) You must cause the whole of the work to be licensed at no
|
| 176 |
+
charge to all third parties under the terms of this License.
|
| 177 |
+
|
| 178 |
+
d) If a facility in the modified Library refers to a function or a
|
| 179 |
+
table of data to be supplied by an application program that uses
|
| 180 |
+
the facility, other than as an argument passed when the facility
|
| 181 |
+
is invoked, then you must make a good faith effort to ensure that,
|
| 182 |
+
in the event an application does not supply such function or
|
| 183 |
+
table, the facility still operates, and performs whatever part of
|
| 184 |
+
its purpose remains meaningful.
|
| 185 |
+
|
| 186 |
+
(For example, a function in a library to compute square roots has
|
| 187 |
+
a purpose that is entirely well-defined independent of the
|
| 188 |
+
application. Therefore, Subsection 2d requires that any
|
| 189 |
+
application-supplied function or table used by this function must
|
| 190 |
+
be optional: if the application does not supply it, the square
|
| 191 |
+
root function must still compute square roots.)
|
| 192 |
+
|
| 193 |
+
These requirements apply to the modified work as a whole. If
|
| 194 |
+
identifiable sections of that work are not derived from the Library,
|
| 195 |
+
and can be reasonably considered independent and separate works in
|
| 196 |
+
themselves, then this License, and its terms, do not apply to those
|
| 197 |
+
sections when you distribute them as separate works. But when you
|
| 198 |
+
distribute the same sections as part of a whole which is a work based
|
| 199 |
+
on the Library, the distribution of the whole must be on the terms of
|
| 200 |
+
this License, whose permissions for other licensees extend to the
|
| 201 |
+
entire whole, and thus to each and every part regardless of who wrote
|
| 202 |
+
it.
|
| 203 |
+
|
| 204 |
+
Thus, it is not the intent of this section to claim rights or contest
|
| 205 |
+
your rights to work written entirely by you; rather, the intent is to
|
| 206 |
+
exercise the right to control the distribution of derivative or
|
| 207 |
+
collective works based on the Library.
|
| 208 |
+
|
| 209 |
+
In addition, mere aggregation of another work not based on the Library
|
| 210 |
+
with the Library (or with a work based on the Library) on a volume of
|
| 211 |
+
a storage or distribution medium does not bring the other work under
|
| 212 |
+
the scope of this License.
|
| 213 |
+
|
| 214 |
+
3. You may opt to apply the terms of the ordinary GNU General Public
|
| 215 |
+
License instead of this License to a given copy of the Library. To do
|
| 216 |
+
this, you must alter all the notices that refer to this License, so
|
| 217 |
+
that they refer to the ordinary GNU General Public License, version 2,
|
| 218 |
+
instead of to this License. (If a newer version than version 2 of the
|
| 219 |
+
ordinary GNU General Public License has appeared, then you can specify
|
| 220 |
+
that version instead if you wish.) Do not make any other change in
|
| 221 |
+
these notices.
|
| 222 |
+
|
| 223 |
+
Once this change is made in a given copy, it is irreversible for
|
| 224 |
+
that copy, so the ordinary GNU General Public License applies to all
|
| 225 |
+
subsequent copies and derivative works made from that copy.
|
| 226 |
+
|
| 227 |
+
This option is useful when you wish to copy part of the code of
|
| 228 |
+
the Library into a program that is not a library.
|
| 229 |
+
|
| 230 |
+
4. You may copy and distribute the Library (or a portion or
|
| 231 |
+
derivative of it, under Section 2) in object code or executable form
|
| 232 |
+
under the terms of Sections 1 and 2 above provided that you accompany
|
| 233 |
+
it with the complete corresponding machine-readable source code, which
|
| 234 |
+
must be distributed under the terms of Sections 1 and 2 above on a
|
| 235 |
+
medium customarily used for software interchange.
|
| 236 |
+
|
| 237 |
+
If distribution of object code is made by offering access to copy
|
| 238 |
+
from a designated place, then offering equivalent access to copy the
|
| 239 |
+
source code from the same place satisfies the requirement to
|
| 240 |
+
distribute the source code, even though third parties are not
|
| 241 |
+
compelled to copy the source along with the object code.
|
| 242 |
+
|
| 243 |
+
5. A program that contains no derivative of any portion of the
|
| 244 |
+
Library, but is designed to work with the Library by being compiled or
|
| 245 |
+
linked with it, is called a "work that uses the Library". Such a
|
| 246 |
+
work, in isolation, is not a derivative work of the Library, and
|
| 247 |
+
therefore falls outside the scope of this License.
|
| 248 |
+
|
| 249 |
+
However, linking a "work that uses the Library" with the Library
|
| 250 |
+
creates an executable that is a derivative of the Library (because it
|
| 251 |
+
contains portions of the Library), rather than a "work that uses the
|
| 252 |
+
library". The executable is therefore covered by this License.
|
| 253 |
+
Section 6 states terms for distribution of such executables.
|
| 254 |
+
|
| 255 |
+
When a "work that uses the Library" uses material from a header file
|
| 256 |
+
that is part of the Library, the object code for the work may be a
|
| 257 |
+
derivative work of the Library even though the source code is not.
|
| 258 |
+
Whether this is true is especially significant if the work can be
|
| 259 |
+
linked without the Library, or if the work is itself a library. The
|
| 260 |
+
threshold for this to be true is not precisely defined by law.
|
| 261 |
+
|
| 262 |
+
If such an object file uses only numerical parameters, data
|
| 263 |
+
structure layouts and accessors, and small macros and small inline
|
| 264 |
+
functions (ten lines or less in length), then the use of the object
|
| 265 |
+
file is unrestricted, regardless of whether it is legally a derivative
|
| 266 |
+
work. (Executables containing this object code plus portions of the
|
| 267 |
+
Library will still fall under Section 6.)
|
| 268 |
+
|
| 269 |
+
Otherwise, if the work is a derivative of the Library, you may
|
| 270 |
+
distribute the object code for the work under the terms of Section 6.
|
| 271 |
+
Any executables containing that work also fall under Section 6,
|
| 272 |
+
whether or not they are linked directly with the Library itself.
|
| 273 |
+
|
| 274 |
+
6. As an exception to the Sections above, you may also combine or
|
| 275 |
+
link a "work that uses the Library" with the Library to produce a
|
| 276 |
+
work containing portions of the Library, and distribute that work
|
| 277 |
+
under terms of your choice, provided that the terms permit
|
| 278 |
+
modification of the work for the customer's own use and reverse
|
| 279 |
+
engineering for debugging such modifications.
|
| 280 |
+
|
| 281 |
+
You must give prominent notice with each copy of the work that the
|
| 282 |
+
Library is used in it and that the Library and its use are covered by
|
| 283 |
+
this License. You must supply a copy of this License. If the work
|
| 284 |
+
during execution displays copyright notices, you must include the
|
| 285 |
+
copyright notice for the Library among them, as well as a reference
|
| 286 |
+
directing the user to the copy of this License. Also, you must do one
|
| 287 |
+
of these things:
|
| 288 |
+
|
| 289 |
+
a) Accompany the work with the complete corresponding
|
| 290 |
+
machine-readable source code for the Library including whatever
|
| 291 |
+
changes were used in the work (which must be distributed under
|
| 292 |
+
Sections 1 and 2 above); and, if the work is an executable linked
|
| 293 |
+
with the Library, with the complete machine-readable "work that
|
| 294 |
+
uses the Library", as object code and/or source code, so that the
|
| 295 |
+
user can modify the Library and then relink to produce a modified
|
| 296 |
+
executable containing the modified Library. (It is understood
|
| 297 |
+
that the user who changes the contents of definitions files in the
|
| 298 |
+
Library will not necessarily be able to recompile the application
|
| 299 |
+
to use the modified definitions.)
|
| 300 |
+
|
| 301 |
+
b) Use a suitable shared library mechanism for linking with the
|
| 302 |
+
Library. A suitable mechanism is one that (1) uses at run time a
|
| 303 |
+
copy of the library already present on the user's computer system,
|
| 304 |
+
rather than copying library functions into the executable, and (2)
|
| 305 |
+
will operate properly with a modified version of the library, if
|
| 306 |
+
the user installs one, as long as the modified version is
|
| 307 |
+
interface-compatible with the version that the work was made with.
|
| 308 |
+
|
| 309 |
+
c) Accompany the work with a written offer, valid for at
|
| 310 |
+
least three years, to give the same user the materials
|
| 311 |
+
specified in Subsection 6a, above, for a charge no more
|
| 312 |
+
than the cost of performing this distribution.
|
| 313 |
+
|
| 314 |
+
d) If distribution of the work is made by offering access to copy
|
| 315 |
+
from a designated place, offer equivalent access to copy the above
|
| 316 |
+
specified materials from the same place.
|
| 317 |
+
|
| 318 |
+
e) Verify that the user has already received a copy of these
|
| 319 |
+
materials or that you have already sent this user a copy.
|
| 320 |
+
|
| 321 |
+
For an executable, the required form of the "work that uses the
|
| 322 |
+
Library" must include any data and utility programs needed for
|
| 323 |
+
reproducing the executable from it. However, as a special exception,
|
| 324 |
+
the materials to be distributed need not include anything that is
|
| 325 |
+
normally distributed (in either source or binary form) with the major
|
| 326 |
+
components (compiler, kernel, and so on) of the operating system on
|
| 327 |
+
which the executable runs, unless that component itself accompanies
|
| 328 |
+
the executable.
|
| 329 |
+
|
| 330 |
+
It may happen that this requirement contradicts the license
|
| 331 |
+
restrictions of other proprietary libraries that do not normally
|
| 332 |
+
accompany the operating system. Such a contradiction means you cannot
|
| 333 |
+
use both them and the Library together in an executable that you
|
| 334 |
+
distribute.
|
| 335 |
+
|
| 336 |
+
7. You may place library facilities that are a work based on the
|
| 337 |
+
Library side-by-side in a single library together with other library
|
| 338 |
+
facilities not covered by this License, and distribute such a combined
|
| 339 |
+
library, provided that the separate distribution of the work based on
|
| 340 |
+
the Library and of the other library facilities is otherwise
|
| 341 |
+
permitted, and provided that you do these two things:
|
| 342 |
+
|
| 343 |
+
a) Accompany the combined library with a copy of the same work
|
| 344 |
+
based on the Library, uncombined with any other library
|
| 345 |
+
facilities. This must be distributed under the terms of the
|
| 346 |
+
Sections above.
|
| 347 |
+
|
| 348 |
+
b) Give prominent notice with the combined library of the fact
|
| 349 |
+
that part of it is a work based on the Library, and explaining
|
| 350 |
+
where to find the accompanying uncombined form of the same work.
|
| 351 |
+
|
| 352 |
+
8. You may not copy, modify, sublicense, link with, or distribute
|
| 353 |
+
the Library except as expressly provided under this License. Any
|
| 354 |
+
attempt otherwise to copy, modify, sublicense, link with, or
|
| 355 |
+
distribute the Library is void, and will automatically terminate your
|
| 356 |
+
rights under this License. However, parties who have received copies,
|
| 357 |
+
or rights, from you under this License will not have their licenses
|
| 358 |
+
terminated so long as such parties remain in full compliance.
|
| 359 |
+
|
| 360 |
+
9. You are not required to accept this License, since you have not
|
| 361 |
+
signed it. However, nothing else grants you permission to modify or
|
| 362 |
+
distribute the Library or its derivative works. These actions are
|
| 363 |
+
prohibited by law if you do not accept this License. Therefore, by
|
| 364 |
+
modifying or distributing the Library (or any work based on the
|
| 365 |
+
Library), you indicate your acceptance of this License to do so, and
|
| 366 |
+
all its terms and conditions for copying, distributing or modifying
|
| 367 |
+
the Library or works based on it.
|
| 368 |
+
|
| 369 |
+
10. Each time you redistribute the Library (or any work based on the
|
| 370 |
+
Library), the recipient automatically receives a license from the
|
| 371 |
+
original licensor to copy, distribute, link with or modify the Library
|
| 372 |
+
subject to these terms and conditions. You may not impose any further
|
| 373 |
+
restrictions on the recipients' exercise of the rights granted herein.
|
| 374 |
+
You are not responsible for enforcing compliance by third parties with
|
| 375 |
+
this License.
|
| 376 |
+
|
| 377 |
+
11. If, as a consequence of a court judgment or allegation of patent
|
| 378 |
+
infringement or for any other reason (not limited to patent issues),
|
| 379 |
+
conditions are imposed on you (whether by court order, agreement or
|
| 380 |
+
otherwise) that contradict the conditions of this License, they do not
|
| 381 |
+
excuse you from the conditions of this License. If you cannot
|
| 382 |
+
distribute so as to satisfy simultaneously your obligations under this
|
| 383 |
+
License and any other pertinent obligations, then as a consequence you
|
| 384 |
+
may not distribute the Library at all. For example, if a patent
|
| 385 |
+
license would not permit royalty-free redistribution of the Library by
|
| 386 |
+
all those who receive copies directly or indirectly through you, then
|
| 387 |
+
the only way you could satisfy both it and this License would be to
|
| 388 |
+
refrain entirely from distribution of the Library.
|
| 389 |
+
|
| 390 |
+
If any portion of this section is held invalid or unenforceable under any
|
| 391 |
+
particular circumstance, the balance of the section is intended to apply,
|
| 392 |
+
and the section as a whole is intended to apply in other circumstances.
|
| 393 |
+
|
| 394 |
+
It is not the purpose of this section to induce you to infringe any
|
| 395 |
+
patents or other property right claims or to contest validity of any
|
| 396 |
+
such claims; this section has the sole purpose of protecting the
|
| 397 |
+
integrity of the free software distribution system which is
|
| 398 |
+
implemented by public license practices. Many people have made
|
| 399 |
+
generous contributions to the wide range of software distributed
|
| 400 |
+
through that system in reliance on consistent application of that
|
| 401 |
+
system; it is up to the author/donor to decide if he or she is willing
|
| 402 |
+
to distribute software through any other system and a licensee cannot
|
| 403 |
+
impose that choice.
|
| 404 |
+
|
| 405 |
+
This section is intended to make thoroughly clear what is believed to
|
| 406 |
+
be a consequence of the rest of this License.
|
| 407 |
+
|
| 408 |
+
12. If the distribution and/or use of the Library is restricted in
|
| 409 |
+
certain countries either by patents or by copyrighted interfaces, the
|
| 410 |
+
original copyright holder who places the Library under this License may add
|
| 411 |
+
an explicit geographical distribution limitation excluding those countries,
|
| 412 |
+
so that distribution is permitted only in or among countries not thus
|
| 413 |
+
excluded. In such case, this License incorporates the limitation as if
|
| 414 |
+
written in the body of this License.
|
| 415 |
+
|
| 416 |
+
13. The Free Software Foundation may publish revised and/or new
|
| 417 |
+
versions of the Lesser General Public License from time to time.
|
| 418 |
+
Such new versions will be similar in spirit to the present version,
|
| 419 |
+
but may differ in detail to address new problems or concerns.
|
| 420 |
+
|
| 421 |
+
Each version is given a distinguishing version number. If the Library
|
| 422 |
+
specifies a version number of this License which applies to it and
|
| 423 |
+
"any later version", you have the option of following the terms and
|
| 424 |
+
conditions either of that version or of any later version published by
|
| 425 |
+
the Free Software Foundation. If the Library does not specify a
|
| 426 |
+
license version number, you may choose any version ever published by
|
| 427 |
+
the Free Software Foundation.
|
| 428 |
+
|
| 429 |
+
14. If you wish to incorporate parts of the Library into other free
|
| 430 |
+
programs whose distribution conditions are incompatible with these,
|
| 431 |
+
write to the author to ask for permission. For software which is
|
| 432 |
+
copyrighted by the Free Software Foundation, write to the Free
|
| 433 |
+
Software Foundation; we sometimes make exceptions for this. Our
|
| 434 |
+
decision will be guided by the two goals of preserving the free status
|
| 435 |
+
of all derivatives of our free software and of promoting the sharing
|
| 436 |
+
and reuse of software generally.
|
| 437 |
+
|
| 438 |
+
NO WARRANTY
|
| 439 |
+
|
| 440 |
+
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
| 441 |
+
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
| 442 |
+
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
| 443 |
+
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
|
| 444 |
+
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
|
| 445 |
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
| 446 |
+
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
|
| 447 |
+
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
|
| 448 |
+
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
| 449 |
+
|
| 450 |
+
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
| 451 |
+
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
|
| 452 |
+
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
|
| 453 |
+
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
|
| 454 |
+
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
|
| 455 |
+
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
|
| 456 |
+
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
|
| 457 |
+
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
|
| 458 |
+
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
| 459 |
+
DAMAGES.
|
| 460 |
+
|
| 461 |
+
END OF TERMS AND CONDITIONS
|
| 462 |
+
|
| 463 |
+
How to Apply These Terms to Your New Libraries
|
| 464 |
+
|
| 465 |
+
If you develop a new library, and you want it to be of the greatest
|
| 466 |
+
possible use to the public, we recommend making it free software that
|
| 467 |
+
everyone can redistribute and change. You can do so by permitting
|
| 468 |
+
redistribution under these terms (or, alternatively, under the terms of the
|
| 469 |
+
ordinary General Public License).
|
| 470 |
+
|
| 471 |
+
To apply these terms, attach the following notices to the library. It is
|
| 472 |
+
safest to attach them to the start of each source file to most effectively
|
| 473 |
+
convey the exclusion of warranty; and each file should have at least the
|
| 474 |
+
"copyright" line and a pointer to where the full notice is found.
|
| 475 |
+
|
| 476 |
+
<one line to give the library's name and a brief idea of what it does.>
|
| 477 |
+
Copyright (C) <year> <name of author>
|
| 478 |
+
|
| 479 |
+
This library is free software; you can redistribute it and/or
|
| 480 |
+
modify it under the terms of the GNU Lesser General Public
|
| 481 |
+
License as published by the Free Software Foundation; either
|
| 482 |
+
version 2.1 of the License, or (at your option) any later version.
|
| 483 |
+
|
| 484 |
+
This library is distributed in the hope that it will be useful,
|
| 485 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 486 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
| 487 |
+
Lesser General Public License for more details.
|
| 488 |
+
|
| 489 |
+
You should have received a copy of the GNU Lesser General Public
|
| 490 |
+
License along with this library; if not, write to the Free Software
|
| 491 |
+
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
| 492 |
+
|
| 493 |
+
Also add information on how to contact you by electronic and paper mail.
|
| 494 |
+
|
| 495 |
+
You should also get your employer (if you work as a programmer) or your
|
| 496 |
+
school, if any, to sign a "copyright disclaimer" for the library, if
|
| 497 |
+
necessary. Here is a sample; alter the names:
|
| 498 |
+
|
| 499 |
+
Yoyodyne, Inc., hereby disclaims all copyright interest in the
|
| 500 |
+
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
|
| 501 |
+
|
| 502 |
+
<signature of Ty Coon>, 1 April 1990
|
| 503 |
+
Ty Coon, President of Vice
|
| 504 |
+
|
| 505 |
+
That's all there is to it!
|
| 506 |
+
|
pgsql/pgAdmin 4/python/Lib/site-packages/adodbapi/process_connect_string.py
ADDED
|
@@ -0,0 +1,144 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
""" a clumsy attempt at a macro language to let the programmer execute code on the server (ex: determine 64bit)"""
|
| 2 |
+
from . import is64bit as is64bit
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
def macro_call(macro_name, args, kwargs):
|
| 6 |
+
"""allow the programmer to perform limited processing on the server by passing macro names and args
|
| 7 |
+
|
| 8 |
+
:new_key - the key name the macro will create
|
| 9 |
+
:args[0] - macro name
|
| 10 |
+
:args[1:] - any arguments
|
| 11 |
+
:code - the value of the keyword item
|
| 12 |
+
:kwargs - the connection keyword dictionary. ??key has been removed
|
| 13 |
+
--> the value to put in for kwargs['name'] = value
|
| 14 |
+
"""
|
| 15 |
+
if isinstance(args, (str, str)):
|
| 16 |
+
args = [
|
| 17 |
+
args
|
| 18 |
+
] # the user forgot to pass a sequence, so make a string into args[0]
|
| 19 |
+
new_key = args[0]
|
| 20 |
+
try:
|
| 21 |
+
if macro_name == "is64bit":
|
| 22 |
+
if is64bit.Python(): # if on 64 bit Python
|
| 23 |
+
return new_key, args[1] # return first argument
|
| 24 |
+
else:
|
| 25 |
+
try:
|
| 26 |
+
return new_key, args[2] # else return second argument (if defined)
|
| 27 |
+
except IndexError:
|
| 28 |
+
return new_key, "" # else return blank
|
| 29 |
+
|
| 30 |
+
elif (
|
| 31 |
+
macro_name == "getuser"
|
| 32 |
+
): # get the name of the user the server is logged in under
|
| 33 |
+
if not new_key in kwargs:
|
| 34 |
+
import getpass
|
| 35 |
+
|
| 36 |
+
return new_key, getpass.getuser()
|
| 37 |
+
|
| 38 |
+
elif macro_name == "getnode": # get the name of the computer running the server
|
| 39 |
+
import platform
|
| 40 |
+
|
| 41 |
+
try:
|
| 42 |
+
return new_key, args[1] % platform.node()
|
| 43 |
+
except IndexError:
|
| 44 |
+
return new_key, platform.node()
|
| 45 |
+
|
| 46 |
+
elif macro_name == "getenv": # expand the server's environment variable args[1]
|
| 47 |
+
try:
|
| 48 |
+
dflt = args[2] # if not found, default from args[2]
|
| 49 |
+
except IndexError: # or blank
|
| 50 |
+
dflt = ""
|
| 51 |
+
return new_key, os.environ.get(args[1], dflt)
|
| 52 |
+
|
| 53 |
+
elif macro_name == "auto_security":
|
| 54 |
+
if (
|
| 55 |
+
not "user" in kwargs or not kwargs["user"]
|
| 56 |
+
): # missing, blank, or Null username
|
| 57 |
+
return new_key, "Integrated Security=SSPI"
|
| 58 |
+
return new_key, "User ID=%(user)s; Password=%(password)s" % kwargs
|
| 59 |
+
|
| 60 |
+
elif (
|
| 61 |
+
macro_name == "find_temp_test_path"
|
| 62 |
+
): # helper function for testing ado operation -- undocumented
|
| 63 |
+
import os
|
| 64 |
+
import tempfile
|
| 65 |
+
|
| 66 |
+
return new_key, os.path.join(
|
| 67 |
+
tempfile.gettempdir(), "adodbapi_test", args[1]
|
| 68 |
+
)
|
| 69 |
+
|
| 70 |
+
raise ValueError("Unknown connect string macro=%s" % macro_name)
|
| 71 |
+
except:
|
| 72 |
+
raise ValueError("Error in macro processing %s %s" % (macro_name, repr(args)))
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
def process(
|
| 76 |
+
args, kwargs, expand_macros=False
|
| 77 |
+
): # --> connection string with keyword arguments processed.
|
| 78 |
+
"""attempts to inject arguments into a connection string using Python "%" operator for strings
|
| 79 |
+
|
| 80 |
+
co: adodbapi connection object
|
| 81 |
+
args: positional parameters from the .connect() call
|
| 82 |
+
kvargs: keyword arguments from the .connect() call
|
| 83 |
+
"""
|
| 84 |
+
try:
|
| 85 |
+
dsn = args[0]
|
| 86 |
+
except IndexError:
|
| 87 |
+
dsn = None
|
| 88 |
+
if isinstance(
|
| 89 |
+
dsn, dict
|
| 90 |
+
): # as a convenience the first argument may be django settings
|
| 91 |
+
kwargs.update(dsn)
|
| 92 |
+
elif (
|
| 93 |
+
dsn
|
| 94 |
+
): # the connection string is passed to the connection as part of the keyword dictionary
|
| 95 |
+
kwargs["connection_string"] = dsn
|
| 96 |
+
try:
|
| 97 |
+
a1 = args[1]
|
| 98 |
+
except IndexError:
|
| 99 |
+
a1 = None
|
| 100 |
+
# historically, the second positional argument might be a timeout value
|
| 101 |
+
if isinstance(a1, int):
|
| 102 |
+
kwargs["timeout"] = a1
|
| 103 |
+
# if the second positional argument is a string, then it is user
|
| 104 |
+
elif isinstance(a1, str):
|
| 105 |
+
kwargs["user"] = a1
|
| 106 |
+
# if the second positional argument is a dictionary, use it as keyword arguments, too
|
| 107 |
+
elif isinstance(a1, dict):
|
| 108 |
+
kwargs.update(a1)
|
| 109 |
+
try:
|
| 110 |
+
kwargs["password"] = args[2] # the third positional argument is password
|
| 111 |
+
kwargs["host"] = args[3] # the fourth positional argument is host name
|
| 112 |
+
kwargs["database"] = args[4] # the fifth positional argument is database name
|
| 113 |
+
except IndexError:
|
| 114 |
+
pass
|
| 115 |
+
|
| 116 |
+
# make sure connection string is defined somehow
|
| 117 |
+
if not "connection_string" in kwargs:
|
| 118 |
+
try: # perhaps 'dsn' was defined
|
| 119 |
+
kwargs["connection_string"] = kwargs["dsn"]
|
| 120 |
+
except KeyError:
|
| 121 |
+
try: # as a last effort, use the "host" keyword
|
| 122 |
+
kwargs["connection_string"] = kwargs["host"]
|
| 123 |
+
except KeyError:
|
| 124 |
+
raise TypeError("Must define 'connection_string' for ado connections")
|
| 125 |
+
if expand_macros:
|
| 126 |
+
for kwarg in list(kwargs.keys()):
|
| 127 |
+
if kwarg.startswith("macro_"): # If a key defines a macro
|
| 128 |
+
macro_name = kwarg[6:] # name without the "macro_"
|
| 129 |
+
macro_code = kwargs.pop(
|
| 130 |
+
kwarg
|
| 131 |
+
) # we remove the macro_key and get the code to execute
|
| 132 |
+
new_key, rslt = macro_call(
|
| 133 |
+
macro_name, macro_code, kwargs
|
| 134 |
+
) # run the code in the local context
|
| 135 |
+
kwargs[new_key] = rslt # put the result back in the keywords dict
|
| 136 |
+
# special processing for PyRO IPv6 host address
|
| 137 |
+
try:
|
| 138 |
+
s = kwargs["proxy_host"]
|
| 139 |
+
if ":" in s: # it is an IPv6 address
|
| 140 |
+
if s[0] != "[": # is not surrounded by brackets
|
| 141 |
+
kwargs["proxy_host"] = s.join(("[", "]")) # put it in brackets
|
| 142 |
+
except KeyError:
|
| 143 |
+
pass
|
| 144 |
+
return kwargs
|
pgsql/pgAdmin 4/python/Lib/site-packages/adodbapi/readme.txt
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Project
|
| 2 |
+
-------
|
| 3 |
+
adodbapi
|
| 4 |
+
|
| 5 |
+
A Python DB-API 2.0 (PEP-249) module that makes it easy to use Microsoft ADO
|
| 6 |
+
for connecting with databases and other data sources
|
| 7 |
+
using either CPython or IronPython.
|
| 8 |
+
|
| 9 |
+
Home page: <http://sourceforge.net/projects/adodbapi>
|
| 10 |
+
|
| 11 |
+
Features:
|
| 12 |
+
* 100% DB-API 2.0 (PEP-249) compliant (including most extensions and recommendations).
|
| 13 |
+
* Includes pyunit testcases that describe how to use the module.
|
| 14 |
+
* Fully implemented in Python. -- runs in Python 2.5+ Python 3.0+ and IronPython 2.6+
|
| 15 |
+
* Licensed under the LGPL license, which means that it can be used freely even in commercial programs subject to certain restrictions.
|
| 16 |
+
* The user can choose between paramstyles: 'qmark' 'named' 'format' 'pyformat' 'dynamic'
|
| 17 |
+
* Supports data retrieval by column name e.g.:
|
| 18 |
+
for row in myCurser.execute("select name,age from students"):
|
| 19 |
+
print("Student", row.name, "is", row.age, "years old.")
|
| 20 |
+
* Supports user-definable system-to-Python data conversion functions (selected by ADO data type, or by column)
|
| 21 |
+
|
| 22 |
+
Prerequisites:
|
| 23 |
+
* C Python 2.7 or 3.5 or higher
|
| 24 |
+
and pywin32 (Mark Hammond's python for windows extensions.)
|
| 25 |
+
or
|
| 26 |
+
Iron Python 2.7 or higher. (works in IPy2.0 for all data types except BUFFER)
|
| 27 |
+
|
| 28 |
+
Installation:
|
| 29 |
+
* (C-Python on Windows): Install pywin32 ("pip install pywin32") which includes adodbapi.
|
| 30 |
+
* (IronPython on Windows): Download adodbapi from http://sf.net/projects/adodbapi. Unpack the zip.
|
| 31 |
+
Open a command window as an administrator. CD to the folder containing the unzipped files.
|
| 32 |
+
Run "setup.py install" using the IronPython of your choice.
|
| 33 |
+
|
| 34 |
+
NOTE: ...........
|
| 35 |
+
If you do not like the new default operation of returning Numeric columns as decimal.Decimal,
|
| 36 |
+
you can select other options by the user defined conversion feature.
|
| 37 |
+
Try:
|
| 38 |
+
adodbapi.apibase.variantConversions[adodbapi.ado_consts.adNumeric] = adodbapi.apibase.cvtString
|
| 39 |
+
or:
|
| 40 |
+
adodbapi.apibase.variantConversions[adodbapi.ado_consts.adNumeric] = adodbapi.apibase.cvtFloat
|
| 41 |
+
or:
|
| 42 |
+
adodbapi.apibase.variantConversions[adodbapi.ado_consts.adNumeric] = write_your_own_convertion_function
|
| 43 |
+
............
|
| 44 |
+
notes for 2.6.2:
|
| 45 |
+
The definitive source has been moved to https://github.com/mhammond/pywin32/tree/master/adodbapi.
|
| 46 |
+
Remote has proven too hard to configure and test with Pyro4. I am moving it to unsupported status
|
| 47 |
+
until I can change to a different connection method.
|
| 48 |
+
whats new in version 2.6
|
| 49 |
+
A cursor.prepare() method and support for prepared SQL statements.
|
| 50 |
+
Lots of refactoring, especially of the Remote and Server modules (still to be treated as Beta code).
|
| 51 |
+
The quick start document 'quick_reference.odt' will export as a nice-looking pdf.
|
| 52 |
+
Added paramstyles 'pyformat' and 'dynamic'. If your 'paramstyle' is 'named' you _must_ pass a dictionary of
|
| 53 |
+
parameters to your .execute() method. If your 'paramstyle' is 'format' 'pyformat' or 'dynamic', you _may_
|
| 54 |
+
pass a dictionary of parameters -- provided your SQL operation string is formatted correctly.
|
| 55 |
+
|
| 56 |
+
whats new in version 2.5
|
| 57 |
+
Remote module: (works on Linux!) allows a Windows computer to serve ADO databases via PyRO
|
| 58 |
+
Server module: PyRO server for ADO. Run using a command like= C:>python -m adodbapi.server
|
| 59 |
+
(server has simple connection string macros: is64bit, getuser, sql_provider, auto_security)
|
| 60 |
+
Brief documentation included. See adodbapi/examples folder adodbapi.rtf
|
| 61 |
+
New connection method conn.get_table_names() --> list of names of tables in database
|
| 62 |
+
|
| 63 |
+
Vastly refactored. Data conversion things have been moved to the new adodbapi.apibase module.
|
| 64 |
+
Many former module-level attributes are now class attributes. (Should be more thread-safe)
|
| 65 |
+
Connection objects are now context managers for transactions and will commit or rollback.
|
| 66 |
+
Cursor objects are context managers and will automatically close themselves.
|
| 67 |
+
Autocommit can be switched on and off.
|
| 68 |
+
Keyword and positional arguments on the connect() method work as documented in PEP 249.
|
| 69 |
+
Keyword arguments from the connect call can be formatted into the connection string.
|
| 70 |
+
New keyword arguments defined, such as: autocommit, paramstyle, remote_proxy, remote_port.
|
| 71 |
+
*** Breaking change: variantConversion lookups are simplified: the following will raise KeyError:
|
| 72 |
+
oldconverter=adodbapi.variantConversions[adodbapi.adoStringTypes]
|
| 73 |
+
Refactor as: oldconverter=adodbapi.variantConversions[adodbapi.adoStringTypes[0]]
|
| 74 |
+
|
| 75 |
+
License
|
| 76 |
+
-------
|
| 77 |
+
LGPL, see http://www.opensource.org/licenses/lgpl-license.php
|
| 78 |
+
|
| 79 |
+
Documentation
|
| 80 |
+
-------------
|
| 81 |
+
|
| 82 |
+
Look at adodbapi/quick_reference.md
|
| 83 |
+
http://www.python.org/topics/database/DatabaseAPI-2.0.html
|
| 84 |
+
read the examples in adodbapi/examples
|
| 85 |
+
and look at the test cases in adodbapi/test directory.
|
| 86 |
+
|
| 87 |
+
Mailing lists
|
| 88 |
+
-------------
|
| 89 |
+
The adodbapi mailing lists have been deactivated. Submit comments to the
|
| 90 |
+
pywin32 or IronPython mailing lists.
|
| 91 |
+
-- the bug tracker on sourceforge.net/projects/adodbapi may be checked, (infrequently).
|
| 92 |
+
-- please use: https://github.com/mhammond/pywin32/issues
|
pgsql/pgAdmin 4/python/Lib/site-packages/adodbapi/remote.py
ADDED
|
@@ -0,0 +1,634 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""adodbapi.remote - A python DB API 2.0 (PEP 249) interface to Microsoft ADO
|
| 2 |
+
|
| 3 |
+
Copyright (C) 2002 Henrik Ekelund, version 2.1 by Vernon Cole
|
| 4 |
+
* http://sourceforge.net/projects/pywin32
|
| 5 |
+
* http://sourceforge.net/projects/adodbapi
|
| 6 |
+
|
| 7 |
+
This library is free software; you can redistribute it and/or
|
| 8 |
+
modify it under the terms of the GNU Lesser General Public
|
| 9 |
+
License as published by the Free Software Foundation; either
|
| 10 |
+
version 2.1 of the License, or (at your option) any later version.
|
| 11 |
+
|
| 12 |
+
This library is distributed in the hope that it will be useful,
|
| 13 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 14 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
| 15 |
+
Lesser General Public License for more details.
|
| 16 |
+
|
| 17 |
+
You should have received a copy of the GNU Lesser General Public
|
| 18 |
+
License along with this library; if not, write to the Free Software
|
| 19 |
+
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
| 20 |
+
|
| 21 |
+
django adaptations and refactoring thanks to Adam Vandenberg
|
| 22 |
+
|
| 23 |
+
DB-API 2.0 specification: http://www.python.org/dev/peps/pep-0249/
|
| 24 |
+
|
| 25 |
+
This module source should run correctly in CPython versions 2.5 and later,
|
| 26 |
+
or IronPython version 2.7 and later,
|
| 27 |
+
or, after running through 2to3.py, CPython 3.0 or later.
|
| 28 |
+
"""
|
| 29 |
+
|
| 30 |
+
__version__ = "2.6.0.4"
|
| 31 |
+
version = "adodbapi.remote v" + __version__
|
| 32 |
+
|
| 33 |
+
import array
|
| 34 |
+
import datetime
|
| 35 |
+
import os
|
| 36 |
+
import sys
|
| 37 |
+
import time
|
| 38 |
+
|
| 39 |
+
# Pyro4 is required for server and remote operation --> https://pypi.python.org/pypi/Pyro4/
|
| 40 |
+
try:
|
| 41 |
+
import Pyro4
|
| 42 |
+
except ImportError:
|
| 43 |
+
print('* * * Sorry, server operation requires Pyro4. Please "pip import" it.')
|
| 44 |
+
exit(11)
|
| 45 |
+
|
| 46 |
+
import adodbapi
|
| 47 |
+
import adodbapi.apibase as api
|
| 48 |
+
import adodbapi.process_connect_string
|
| 49 |
+
from adodbapi.apibase import ProgrammingError
|
| 50 |
+
|
| 51 |
+
_BaseException = api._BaseException
|
| 52 |
+
|
| 53 |
+
sys.excepthook = Pyro4.util.excepthook
|
| 54 |
+
Pyro4.config.PREFER_IP_VERSION = 0 # allow system to prefer IPv6
|
| 55 |
+
Pyro4.config.COMMTIMEOUT = 40.0 # a bit longer than the default SQL server Gtimeout
|
| 56 |
+
Pyro4.config.SERIALIZER = "pickle"
|
| 57 |
+
|
| 58 |
+
try:
|
| 59 |
+
verbose = int(os.environ["ADODBAPI_VERBOSE"])
|
| 60 |
+
except:
|
| 61 |
+
verbose = False
|
| 62 |
+
if verbose:
|
| 63 |
+
print(version)
|
| 64 |
+
|
| 65 |
+
# --- define objects to smooth out Python3 <-> Python 2.x differences
|
| 66 |
+
unicodeType = str # this line will be altered by 2to3.py to '= str'
|
| 67 |
+
longType = int # this line will be altered by 2to3.py to '= int'
|
| 68 |
+
StringTypes = str
|
| 69 |
+
makeByteBuffer = bytes
|
| 70 |
+
memoryViewType = memoryview
|
| 71 |
+
|
| 72 |
+
# -----------------------------------------------------------
|
| 73 |
+
# conversion functions mandated by PEP 249
|
| 74 |
+
Binary = makeByteBuffer # override the function from apibase.py
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
def Date(year, month, day):
|
| 78 |
+
return datetime.date(year, month, day) # dateconverter.Date(year,month,day)
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
def Time(hour, minute, second):
|
| 82 |
+
return datetime.time(hour, minute, second) # dateconverter.Time(hour,minute,second)
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
def Timestamp(year, month, day, hour, minute, second):
|
| 86 |
+
return datetime.datetime(year, month, day, hour, minute, second)
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
def DateFromTicks(ticks):
|
| 90 |
+
return Date(*time.gmtime(ticks)[:3])
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
def TimeFromTicks(ticks):
|
| 94 |
+
return Time(*time.gmtime(ticks)[3:6])
|
| 95 |
+
|
| 96 |
+
|
| 97 |
+
def TimestampFromTicks(ticks):
|
| 98 |
+
return Timestamp(*time.gmtime(ticks)[:6])
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
def connect(*args, **kwargs): # --> a remote db-api connection object
|
| 102 |
+
"""Create and open a remote db-api database connection object"""
|
| 103 |
+
# process the argument list the programmer gave us
|
| 104 |
+
kwargs = adodbapi.process_connect_string.process(args, kwargs)
|
| 105 |
+
# the "proxy_xxx" keys tell us where to find the PyRO proxy server
|
| 106 |
+
kwargs.setdefault(
|
| 107 |
+
"pyro_connection", "PYRO:ado.connection@%(proxy_host)s:%(proxy_port)s"
|
| 108 |
+
)
|
| 109 |
+
if not "proxy_port" in kwargs:
|
| 110 |
+
try:
|
| 111 |
+
pport = os.environ["PROXY_PORT"]
|
| 112 |
+
except KeyError:
|
| 113 |
+
pport = 9099
|
| 114 |
+
kwargs["proxy_port"] = pport
|
| 115 |
+
if not "proxy_host" in kwargs or not kwargs["proxy_host"]:
|
| 116 |
+
try:
|
| 117 |
+
phost = os.environ["PROXY_HOST"]
|
| 118 |
+
except KeyError:
|
| 119 |
+
phost = "[::1]" # '127.0.0.1'
|
| 120 |
+
kwargs["proxy_host"] = phost
|
| 121 |
+
ado_uri = kwargs["pyro_connection"] % kwargs
|
| 122 |
+
# ask PyRO make us a remote connection object
|
| 123 |
+
auto_retry = 3
|
| 124 |
+
while auto_retry:
|
| 125 |
+
try:
|
| 126 |
+
dispatcher = Pyro4.Proxy(ado_uri)
|
| 127 |
+
if "comm_timeout" in kwargs:
|
| 128 |
+
dispatcher._pyroTimeout = float(kwargs["comm_timeout"])
|
| 129 |
+
uri = dispatcher.make_connection()
|
| 130 |
+
break
|
| 131 |
+
except Pyro4.core.errors.PyroError:
|
| 132 |
+
auto_retry -= 1
|
| 133 |
+
if auto_retry:
|
| 134 |
+
time.sleep(1)
|
| 135 |
+
else:
|
| 136 |
+
raise api.DatabaseError("Cannot create connection to=%s" % ado_uri)
|
| 137 |
+
|
| 138 |
+
conn_uri = fix_uri(uri, kwargs) # get a host connection from the proxy server
|
| 139 |
+
while auto_retry:
|
| 140 |
+
try:
|
| 141 |
+
host_conn = Pyro4.Proxy(
|
| 142 |
+
conn_uri
|
| 143 |
+
) # bring up an exclusive Pyro connection for my ADO connection
|
| 144 |
+
break
|
| 145 |
+
except Pyro4.core.errors.PyroError:
|
| 146 |
+
auto_retry -= 1
|
| 147 |
+
if auto_retry:
|
| 148 |
+
time.sleep(1)
|
| 149 |
+
else:
|
| 150 |
+
raise api.DatabaseError(
|
| 151 |
+
"Cannot create ADO connection object using=%s" % conn_uri
|
| 152 |
+
)
|
| 153 |
+
if "comm_timeout" in kwargs:
|
| 154 |
+
host_conn._pyroTimeout = float(kwargs["comm_timeout"])
|
| 155 |
+
# make a local clone
|
| 156 |
+
myConn = Connection()
|
| 157 |
+
while auto_retry:
|
| 158 |
+
try:
|
| 159 |
+
myConn.connect(
|
| 160 |
+
kwargs, host_conn
|
| 161 |
+
) # call my connect method -- hand him the host connection
|
| 162 |
+
break
|
| 163 |
+
except Pyro4.core.errors.PyroError:
|
| 164 |
+
auto_retry -= 1
|
| 165 |
+
if auto_retry:
|
| 166 |
+
time.sleep(1)
|
| 167 |
+
else:
|
| 168 |
+
raise api.DatabaseError(
|
| 169 |
+
"Pyro error creating connection to/thru=%s" % repr(kwargs)
|
| 170 |
+
)
|
| 171 |
+
except _BaseException as e:
|
| 172 |
+
raise api.DatabaseError(
|
| 173 |
+
"Error creating remote connection to=%s, e=%s, %s"
|
| 174 |
+
% (repr(kwargs), repr(e), sys.exc_info()[2])
|
| 175 |
+
)
|
| 176 |
+
return myConn
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
def fix_uri(uri, kwargs):
|
| 180 |
+
"""convert a generic pyro uri with '0.0.0.0' into the address we actually called"""
|
| 181 |
+
u = uri.asString()
|
| 182 |
+
s = u.split("[::0]") # IPv6 generic address
|
| 183 |
+
if len(s) == 1: # did not find one
|
| 184 |
+
s = u.split("0.0.0.0") # IPv4 generic address
|
| 185 |
+
if len(s) > 1: # found a generic
|
| 186 |
+
return kwargs["proxy_host"].join(s) # fill in our address for the host
|
| 187 |
+
return uri
|
| 188 |
+
|
| 189 |
+
|
| 190 |
+
# # # # # ----- the Class that defines a connection ----- # # # # #
|
| 191 |
+
class Connection(object):
|
| 192 |
+
# include connection attributes required by api definition.
|
| 193 |
+
Warning = api.Warning
|
| 194 |
+
Error = api.Error
|
| 195 |
+
InterfaceError = api.InterfaceError
|
| 196 |
+
DataError = api.DataError
|
| 197 |
+
DatabaseError = api.DatabaseError
|
| 198 |
+
OperationalError = api.OperationalError
|
| 199 |
+
IntegrityError = api.IntegrityError
|
| 200 |
+
InternalError = api.InternalError
|
| 201 |
+
NotSupportedError = api.NotSupportedError
|
| 202 |
+
ProgrammingError = api.ProgrammingError
|
| 203 |
+
# set up some class attributes
|
| 204 |
+
paramstyle = api.paramstyle
|
| 205 |
+
|
| 206 |
+
@property
|
| 207 |
+
def dbapi(self): # a proposed db-api version 3 extension.
|
| 208 |
+
"Return a reference to the DBAPI module for this Connection."
|
| 209 |
+
return api
|
| 210 |
+
|
| 211 |
+
def __init__(self):
|
| 212 |
+
self.proxy = None
|
| 213 |
+
self.kwargs = {}
|
| 214 |
+
self.errorhandler = None
|
| 215 |
+
self.supportsTransactions = False
|
| 216 |
+
self.paramstyle = api.paramstyle
|
| 217 |
+
self.timeout = 30
|
| 218 |
+
self.cursors = {}
|
| 219 |
+
|
| 220 |
+
def connect(self, kwargs, connection_maker):
|
| 221 |
+
self.kwargs = kwargs
|
| 222 |
+
if verbose:
|
| 223 |
+
print('%s attempting: "%s"' % (version, repr(kwargs)))
|
| 224 |
+
self.proxy = connection_maker
|
| 225 |
+
##try:
|
| 226 |
+
ret = self.proxy.connect(kwargs) # ask the server to hook us up
|
| 227 |
+
##except ImportError, e: # Pyro is trying to import pywinTypes.comerrer
|
| 228 |
+
## self._raiseConnectionError(api.DatabaseError, 'Proxy cannot connect using=%s' % repr(kwargs))
|
| 229 |
+
if ret is not True:
|
| 230 |
+
self._raiseConnectionError(
|
| 231 |
+
api.OperationalError, "Proxy returns error message=%s" % repr(ret)
|
| 232 |
+
)
|
| 233 |
+
|
| 234 |
+
self.supportsTransactions = self.getIndexedValue("supportsTransactions")
|
| 235 |
+
self.paramstyle = self.getIndexedValue("paramstyle")
|
| 236 |
+
self.timeout = self.getIndexedValue("timeout")
|
| 237 |
+
if verbose:
|
| 238 |
+
print("adodbapi.remote New connection at %X" % id(self))
|
| 239 |
+
|
| 240 |
+
def _raiseConnectionError(self, errorclass, errorvalue):
|
| 241 |
+
eh = self.errorhandler
|
| 242 |
+
if eh is None:
|
| 243 |
+
eh = api.standardErrorHandler
|
| 244 |
+
eh(self, None, errorclass, errorvalue)
|
| 245 |
+
|
| 246 |
+
def close(self):
|
| 247 |
+
"""Close the connection now (rather than whenever __del__ is called).
|
| 248 |
+
|
| 249 |
+
The connection will be unusable from this point forward;
|
| 250 |
+
an Error (or subclass) exception will be raised if any operation is attempted with the connection.
|
| 251 |
+
The same applies to all cursor objects trying to use the connection.
|
| 252 |
+
"""
|
| 253 |
+
for crsr in list(self.cursors.values())[
|
| 254 |
+
:
|
| 255 |
+
]: # copy the list, then close each one
|
| 256 |
+
crsr.close()
|
| 257 |
+
try:
|
| 258 |
+
"""close the underlying remote Connection object"""
|
| 259 |
+
self.proxy.close()
|
| 260 |
+
if verbose:
|
| 261 |
+
print("adodbapi.remote Closed connection at %X" % id(self))
|
| 262 |
+
object.__delattr__(
|
| 263 |
+
self, "proxy"
|
| 264 |
+
) # future attempts to use closed cursor will be caught by __getattr__
|
| 265 |
+
except Exception:
|
| 266 |
+
pass
|
| 267 |
+
|
| 268 |
+
def __del__(self):
|
| 269 |
+
try:
|
| 270 |
+
self.proxy.close()
|
| 271 |
+
except:
|
| 272 |
+
pass
|
| 273 |
+
|
| 274 |
+
def commit(self):
|
| 275 |
+
"""Commit any pending transaction to the database.
|
| 276 |
+
|
| 277 |
+
Note that if the database supports an auto-commit feature,
|
| 278 |
+
this must be initially off. An interface method may be provided to turn it back on.
|
| 279 |
+
Database modules that do not support transactions should implement this method with void functionality.
|
| 280 |
+
"""
|
| 281 |
+
if not self.supportsTransactions:
|
| 282 |
+
return
|
| 283 |
+
result = self.proxy.commit()
|
| 284 |
+
if result:
|
| 285 |
+
self._raiseConnectionError(
|
| 286 |
+
api.OperationalError, "Error during commit: %s" % result
|
| 287 |
+
)
|
| 288 |
+
|
| 289 |
+
def _rollback(self):
|
| 290 |
+
"""In case a database does provide transactions this method causes the the database to roll back to
|
| 291 |
+
the start of any pending transaction. Closing a connection without committing the changes first will
|
| 292 |
+
cause an implicit rollback to be performed.
|
| 293 |
+
"""
|
| 294 |
+
result = self.proxy.rollback()
|
| 295 |
+
if result:
|
| 296 |
+
self._raiseConnectionError(
|
| 297 |
+
api.OperationalError, "Error during rollback: %s" % result
|
| 298 |
+
)
|
| 299 |
+
|
| 300 |
+
def __setattr__(self, name, value):
|
| 301 |
+
if name in ("paramstyle", "timeout", "autocommit"):
|
| 302 |
+
if self.proxy:
|
| 303 |
+
self.proxy.send_attribute_to_host(name, value)
|
| 304 |
+
object.__setattr__(self, name, value) # store attribute locally (too)
|
| 305 |
+
|
| 306 |
+
def __getattr__(self, item):
|
| 307 |
+
if (
|
| 308 |
+
item == "rollback"
|
| 309 |
+
): # the rollback method only appears if the database supports transactions
|
| 310 |
+
if self.supportsTransactions:
|
| 311 |
+
return (
|
| 312 |
+
self._rollback
|
| 313 |
+
) # return the rollback method so the caller can execute it.
|
| 314 |
+
else:
|
| 315 |
+
raise self.ProgrammingError(
|
| 316 |
+
"this data provider does not support Rollback"
|
| 317 |
+
)
|
| 318 |
+
elif item in (
|
| 319 |
+
"dbms_name",
|
| 320 |
+
"dbms_version",
|
| 321 |
+
"connection_string",
|
| 322 |
+
"autocommit",
|
| 323 |
+
): # 'messages' ):
|
| 324 |
+
return self.getIndexedValue(item)
|
| 325 |
+
elif item == "proxy":
|
| 326 |
+
raise self.ProgrammingError("Attempting to use closed connection")
|
| 327 |
+
else:
|
| 328 |
+
raise self.ProgrammingError('No remote access for attribute="%s"' % item)
|
| 329 |
+
|
| 330 |
+
def getIndexedValue(self, index):
|
| 331 |
+
r = self.proxy.get_attribute_for_remote(index)
|
| 332 |
+
return r
|
| 333 |
+
|
| 334 |
+
def cursor(self):
|
| 335 |
+
"Return a new Cursor Object using the connection."
|
| 336 |
+
myCursor = Cursor(self)
|
| 337 |
+
return myCursor
|
| 338 |
+
|
| 339 |
+
def _i_am_here(self, crsr):
|
| 340 |
+
"message from a new cursor proclaiming its existence"
|
| 341 |
+
self.cursors[crsr.id] = crsr
|
| 342 |
+
|
| 343 |
+
def _i_am_closing(self, crsr):
|
| 344 |
+
"message from a cursor giving connection a chance to clean up"
|
| 345 |
+
try:
|
| 346 |
+
del self.cursors[crsr.id]
|
| 347 |
+
except:
|
| 348 |
+
pass
|
| 349 |
+
|
| 350 |
+
def __enter__(self): # Connections are context managers
|
| 351 |
+
return self
|
| 352 |
+
|
| 353 |
+
def __exit__(self, exc_type, exc_val, exc_tb):
|
| 354 |
+
if exc_type:
|
| 355 |
+
self._rollback() # automatic rollback on errors
|
| 356 |
+
else:
|
| 357 |
+
self.commit()
|
| 358 |
+
|
| 359 |
+
def get_table_names(self):
|
| 360 |
+
return self.proxy.get_table_names()
|
| 361 |
+
|
| 362 |
+
|
| 363 |
+
def fixpickle(x):
|
| 364 |
+
"""pickle barfs on buffer(x) so we pass as array.array(x) then restore to original form for .execute()"""
|
| 365 |
+
if x is None:
|
| 366 |
+
return None
|
| 367 |
+
if isinstance(x, dict):
|
| 368 |
+
# for 'named' paramstyle user will pass a mapping
|
| 369 |
+
newargs = {}
|
| 370 |
+
for arg, val in list(x.items()):
|
| 371 |
+
if isinstance(val, memoryViewType):
|
| 372 |
+
newval = array.array("B")
|
| 373 |
+
newval.fromstring(val)
|
| 374 |
+
newargs[arg] = newval
|
| 375 |
+
else:
|
| 376 |
+
newargs[arg] = val
|
| 377 |
+
return newargs
|
| 378 |
+
# if not a mapping, then a sequence
|
| 379 |
+
newargs = []
|
| 380 |
+
for arg in x:
|
| 381 |
+
if isinstance(arg, memoryViewType):
|
| 382 |
+
newarg = array.array("B")
|
| 383 |
+
newarg.fromstring(arg)
|
| 384 |
+
newargs.append(newarg)
|
| 385 |
+
else:
|
| 386 |
+
newargs.append(arg)
|
| 387 |
+
return newargs
|
| 388 |
+
|
| 389 |
+
|
| 390 |
+
class Cursor(object):
|
| 391 |
+
def __init__(self, connection):
|
| 392 |
+
self.command = None
|
| 393 |
+
self.errorhandler = None ## was: connection.errorhandler
|
| 394 |
+
self.connection = connection
|
| 395 |
+
self.proxy = self.connection.proxy
|
| 396 |
+
self.rs = None # the fetchable data for this cursor
|
| 397 |
+
self.converters = NotImplemented
|
| 398 |
+
self.id = connection.proxy.build_cursor()
|
| 399 |
+
connection._i_am_here(self)
|
| 400 |
+
self.recordset_format = api.RS_REMOTE
|
| 401 |
+
if verbose:
|
| 402 |
+
print(
|
| 403 |
+
"%s New cursor at %X on conn %X"
|
| 404 |
+
% (version, id(self), id(self.connection))
|
| 405 |
+
)
|
| 406 |
+
|
| 407 |
+
def prepare(self, operation):
|
| 408 |
+
self.command = operation
|
| 409 |
+
try:
|
| 410 |
+
del self.description
|
| 411 |
+
except AttributeError:
|
| 412 |
+
pass
|
| 413 |
+
self.proxy.crsr_prepare(self.id, operation)
|
| 414 |
+
|
| 415 |
+
def __iter__(self): # [2.1 Zamarev]
|
| 416 |
+
return iter(self.fetchone, None) # [2.1 Zamarev]
|
| 417 |
+
|
| 418 |
+
def __next__(self):
|
| 419 |
+
r = self.fetchone()
|
| 420 |
+
if r:
|
| 421 |
+
return r
|
| 422 |
+
raise StopIteration
|
| 423 |
+
|
| 424 |
+
def __enter__(self):
|
| 425 |
+
"Allow database cursors to be used with context managers."
|
| 426 |
+
return self
|
| 427 |
+
|
| 428 |
+
def __exit__(self, exc_type, exc_val, exc_tb):
|
| 429 |
+
"Allow database cursors to be used with context managers."
|
| 430 |
+
self.close()
|
| 431 |
+
|
| 432 |
+
def __getattr__(self, key):
|
| 433 |
+
if key == "numberOfColumns":
|
| 434 |
+
try:
|
| 435 |
+
return len(self.rs[0])
|
| 436 |
+
except:
|
| 437 |
+
return 0
|
| 438 |
+
if key == "description":
|
| 439 |
+
try:
|
| 440 |
+
self.description = self.proxy.crsr_get_description(self.id)[:]
|
| 441 |
+
return self.description
|
| 442 |
+
except TypeError:
|
| 443 |
+
return None
|
| 444 |
+
if key == "columnNames":
|
| 445 |
+
try:
|
| 446 |
+
r = dict(
|
| 447 |
+
self.proxy.crsr_get_columnNames(self.id)
|
| 448 |
+
) # copy the remote columns
|
| 449 |
+
|
| 450 |
+
except TypeError:
|
| 451 |
+
r = {}
|
| 452 |
+
self.columnNames = r
|
| 453 |
+
return r
|
| 454 |
+
|
| 455 |
+
if key == "remote_cursor":
|
| 456 |
+
raise api.OperationalError
|
| 457 |
+
try:
|
| 458 |
+
return self.proxy.crsr_get_attribute_for_remote(self.id, key)
|
| 459 |
+
except AttributeError:
|
| 460 |
+
raise api.InternalError(
|
| 461 |
+
'Failure getting attribute "%s" from proxy cursor.' % key
|
| 462 |
+
)
|
| 463 |
+
|
| 464 |
+
def __setattr__(self, key, value):
|
| 465 |
+
if key == "arraysize":
|
| 466 |
+
self.proxy.crsr_set_arraysize(self.id, value)
|
| 467 |
+
if key == "paramstyle":
|
| 468 |
+
if value in api.accepted_paramstyles:
|
| 469 |
+
self.proxy.crsr_set_paramstyle(self.id, value)
|
| 470 |
+
else:
|
| 471 |
+
self._raiseCursorError(
|
| 472 |
+
api.ProgrammingError, 'invalid paramstyle ="%s"' % value
|
| 473 |
+
)
|
| 474 |
+
object.__setattr__(self, key, value)
|
| 475 |
+
|
| 476 |
+
def _raiseCursorError(self, errorclass, errorvalue):
|
| 477 |
+
eh = self.errorhandler
|
| 478 |
+
if eh is None:
|
| 479 |
+
eh = api.standardErrorHandler
|
| 480 |
+
eh(self.connection, self, errorclass, errorvalue)
|
| 481 |
+
|
| 482 |
+
def execute(self, operation, parameters=None):
|
| 483 |
+
if self.connection is None:
|
| 484 |
+
self._raiseCursorError(
|
| 485 |
+
ProgrammingError, "Attempted operation on closed cursor"
|
| 486 |
+
)
|
| 487 |
+
self.command = operation
|
| 488 |
+
try:
|
| 489 |
+
del self.description
|
| 490 |
+
except AttributeError:
|
| 491 |
+
pass
|
| 492 |
+
try:
|
| 493 |
+
del self.columnNames
|
| 494 |
+
except AttributeError:
|
| 495 |
+
pass
|
| 496 |
+
fp = fixpickle(parameters)
|
| 497 |
+
if verbose > 2:
|
| 498 |
+
print(
|
| 499 |
+
(
|
| 500 |
+
'%s executing "%s" with params=%s'
|
| 501 |
+
% (version, operation, repr(parameters))
|
| 502 |
+
)
|
| 503 |
+
)
|
| 504 |
+
result = self.proxy.crsr_execute(self.id, operation, fp)
|
| 505 |
+
if result: # an exception was triggered
|
| 506 |
+
self._raiseCursorError(result[0], result[1])
|
| 507 |
+
|
| 508 |
+
def executemany(self, operation, seq_of_parameters):
|
| 509 |
+
if self.connection is None:
|
| 510 |
+
self._raiseCursorError(
|
| 511 |
+
ProgrammingError, "Attempted operation on closed cursor"
|
| 512 |
+
)
|
| 513 |
+
self.command = operation
|
| 514 |
+
try:
|
| 515 |
+
del self.description
|
| 516 |
+
except AttributeError:
|
| 517 |
+
pass
|
| 518 |
+
try:
|
| 519 |
+
del self.columnNames
|
| 520 |
+
except AttributeError:
|
| 521 |
+
pass
|
| 522 |
+
sq = [fixpickle(x) for x in seq_of_parameters]
|
| 523 |
+
if verbose > 2:
|
| 524 |
+
print(
|
| 525 |
+
(
|
| 526 |
+
'%s executemany "%s" with params=%s'
|
| 527 |
+
% (version, operation, repr(seq_of_parameters))
|
| 528 |
+
)
|
| 529 |
+
)
|
| 530 |
+
self.proxy.crsr_executemany(self.id, operation, sq)
|
| 531 |
+
|
| 532 |
+
def nextset(self):
|
| 533 |
+
try:
|
| 534 |
+
del self.description
|
| 535 |
+
except AttributeError:
|
| 536 |
+
pass
|
| 537 |
+
try:
|
| 538 |
+
del self.columnNames
|
| 539 |
+
except AttributeError:
|
| 540 |
+
pass
|
| 541 |
+
if verbose > 2:
|
| 542 |
+
print(("%s nextset" % version))
|
| 543 |
+
return self.proxy.crsr_nextset(self.id)
|
| 544 |
+
|
| 545 |
+
def callproc(self, procname, parameters=None):
|
| 546 |
+
if self.connection is None:
|
| 547 |
+
self._raiseCursorError(
|
| 548 |
+
ProgrammingError, "Attempted operation on closed cursor"
|
| 549 |
+
)
|
| 550 |
+
self.command = procname
|
| 551 |
+
try:
|
| 552 |
+
del self.description
|
| 553 |
+
except AttributeError:
|
| 554 |
+
pass
|
| 555 |
+
try:
|
| 556 |
+
del self.columnNames
|
| 557 |
+
except AttributeError:
|
| 558 |
+
pass
|
| 559 |
+
fp = fixpickle(parameters)
|
| 560 |
+
if verbose > 2:
|
| 561 |
+
print(
|
| 562 |
+
(
|
| 563 |
+
'%s callproc "%s" with params=%s'
|
| 564 |
+
% (version, procname, repr(parameters))
|
| 565 |
+
)
|
| 566 |
+
)
|
| 567 |
+
return self.proxy.crsr_callproc(self.id, procname, fp)
|
| 568 |
+
|
| 569 |
+
def fetchone(self):
|
| 570 |
+
try:
|
| 571 |
+
f1 = self.proxy.crsr_fetchone(self.id)
|
| 572 |
+
except _BaseException as e:
|
| 573 |
+
self._raiseCursorError(api.DatabaseError, e)
|
| 574 |
+
else:
|
| 575 |
+
if f1 is None:
|
| 576 |
+
return None
|
| 577 |
+
self.rs = [f1]
|
| 578 |
+
return api.SQLrows(self.rs, 1, self)[
|
| 579 |
+
0
|
| 580 |
+
] # new object to hold the results of the fetch
|
| 581 |
+
|
| 582 |
+
def fetchmany(self, size=None):
|
| 583 |
+
try:
|
| 584 |
+
self.rs = self.proxy.crsr_fetchmany(self.id, size)
|
| 585 |
+
if not self.rs:
|
| 586 |
+
return []
|
| 587 |
+
r = api.SQLrows(self.rs, len(self.rs), self)
|
| 588 |
+
return r
|
| 589 |
+
except Exception as e:
|
| 590 |
+
self._raiseCursorError(api.DatabaseError, e)
|
| 591 |
+
|
| 592 |
+
def fetchall(self):
|
| 593 |
+
try:
|
| 594 |
+
self.rs = self.proxy.crsr_fetchall(self.id)
|
| 595 |
+
if not self.rs:
|
| 596 |
+
return []
|
| 597 |
+
return api.SQLrows(self.rs, len(self.rs), self)
|
| 598 |
+
except Exception as e:
|
| 599 |
+
self._raiseCursorError(api.DatabaseError, e)
|
| 600 |
+
|
| 601 |
+
def close(self):
|
| 602 |
+
if self.connection is None:
|
| 603 |
+
return
|
| 604 |
+
self.connection._i_am_closing(self) # take me off the connection's cursors list
|
| 605 |
+
try:
|
| 606 |
+
self.proxy.crsr_close(self.id)
|
| 607 |
+
except:
|
| 608 |
+
pass
|
| 609 |
+
try:
|
| 610 |
+
del self.description
|
| 611 |
+
except:
|
| 612 |
+
pass
|
| 613 |
+
try:
|
| 614 |
+
del self.rs # let go of the recordset
|
| 615 |
+
except:
|
| 616 |
+
pass
|
| 617 |
+
self.connection = (
|
| 618 |
+
None # this will make all future method calls on me throw an exception
|
| 619 |
+
)
|
| 620 |
+
self.proxy = None
|
| 621 |
+
if verbose:
|
| 622 |
+
print("adodbapi.remote Closed cursor at %X" % id(self))
|
| 623 |
+
|
| 624 |
+
def __del__(self):
|
| 625 |
+
try:
|
| 626 |
+
self.close()
|
| 627 |
+
except:
|
| 628 |
+
pass
|
| 629 |
+
|
| 630 |
+
def setinputsizes(self, sizes):
|
| 631 |
+
pass
|
| 632 |
+
|
| 633 |
+
def setoutputsize(self, size, column=None):
|
| 634 |
+
pass
|
pgsql/pgAdmin 4/python/Lib/site-packages/adodbapi/schema_table.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""call using an open ADO connection --> list of table names"""
|
| 2 |
+
from . import adodbapi
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
def names(connection_object):
|
| 6 |
+
ado = connection_object.adoConn
|
| 7 |
+
schema = ado.OpenSchema(20) # constant = adSchemaTables
|
| 8 |
+
|
| 9 |
+
tables = []
|
| 10 |
+
while not schema.EOF:
|
| 11 |
+
name = adodbapi.getIndexedValue(schema.Fields, "TABLE_NAME").Value
|
| 12 |
+
tables.append(name)
|
| 13 |
+
schema.MoveNext()
|
| 14 |
+
del schema
|
| 15 |
+
return tables
|
pgsql/pgAdmin 4/python/Lib/site-packages/adodbapi/setup.py
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""adodbapi -- a pure Python PEP 249 DB-API package using Microsoft ADO
|
| 2 |
+
|
| 3 |
+
Adodbapi can be run on CPython 3.5 and later.
|
| 4 |
+
or IronPython version 2.6 and later (in theory, possibly no longer in practice!)
|
| 5 |
+
"""
|
| 6 |
+
CLASSIFIERS = """\
|
| 7 |
+
Development Status :: 5 - Production/Stable
|
| 8 |
+
Intended Audience :: Developers
|
| 9 |
+
License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
|
| 10 |
+
Operating System :: Microsoft :: Windows
|
| 11 |
+
Operating System :: POSIX :: Linux
|
| 12 |
+
Programming Language :: Python
|
| 13 |
+
Programming Language :: Python :: 3
|
| 14 |
+
Programming Language :: SQL
|
| 15 |
+
Topic :: Software Development
|
| 16 |
+
Topic :: Software Development :: Libraries :: Python Modules
|
| 17 |
+
Topic :: Database
|
| 18 |
+
"""
|
| 19 |
+
|
| 20 |
+
NAME = "adodbapi"
|
| 21 |
+
MAINTAINER = "Vernon Cole"
|
| 22 |
+
MAINTAINER_EMAIL = "vernondcole@gmail.com"
|
| 23 |
+
DESCRIPTION = (
|
| 24 |
+
"""A pure Python package implementing PEP 249 DB-API using Microsoft ADO."""
|
| 25 |
+
)
|
| 26 |
+
URL = "http://sourceforge.net/projects/adodbapi"
|
| 27 |
+
LICENSE = "LGPL"
|
| 28 |
+
CLASSIFIERS = filter(None, CLASSIFIERS.split("\n"))
|
| 29 |
+
AUTHOR = "Henrik Ekelund, Vernon Cole, et.al."
|
| 30 |
+
AUTHOR_EMAIL = "vernondcole@gmail.com"
|
| 31 |
+
PLATFORMS = ["Windows", "Linux"]
|
| 32 |
+
|
| 33 |
+
VERSION = None # in case searching for version fails
|
| 34 |
+
a = open("adodbapi.py") # find the version string in the source code
|
| 35 |
+
for line in a:
|
| 36 |
+
if "__version__" in line:
|
| 37 |
+
VERSION = line.split("'")[1]
|
| 38 |
+
print('adodbapi version="%s"' % VERSION)
|
| 39 |
+
break
|
| 40 |
+
a.close()
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
def setup_package():
|
| 44 |
+
from distutils.command.build_py import build_py
|
| 45 |
+
from distutils.core import setup
|
| 46 |
+
|
| 47 |
+
setup(
|
| 48 |
+
cmdclass={"build_py": build_py},
|
| 49 |
+
name=NAME,
|
| 50 |
+
maintainer=MAINTAINER,
|
| 51 |
+
maintainer_email=MAINTAINER_EMAIL,
|
| 52 |
+
description=DESCRIPTION,
|
| 53 |
+
url=URL,
|
| 54 |
+
keywords="database ado odbc dbapi db-api Microsoft SQL",
|
| 55 |
+
## download_url=DOWNLOAD_URL,
|
| 56 |
+
long_description=open("README.txt").read(),
|
| 57 |
+
license=LICENSE,
|
| 58 |
+
classifiers=CLASSIFIERS,
|
| 59 |
+
author=AUTHOR,
|
| 60 |
+
author_email=AUTHOR_EMAIL,
|
| 61 |
+
platforms=PLATFORMS,
|
| 62 |
+
version=VERSION,
|
| 63 |
+
package_dir={"adodbapi": ""},
|
| 64 |
+
packages=["adodbapi"],
|
| 65 |
+
)
|
| 66 |
+
return
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
if __name__ == "__main__":
|
| 70 |
+
setup_package()
|
pgsql/pgAdmin 4/python/Lib/site-packages/alembic-1.13.1.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip
|
pgsql/pgAdmin 4/python/Lib/site-packages/alembic-1.13.1.dist-info/LICENSE
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright 2009-2023 Michael Bayer.
|
| 2 |
+
|
| 3 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
| 4 |
+
this software and associated documentation files (the "Software"), to deal in
|
| 5 |
+
the Software without restriction, including without limitation the rights to
|
| 6 |
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
| 7 |
+
of the Software, and to permit persons to whom the Software is furnished to do
|
| 8 |
+
so, subject to the following conditions:
|
| 9 |
+
|
| 10 |
+
The above copyright notice and this permission notice shall be included in all
|
| 11 |
+
copies or substantial portions of the Software.
|
| 12 |
+
|
| 13 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 14 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 15 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 16 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 17 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 18 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 19 |
+
SOFTWARE.
|
pgsql/pgAdmin 4/python/Lib/site-packages/alembic-1.13.1.dist-info/METADATA
ADDED
|
@@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
Author-email: mike_mp@zzzcomputing.com
|
| 8 |
+
License: MIT
|
| 9 |
+
Project-URL: Documentation, https://alembic.sqlalchemy.org/en/latest/
|
| 10 |
+
Project-URL: Changelog, https://alembic.sqlalchemy.org/en/latest/changelog.html
|
| 11 |
+
Project-URL: Source, https://github.com/sqlalchemy/alembic/
|
| 12 |
+
Project-URL: Issue Tracker, https://github.com/sqlalchemy/alembic/issues/
|
| 13 |
+
Classifier: Development Status :: 5 - Production/Stable
|
| 14 |
+
Classifier: Intended Audience :: Developers
|
| 15 |
+
Classifier: Environment :: Console
|
| 16 |
+
Classifier: License :: OSI Approved :: MIT License
|
| 17 |
+
Classifier: Operating System :: OS Independent
|
| 18 |
+
Classifier: Programming Language :: Python
|
| 19 |
+
Classifier: Programming Language :: Python :: 3
|
| 20 |
+
Classifier: Programming Language :: Python :: 3.8
|
| 21 |
+
Classifier: Programming Language :: Python :: 3.9
|
| 22 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 23 |
+
Classifier: Programming Language :: Python :: 3.11
|
| 24 |
+
Classifier: Programming Language :: Python :: 3.12
|
| 25 |
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
| 26 |
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
| 27 |
+
Classifier: Topic :: Database :: Front-Ends
|
| 28 |
+
Requires-Python: >=3.8
|
| 29 |
+
Description-Content-Type: text/x-rst
|
| 30 |
+
License-File: LICENSE
|
| 31 |
+
Requires-Dist: SQLAlchemy >=1.3.0
|
| 32 |
+
Requires-Dist: Mako
|
| 33 |
+
Requires-Dist: typing-extensions >=4
|
| 34 |
+
Requires-Dist: importlib-metadata ; python_version < "3.9"
|
| 35 |
+
Requires-Dist: importlib-resources ; python_version < "3.9"
|
| 36 |
+
Provides-Extra: tz
|
| 37 |
+
Requires-Dist: backports.zoneinfo ; (python_version < "3.9") and extra == 'tz'
|
| 38 |
+
|
| 39 |
+
Alembic is a database migrations tool written by the author
|
| 40 |
+
of `SQLAlchemy <http://www.sqlalchemy.org>`_. A migrations tool
|
| 41 |
+
offers the following functionality:
|
| 42 |
+
|
| 43 |
+
* Can emit ALTER statements to a database in order to change
|
| 44 |
+
the structure of tables and other constructs
|
| 45 |
+
* Provides a system whereby "migration scripts" may be constructed;
|
| 46 |
+
each script indicates a particular series of steps that can "upgrade" a
|
| 47 |
+
target database to a new version, and optionally a series of steps that can
|
| 48 |
+
"downgrade" similarly, doing the same steps in reverse.
|
| 49 |
+
* Allows the scripts to execute in some sequential manner.
|
| 50 |
+
|
| 51 |
+
The goals of Alembic are:
|
| 52 |
+
|
| 53 |
+
* Very open ended and transparent configuration and operation. A new
|
| 54 |
+
Alembic environment is generated from a set of templates which is selected
|
| 55 |
+
among a set of options when setup first occurs. The templates then deposit a
|
| 56 |
+
series of scripts that define fully how database connectivity is established
|
| 57 |
+
and how migration scripts are invoked; the migration scripts themselves are
|
| 58 |
+
generated from a template within that series of scripts. The scripts can
|
| 59 |
+
then be further customized to define exactly how databases will be
|
| 60 |
+
interacted with and what structure new migration files should take.
|
| 61 |
+
* Full support for transactional DDL. The default scripts ensure that all
|
| 62 |
+
migrations occur within a transaction - for those databases which support
|
| 63 |
+
this (Postgresql, Microsoft SQL Server), migrations can be tested with no
|
| 64 |
+
need to manually undo changes upon failure.
|
| 65 |
+
* Minimalist script construction. Basic operations like renaming
|
| 66 |
+
tables/columns, adding/removing columns, changing column attributes can be
|
| 67 |
+
performed through one line commands like alter_column(), rename_table(),
|
| 68 |
+
add_constraint(). There is no need to recreate full SQLAlchemy Table
|
| 69 |
+
structures for simple operations like these - the functions themselves
|
| 70 |
+
generate minimalist schema structures behind the scenes to achieve the given
|
| 71 |
+
DDL sequence.
|
| 72 |
+
* "auto generation" of migrations. While real world migrations are far more
|
| 73 |
+
complex than what can be automatically determined, Alembic can still
|
| 74 |
+
eliminate the initial grunt work in generating new migration directives
|
| 75 |
+
from an altered schema. The ``--autogenerate`` feature will inspect the
|
| 76 |
+
current status of a database using SQLAlchemy's schema inspection
|
| 77 |
+
capabilities, compare it to the current state of the database model as
|
| 78 |
+
specified in Python, and generate a series of "candidate" migrations,
|
| 79 |
+
rendering them into a new migration script as Python directives. The
|
| 80 |
+
developer then edits the new file, adding additional directives and data
|
| 81 |
+
migrations as needed, to produce a finished migration. Table and column
|
| 82 |
+
level changes can be detected, with constraints and indexes to follow as
|
| 83 |
+
well.
|
| 84 |
+
* Full support for migrations generated as SQL scripts. Those of us who
|
| 85 |
+
work in corporate environments know that direct access to DDL commands on a
|
| 86 |
+
production database is a rare privilege, and DBAs want textual SQL scripts.
|
| 87 |
+
Alembic's usage model and commands are oriented towards being able to run a
|
| 88 |
+
series of migrations into a textual output file as easily as it runs them
|
| 89 |
+
directly to a database. Care must be taken in this mode to not invoke other
|
| 90 |
+
operations that rely upon in-memory SELECTs of rows - Alembic tries to
|
| 91 |
+
provide helper constructs like bulk_insert() to help with data-oriented
|
| 92 |
+
operations that are compatible with script-based DDL.
|
| 93 |
+
* Non-linear, dependency-graph versioning. Scripts are given UUID
|
| 94 |
+
identifiers similarly to a DVCS, and the linkage of one script to the next
|
| 95 |
+
is achieved via human-editable markers within the scripts themselves.
|
| 96 |
+
The structure of a set of migration files is considered as a
|
| 97 |
+
directed-acyclic graph, meaning any migration file can be dependent
|
| 98 |
+
on any other arbitrary set of migration files, or none at
|
| 99 |
+
all. Through this open-ended system, migration files can be organized
|
| 100 |
+
into branches, multiple roots, and mergepoints, without restriction.
|
| 101 |
+
Commands are provided to produce new branches, roots, and merges of
|
| 102 |
+
branches automatically.
|
| 103 |
+
* Provide a library of ALTER constructs that can be used by any SQLAlchemy
|
| 104 |
+
application. The DDL constructs build upon SQLAlchemy's own DDLElement base
|
| 105 |
+
and can be used standalone by any application or script.
|
| 106 |
+
* At long last, bring SQLite and its inability to ALTER things into the fold,
|
| 107 |
+
but in such a way that SQLite's very special workflow needs are accommodated
|
| 108 |
+
in an explicit way that makes the most of a bad situation, through the
|
| 109 |
+
concept of a "batch" migration, where multiple changes to a table can
|
| 110 |
+
be batched together to form a series of instructions for a single, subsequent
|
| 111 |
+
"move-and-copy" workflow. You can even use "move-and-copy" workflow for
|
| 112 |
+
other databases, if you want to recreate a table in the background
|
| 113 |
+
on a busy system.
|
| 114 |
+
|
| 115 |
+
Documentation and status of Alembic is at https://alembic.sqlalchemy.org/
|
| 116 |
+
|
| 117 |
+
The SQLAlchemy Project
|
| 118 |
+
======================
|
| 119 |
+
|
| 120 |
+
Alembic is part of the `SQLAlchemy Project <https://www.sqlalchemy.org>`_ and
|
| 121 |
+
adheres to the same standards and conventions as the core project.
|
| 122 |
+
|
| 123 |
+
Development / Bug reporting / Pull requests
|
| 124 |
+
___________________________________________
|
| 125 |
+
|
| 126 |
+
Please refer to the
|
| 127 |
+
`SQLAlchemy Community Guide <https://www.sqlalchemy.org/develop.html>`_ for
|
| 128 |
+
guidelines on coding and participating in this project.
|
| 129 |
+
|
| 130 |
+
Code of Conduct
|
| 131 |
+
_______________
|
| 132 |
+
|
| 133 |
+
Above all, SQLAlchemy places great emphasis on polite, thoughtful, and
|
| 134 |
+
constructive communication between users and developers.
|
| 135 |
+
Please see our current Code of Conduct at
|
| 136 |
+
`Code of Conduct <https://www.sqlalchemy.org/codeofconduct.html>`_.
|
| 137 |
+
|
| 138 |
+
License
|
| 139 |
+
=======
|
| 140 |
+
|
| 141 |
+
Alembic is distributed under the `MIT license
|
| 142 |
+
<https://opensource.org/licenses/MIT>`_.
|
pgsql/pgAdmin 4/python/Lib/site-packages/alembic-1.13.1.dist-info/RECORD
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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,,
|
| 6 |
+
alembic-1.13.1.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
| 7 |
+
alembic-1.13.1.dist-info/entry_points.txt,sha256=aykM30soxwGN0pB7etLc1q0cHJbL9dy46RnK9VX4LLw,48
|
| 8 |
+
alembic-1.13.1.dist-info/top_level.txt,sha256=FwKWd5VsPFC8iQjpu1u9Cn-JnK3-V1RhUCmWqz1cl-s,8
|
| 9 |
+
alembic/__init__.py,sha256=PMiQT_1tHyC_Od3GDBArBk7r14v8F62_xkzliPq9tLU,63
|
| 10 |
+
alembic/__main__.py,sha256=373m7-TBh72JqrSMYviGrxCHZo-cnweM8AGF8A22PmY,78
|
| 11 |
+
alembic/__pycache__/__init__.cpython-311.pyc,,
|
| 12 |
+
alembic/__pycache__/__main__.cpython-311.pyc,,
|
| 13 |
+
alembic/__pycache__/command.cpython-311.pyc,,
|
| 14 |
+
alembic/__pycache__/config.cpython-311.pyc,,
|
| 15 |
+
alembic/__pycache__/context.cpython-311.pyc,,
|
| 16 |
+
alembic/__pycache__/environment.cpython-311.pyc,,
|
| 17 |
+
alembic/__pycache__/migration.cpython-311.pyc,,
|
| 18 |
+
alembic/__pycache__/op.cpython-311.pyc,,
|
| 19 |
+
alembic/autogenerate/__init__.py,sha256=ntmUTXhjLm4_zmqIwyVaECdpPDn6_u1yM9vYk6-553E,543
|
| 20 |
+
alembic/autogenerate/__pycache__/__init__.cpython-311.pyc,,
|
| 21 |
+
alembic/autogenerate/__pycache__/api.cpython-311.pyc,,
|
| 22 |
+
alembic/autogenerate/__pycache__/compare.cpython-311.pyc,,
|
| 23 |
+
alembic/autogenerate/__pycache__/render.cpython-311.pyc,,
|
| 24 |
+
alembic/autogenerate/__pycache__/rewriter.cpython-311.pyc,,
|
| 25 |
+
alembic/autogenerate/api.py,sha256=Oc7MRtDhkSICsQ82fYP9bBMYaAjzzW2X_izM3AQU-OY,22171
|
| 26 |
+
alembic/autogenerate/compare.py,sha256=3QLK2yCDW37bXbAIXcHGz4YOFlOW8bSfLHJ8bmzgG1M,44938
|
| 27 |
+
alembic/autogenerate/render.py,sha256=uSbCpkh72mo00xGZ8CJa3teM_gqulCoNtxH0Ey8Ny1k,34939
|
| 28 |
+
alembic/autogenerate/rewriter.py,sha256=uZWRkTYJoncoEJ5WY1QBRiozjyChqZDJPy4LtcRibjM,7846
|
| 29 |
+
alembic/command.py,sha256=jWFNS-wPWA-Klfm0GsPfWh_8sPj4n7rKROJ0zrwhoR0,21712
|
| 30 |
+
alembic/config.py,sha256=I12lm4V-AXSt-7nvub-Vtx5Zfa68pYP5xSrFQQd45rQ,22256
|
| 31 |
+
alembic/context.py,sha256=hK1AJOQXJ29Bhn276GYcosxeG7pC5aZRT5E8c4bMJ4Q,195
|
| 32 |
+
alembic/context.pyi,sha256=hUHbSnbSeEEMVkk0gDSXOq4_9edSjYzsjmmf-mL9Iao,31737
|
| 33 |
+
alembic/ddl/__init__.py,sha256=Df8fy4Vn_abP8B7q3x8gyFwEwnLw6hs2Ljt_bV3EZWE,152
|
| 34 |
+
alembic/ddl/__pycache__/__init__.cpython-311.pyc,,
|
| 35 |
+
alembic/ddl/__pycache__/_autogen.cpython-311.pyc,,
|
| 36 |
+
alembic/ddl/__pycache__/base.cpython-311.pyc,,
|
| 37 |
+
alembic/ddl/__pycache__/impl.cpython-311.pyc,,
|
| 38 |
+
alembic/ddl/__pycache__/mssql.cpython-311.pyc,,
|
| 39 |
+
alembic/ddl/__pycache__/mysql.cpython-311.pyc,,
|
| 40 |
+
alembic/ddl/__pycache__/oracle.cpython-311.pyc,,
|
| 41 |
+
alembic/ddl/__pycache__/postgresql.cpython-311.pyc,,
|
| 42 |
+
alembic/ddl/__pycache__/sqlite.cpython-311.pyc,,
|
| 43 |
+
alembic/ddl/_autogen.py,sha256=0no9ywWP8gjvO57Ozc2naab4qNusVNn2fiJekjc275g,9179
|
| 44 |
+
alembic/ddl/base.py,sha256=Jd7oPoAOGjOMcdMUIzSKnTjd8NKnTd7IjBXXyVpDCkU,9955
|
| 45 |
+
alembic/ddl/impl.py,sha256=vkhkXFpLPJBG9jW2kv_sR5CC5czNd1ERLjLtfLuOFP0,28778
|
| 46 |
+
alembic/ddl/mssql.py,sha256=ydvgBSaftKYjaBaMyqius66Ta4CICQSj79Og3Ed2atY,14219
|
| 47 |
+
alembic/ddl/mysql.py,sha256=am221U_UK3wX33tNcXNiOObZV-Pa4CXuv7vN-epF9IU,16788
|
| 48 |
+
alembic/ddl/oracle.py,sha256=TmoCq_FlbfyWAAk3e_q6mMQU0YmlfIcgKHpRfNMmgr0,6211
|
| 49 |
+
alembic/ddl/postgresql.py,sha256=dcWLdDSqivzizVCce_H6RnOVAayPXDFfns-NC4-UaA8,29842
|
| 50 |
+
alembic/ddl/sqlite.py,sha256=wLXhb8bJWRspKQTb-iVfepR4LXYgOuEbUWKX5qwDhIQ,7570
|
| 51 |
+
alembic/environment.py,sha256=MM5lPayGT04H3aeng1H7GQ8HEAs3VGX5yy6mDLCPLT4,43
|
| 52 |
+
alembic/migration.py,sha256=MV6Fju6rZtn2fTREKzXrCZM6aIBGII4OMZFix0X-GLs,41
|
| 53 |
+
alembic/op.py,sha256=flHtcsVqOD-ZgZKK2pv-CJ5Cwh-KJ7puMUNXzishxLw,167
|
| 54 |
+
alembic/op.pyi,sha256=8R6SJr1dQharU0blmMJJj23XFO_hk9ZmAQBJBQOeXRU,49816
|
| 55 |
+
alembic/operations/__init__.py,sha256=e0KQSZAgLpTWvyvreB7DWg7RJV_MWSOPVDgCqsd2FzY,318
|
| 56 |
+
alembic/operations/__pycache__/__init__.cpython-311.pyc,,
|
| 57 |
+
alembic/operations/__pycache__/base.cpython-311.pyc,,
|
| 58 |
+
alembic/operations/__pycache__/batch.cpython-311.pyc,,
|
| 59 |
+
alembic/operations/__pycache__/ops.cpython-311.pyc,,
|
| 60 |
+
alembic/operations/__pycache__/schemaobj.cpython-311.pyc,,
|
| 61 |
+
alembic/operations/__pycache__/toimpl.cpython-311.pyc,,
|
| 62 |
+
alembic/operations/base.py,sha256=LCx4NH5NA2NLWQFaZTqE_p2KgLtqJ76oVcp1Grj-zFM,74004
|
| 63 |
+
alembic/operations/batch.py,sha256=YqtD4hJ3_RkFxvI7zbmBwxcLEyLHYyWQpsz4l5L85yI,26943
|
| 64 |
+
alembic/operations/ops.py,sha256=2vtYFhYFDEVq158HwORfGTsobDM7c-t0lewuR7JKw7g,94353
|
| 65 |
+
alembic/operations/schemaobj.py,sha256=vjoD57QvjbzzA-jyPIXulbOmb5_bGPtxoq58KsKI4Y0,9424
|
| 66 |
+
alembic/operations/toimpl.py,sha256=SoNY2_gZX2baXTD-pNjpCWnON8D2QBSYQBIjo13-WKA,7115
|
| 67 |
+
alembic/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 68 |
+
alembic/runtime/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 69 |
+
alembic/runtime/__pycache__/__init__.cpython-311.pyc,,
|
| 70 |
+
alembic/runtime/__pycache__/environment.cpython-311.pyc,,
|
| 71 |
+
alembic/runtime/__pycache__/migration.cpython-311.pyc,,
|
| 72 |
+
alembic/runtime/environment.py,sha256=9wSJaePNAXBXvirif_85ql7dSq4bXM1E6pSb2k-6uGI,41508
|
| 73 |
+
alembic/runtime/migration.py,sha256=Yfv2fa11wiQ0WgoZaFldlWxCPq4dVDOCEOxST_-1VB0,50066
|
| 74 |
+
alembic/script/__init__.py,sha256=lSj06O391Iy5avWAiq8SPs6N8RBgxkSPjP8wpXcNDGg,100
|
| 75 |
+
alembic/script/__pycache__/__init__.cpython-311.pyc,,
|
| 76 |
+
alembic/script/__pycache__/base.cpython-311.pyc,,
|
| 77 |
+
alembic/script/__pycache__/revision.cpython-311.pyc,,
|
| 78 |
+
alembic/script/__pycache__/write_hooks.cpython-311.pyc,,
|
| 79 |
+
alembic/script/base.py,sha256=4gkppn2FKCYDoBgzGkTslcwdyxSabmHvGq0uGKulwbI,37586
|
| 80 |
+
alembic/script/revision.py,sha256=sfnXQw2UwiXs0E6gEPHBKWuSsB5KyuxZPTrFn__hIEk,62060
|
| 81 |
+
alembic/script/write_hooks.py,sha256=NGB6NGgfdf7HK6XNNpSKqUCfzxazj-NRUePgFx7MJSM,5036
|
| 82 |
+
alembic/templates/async/README,sha256=ISVtAOvqvKk_5ThM5ioJE-lMkvf9IbknFUFVU_vPma4,58
|
| 83 |
+
alembic/templates/async/__pycache__/env.cpython-311.pyc,,
|
| 84 |
+
alembic/templates/async/alembic.ini.mako,sha256=uuhJETLWQuiYcs_jAOXHEjshEJ7VslEc1q4RRj0HWbE,3525
|
| 85 |
+
alembic/templates/async/env.py,sha256=zbOCf3Y7w2lg92hxSwmG1MM_7y56i_oRH4AKp0pQBYo,2389
|
| 86 |
+
alembic/templates/async/script.py.mako,sha256=MEqL-2qATlST9TAOeYgscMn1uy6HUS9NFvDgl93dMj8,635
|
| 87 |
+
alembic/templates/generic/README,sha256=MVlc9TYmr57RbhXET6QxgyCcwWP7w-vLkEsirENqiIQ,38
|
| 88 |
+
alembic/templates/generic/__pycache__/env.cpython-311.pyc,,
|
| 89 |
+
alembic/templates/generic/alembic.ini.mako,sha256=sT7F852yN3c8X1-GKFlhuWExXxw9hY1eb1ZZ9flFSzc,3634
|
| 90 |
+
alembic/templates/generic/env.py,sha256=TLRWOVW3Xpt_Tpf8JFzlnoPn_qoUu8UV77Y4o9XD6yI,2103
|
| 91 |
+
alembic/templates/generic/script.py.mako,sha256=MEqL-2qATlST9TAOeYgscMn1uy6HUS9NFvDgl93dMj8,635
|
| 92 |
+
alembic/templates/multidb/README,sha256=dWLDhnBgphA4Nzb7sNlMfCS3_06YqVbHhz-9O5JNqyI,606
|
| 93 |
+
alembic/templates/multidb/__pycache__/env.cpython-311.pyc,,
|
| 94 |
+
alembic/templates/multidb/alembic.ini.mako,sha256=mPh8JFJfWiGs6tMtL8_HAQ-Dz1QOoJgE5Vm76nIMqgU,3728
|
| 95 |
+
alembic/templates/multidb/env.py,sha256=6zNjnW8mXGUk7erTsAvrfhvqoczJ-gagjVq1Ypg2YIQ,4230
|
| 96 |
+
alembic/templates/multidb/script.py.mako,sha256=N06nMtNSwHkgl0EBXDyMt8njp9tlOesR583gfq21nbY,1090
|
| 97 |
+
alembic/testing/__init__.py,sha256=kOxOh5nwmui9d-_CCq9WA4Udwy7ITjm453w74CTLZDo,1159
|
| 98 |
+
alembic/testing/__pycache__/__init__.cpython-311.pyc,,
|
| 99 |
+
alembic/testing/__pycache__/assertions.cpython-311.pyc,,
|
| 100 |
+
alembic/testing/__pycache__/env.cpython-311.pyc,,
|
| 101 |
+
alembic/testing/__pycache__/fixtures.cpython-311.pyc,,
|
| 102 |
+
alembic/testing/__pycache__/requirements.cpython-311.pyc,,
|
| 103 |
+
alembic/testing/__pycache__/schemacompare.cpython-311.pyc,,
|
| 104 |
+
alembic/testing/__pycache__/util.cpython-311.pyc,,
|
| 105 |
+
alembic/testing/__pycache__/warnings.cpython-311.pyc,,
|
| 106 |
+
alembic/testing/assertions.py,sha256=1CbJk8c8-WO9eJ0XJ0jJvMsNRLUrXV41NOeIJUAlOBk,5015
|
| 107 |
+
alembic/testing/env.py,sha256=zJacVb_z6uLs2U1TtkmnFH9P3_F-3IfYbVv4UEPOvfo,10754
|
| 108 |
+
alembic/testing/fixtures.py,sha256=NyP4wE_dFN9ZzSGiBagRu1cdzkka03nwJYJYHYrrkSY,9112
|
| 109 |
+
alembic/testing/plugin/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 110 |
+
alembic/testing/plugin/__pycache__/__init__.cpython-311.pyc,,
|
| 111 |
+
alembic/testing/plugin/__pycache__/bootstrap.cpython-311.pyc,,
|
| 112 |
+
alembic/testing/plugin/bootstrap.py,sha256=9C6wtjGrIVztZ928w27hsQE0KcjDLIUtUN3dvZKsMVk,50
|
| 113 |
+
alembic/testing/requirements.py,sha256=dKeAO1l5TwBqXarJN-IPORlCqCJv-41Dj6oXoEikxHQ,5133
|
| 114 |
+
alembic/testing/schemacompare.py,sha256=N5UqSNCOJetIKC4vKhpYzQEpj08XkdgIoqBmEPQ3tlc,4838
|
| 115 |
+
alembic/testing/suite/__init__.py,sha256=MvE7-hwbaVN1q3NM-ztGxORU9dnIelUCINKqNxewn7Y,288
|
| 116 |
+
alembic/testing/suite/__pycache__/__init__.cpython-311.pyc,,
|
| 117 |
+
alembic/testing/suite/__pycache__/_autogen_fixtures.cpython-311.pyc,,
|
| 118 |
+
alembic/testing/suite/__pycache__/test_autogen_comments.cpython-311.pyc,,
|
| 119 |
+
alembic/testing/suite/__pycache__/test_autogen_computed.cpython-311.pyc,,
|
| 120 |
+
alembic/testing/suite/__pycache__/test_autogen_diffs.cpython-311.pyc,,
|
| 121 |
+
alembic/testing/suite/__pycache__/test_autogen_fks.cpython-311.pyc,,
|
| 122 |
+
alembic/testing/suite/__pycache__/test_autogen_identity.cpython-311.pyc,,
|
| 123 |
+
alembic/testing/suite/__pycache__/test_environment.cpython-311.pyc,,
|
| 124 |
+
alembic/testing/suite/__pycache__/test_op.cpython-311.pyc,,
|
| 125 |
+
alembic/testing/suite/_autogen_fixtures.py,sha256=cDq1pmzHe15S6dZPGNC6sqFaCQ3hLT_oPV2IDigUGQ0,9880
|
| 126 |
+
alembic/testing/suite/test_autogen_comments.py,sha256=aEGqKUDw4kHjnDk298aoGcQvXJWmZXcIX_2FxH4cJK8,6283
|
| 127 |
+
alembic/testing/suite/test_autogen_computed.py,sha256=qJeBpc8urnwTFvbwWrSTIbHVkRUuCXP-dKaNbUK2U2U,6077
|
| 128 |
+
alembic/testing/suite/test_autogen_diffs.py,sha256=T4SR1n_kmcOKYhR4W1-dA0e5sddJ69DSVL2HW96kAkE,8394
|
| 129 |
+
alembic/testing/suite/test_autogen_fks.py,sha256=AqFmb26Buex167HYa9dZWOk8x-JlB1OK3bwcvvjDFaU,32927
|
| 130 |
+
alembic/testing/suite/test_autogen_identity.py,sha256=kcuqngG7qXAKPJDX4U8sRzPKHEJECHuZ0DtuaS6tVkk,5824
|
| 131 |
+
alembic/testing/suite/test_environment.py,sha256=w9F0xnLEbALeR8k6_-Tz6JHvy91IqiTSypNasVzXfZQ,11877
|
| 132 |
+
alembic/testing/suite/test_op.py,sha256=2XQCdm_NmnPxHGuGj7hmxMzIhKxXNotUsKdACXzE1mM,1343
|
| 133 |
+
alembic/testing/util.py,sha256=CQrcQDA8fs_7ME85z5ydb-Bt70soIIID-qNY1vbR2dg,3350
|
| 134 |
+
alembic/testing/warnings.py,sha256=RxA7x_8GseANgw07Us8JN_1iGbANxaw6_VitX2ZGQH4,1078
|
| 135 |
+
alembic/util/__init__.py,sha256=KSZ7UT2YzH6CietgUtljVoE3QnGjoFKOi7RL5sgUxrk,1688
|
| 136 |
+
alembic/util/__pycache__/__init__.cpython-311.pyc,,
|
| 137 |
+
alembic/util/__pycache__/compat.cpython-311.pyc,,
|
| 138 |
+
alembic/util/__pycache__/editor.cpython-311.pyc,,
|
| 139 |
+
alembic/util/__pycache__/exc.cpython-311.pyc,,
|
| 140 |
+
alembic/util/__pycache__/langhelpers.cpython-311.pyc,,
|
| 141 |
+
alembic/util/__pycache__/messaging.cpython-311.pyc,,
|
| 142 |
+
alembic/util/__pycache__/pyfiles.cpython-311.pyc,,
|
| 143 |
+
alembic/util/__pycache__/sqla_compat.cpython-311.pyc,,
|
| 144 |
+
alembic/util/compat.py,sha256=RjHdQa1NomU3Zlvgfvza0OMiSRQSLRL3xVl3OdUy2UE,2594
|
| 145 |
+
alembic/util/editor.py,sha256=JIz6_BdgV8_oKtnheR6DZoB7qnrHrlRgWjx09AsTsUw,2546
|
| 146 |
+
alembic/util/exc.py,sha256=KQTru4zcgAmN4IxLMwLFS56XToUewaXB7oOLcPNjPwg,98
|
| 147 |
+
alembic/util/langhelpers.py,sha256=KYyOjFjJ26evPmrwhdTvLQNXN0bK7AIy5sRdKD91Fvg,10038
|
| 148 |
+
alembic/util/messaging.py,sha256=BM5OCZ6qmLftFRw5yPSxj539_QmfVwNYoU8qYsDqoJY,3132
|
| 149 |
+
alembic/util/pyfiles.py,sha256=zltVdcwEJJCPS2gHsQvkHkQakuF6wXiZ6zfwHbGNT0g,3489
|
| 150 |
+
alembic/util/sqla_compat.py,sha256=toD1S63PgZ6iEteP9bwIf5E7DIUdQPo0UQ_Fn18qWnI,19536
|
pgsql/pgAdmin 4/python/Lib/site-packages/alembic-1.13.1.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: bdist_wheel (0.42.0)
|
| 3 |
+
Root-Is-Purelib: true
|
| 4 |
+
Tag: py3-none-any
|
| 5 |
+
|
pgsql/pgAdmin 4/python/Lib/site-packages/alembic-1.13.1.dist-info/entry_points.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[console_scripts]
|
| 2 |
+
alembic = alembic.config:main
|
pgsql/pgAdmin 4/python/Lib/site-packages/alembic-1.13.1.dist-info/top_level.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
alembic
|
pgsql/pgAdmin 4/python/Lib/site-packages/alembic/__init__.py
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from . import context
|
| 2 |
+
from . import op
|
| 3 |
+
|
| 4 |
+
__version__ = "1.13.1"
|
pgsql/pgAdmin 4/python/Lib/site-packages/alembic/__main__.py
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from .config import main
|
| 2 |
+
|
| 3 |
+
if __name__ == "__main__":
|
| 4 |
+
main(prog="alembic")
|
pgsql/pgAdmin 4/python/Lib/site-packages/alembic/command.py
ADDED
|
@@ -0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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# mypy: allow-untyped-defs, allow-untyped-calls
|
| 2 |
+
|
| 3 |
+
from __future__ import annotations
|
| 4 |
+
|
| 5 |
+
import os
|
| 6 |
+
from typing import List
|
| 7 |
+
from typing import Optional
|
| 8 |
+
from typing import TYPE_CHECKING
|
| 9 |
+
from typing import Union
|
| 10 |
+
|
| 11 |
+
from . import autogenerate as autogen
|
| 12 |
+
from . import util
|
| 13 |
+
from .runtime.environment import EnvironmentContext
|
| 14 |
+
from .script import ScriptDirectory
|
| 15 |
+
|
| 16 |
+
if TYPE_CHECKING:
|
| 17 |
+
from alembic.config import Config
|
| 18 |
+
from alembic.script.base import Script
|
| 19 |
+
from alembic.script.revision import _RevIdType
|
| 20 |
+
from .runtime.environment import ProcessRevisionDirectiveFn
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
def list_templates(config: Config) -> None:
|
| 24 |
+
"""List available templates.
|
| 25 |
+
|
| 26 |
+
:param config: a :class:`.Config` object.
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
|
| 30 |
+
config.print_stdout("Available templates:\n")
|
| 31 |
+
for tempname in os.listdir(config.get_template_directory()):
|
| 32 |
+
with open(
|
| 33 |
+
os.path.join(config.get_template_directory(), tempname, "README")
|
| 34 |
+
) as readme:
|
| 35 |
+
synopsis = next(readme).rstrip()
|
| 36 |
+
config.print_stdout("%s - %s", tempname, synopsis)
|
| 37 |
+
|
| 38 |
+
config.print_stdout("\nTemplates are used via the 'init' command, e.g.:")
|
| 39 |
+
config.print_stdout("\n alembic init --template generic ./scripts")
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
def init(
|
| 43 |
+
config: Config,
|
| 44 |
+
directory: str,
|
| 45 |
+
template: str = "generic",
|
| 46 |
+
package: bool = False,
|
| 47 |
+
) -> None:
|
| 48 |
+
"""Initialize a new scripts directory.
|
| 49 |
+
|
| 50 |
+
:param config: a :class:`.Config` object.
|
| 51 |
+
|
| 52 |
+
:param directory: string path of the target directory
|
| 53 |
+
|
| 54 |
+
:param template: string name of the migration environment template to
|
| 55 |
+
use.
|
| 56 |
+
|
| 57 |
+
:param package: when True, write ``__init__.py`` files into the
|
| 58 |
+
environment location as well as the versions/ location.
|
| 59 |
+
|
| 60 |
+
"""
|
| 61 |
+
|
| 62 |
+
if os.access(directory, os.F_OK) and os.listdir(directory):
|
| 63 |
+
raise util.CommandError(
|
| 64 |
+
"Directory %s already exists and is not empty" % directory
|
| 65 |
+
)
|
| 66 |
+
|
| 67 |
+
template_dir = os.path.join(config.get_template_directory(), template)
|
| 68 |
+
if not os.access(template_dir, os.F_OK):
|
| 69 |
+
raise util.CommandError("No such template %r" % template)
|
| 70 |
+
|
| 71 |
+
if not os.access(directory, os.F_OK):
|
| 72 |
+
with util.status(
|
| 73 |
+
f"Creating directory {os.path.abspath(directory)!r}",
|
| 74 |
+
**config.messaging_opts,
|
| 75 |
+
):
|
| 76 |
+
os.makedirs(directory)
|
| 77 |
+
|
| 78 |
+
versions = os.path.join(directory, "versions")
|
| 79 |
+
with util.status(
|
| 80 |
+
f"Creating directory {os.path.abspath(versions)!r}",
|
| 81 |
+
**config.messaging_opts,
|
| 82 |
+
):
|
| 83 |
+
os.makedirs(versions)
|
| 84 |
+
|
| 85 |
+
script = ScriptDirectory(directory)
|
| 86 |
+
|
| 87 |
+
config_file: str | None = None
|
| 88 |
+
for file_ in os.listdir(template_dir):
|
| 89 |
+
file_path = os.path.join(template_dir, file_)
|
| 90 |
+
if file_ == "alembic.ini.mako":
|
| 91 |
+
assert config.config_file_name is not None
|
| 92 |
+
config_file = os.path.abspath(config.config_file_name)
|
| 93 |
+
if os.access(config_file, os.F_OK):
|
| 94 |
+
util.msg(
|
| 95 |
+
f"File {config_file!r} already exists, skipping",
|
| 96 |
+
**config.messaging_opts,
|
| 97 |
+
)
|
| 98 |
+
else:
|
| 99 |
+
script._generate_template(
|
| 100 |
+
file_path, config_file, script_location=directory
|
| 101 |
+
)
|
| 102 |
+
elif os.path.isfile(file_path):
|
| 103 |
+
output_file = os.path.join(directory, file_)
|
| 104 |
+
script._copy_file(file_path, output_file)
|
| 105 |
+
|
| 106 |
+
if package:
|
| 107 |
+
for path in [
|
| 108 |
+
os.path.join(os.path.abspath(directory), "__init__.py"),
|
| 109 |
+
os.path.join(os.path.abspath(versions), "__init__.py"),
|
| 110 |
+
]:
|
| 111 |
+
with util.status(f"Adding {path!r}", **config.messaging_opts):
|
| 112 |
+
with open(path, "w"):
|
| 113 |
+
pass
|
| 114 |
+
|
| 115 |
+
assert config_file is not None
|
| 116 |
+
util.msg(
|
| 117 |
+
"Please edit configuration/connection/logging "
|
| 118 |
+
f"settings in {config_file!r} before proceeding.",
|
| 119 |
+
**config.messaging_opts,
|
| 120 |
+
)
|
| 121 |
+
|
| 122 |
+
|
| 123 |
+
def revision(
|
| 124 |
+
config: Config,
|
| 125 |
+
message: Optional[str] = None,
|
| 126 |
+
autogenerate: bool = False,
|
| 127 |
+
sql: bool = False,
|
| 128 |
+
head: str = "head",
|
| 129 |
+
splice: bool = False,
|
| 130 |
+
branch_label: Optional[_RevIdType] = None,
|
| 131 |
+
version_path: Optional[str] = None,
|
| 132 |
+
rev_id: Optional[str] = None,
|
| 133 |
+
depends_on: Optional[str] = None,
|
| 134 |
+
process_revision_directives: Optional[ProcessRevisionDirectiveFn] = None,
|
| 135 |
+
) -> Union[Optional[Script], List[Optional[Script]]]:
|
| 136 |
+
"""Create a new revision file.
|
| 137 |
+
|
| 138 |
+
:param config: a :class:`.Config` object.
|
| 139 |
+
|
| 140 |
+
:param message: string message to apply to the revision; this is the
|
| 141 |
+
``-m`` option to ``alembic revision``.
|
| 142 |
+
|
| 143 |
+
:param autogenerate: whether or not to autogenerate the script from
|
| 144 |
+
the database; this is the ``--autogenerate`` option to
|
| 145 |
+
``alembic revision``.
|
| 146 |
+
|
| 147 |
+
:param sql: whether to dump the script out as a SQL string; when specified,
|
| 148 |
+
the script is dumped to stdout. This is the ``--sql`` option to
|
| 149 |
+
``alembic revision``.
|
| 150 |
+
|
| 151 |
+
:param head: head revision to build the new revision upon as a parent;
|
| 152 |
+
this is the ``--head`` option to ``alembic revision``.
|
| 153 |
+
|
| 154 |
+
:param splice: whether or not the new revision should be made into a
|
| 155 |
+
new head of its own; is required when the given ``head`` is not itself
|
| 156 |
+
a head. This is the ``--splice`` option to ``alembic revision``.
|
| 157 |
+
|
| 158 |
+
:param branch_label: string label to apply to the branch; this is the
|
| 159 |
+
``--branch-label`` option to ``alembic revision``.
|
| 160 |
+
|
| 161 |
+
:param version_path: string symbol identifying a specific version path
|
| 162 |
+
from the configuration; this is the ``--version-path`` option to
|
| 163 |
+
``alembic revision``.
|
| 164 |
+
|
| 165 |
+
:param rev_id: optional revision identifier to use instead of having
|
| 166 |
+
one generated; this is the ``--rev-id`` option to ``alembic revision``.
|
| 167 |
+
|
| 168 |
+
:param depends_on: optional list of "depends on" identifiers; this is the
|
| 169 |
+
``--depends-on`` option to ``alembic revision``.
|
| 170 |
+
|
| 171 |
+
:param process_revision_directives: this is a callable that takes the
|
| 172 |
+
same form as the callable described at
|
| 173 |
+
:paramref:`.EnvironmentContext.configure.process_revision_directives`;
|
| 174 |
+
will be applied to the structure generated by the revision process
|
| 175 |
+
where it can be altered programmatically. Note that unlike all
|
| 176 |
+
the other parameters, this option is only available via programmatic
|
| 177 |
+
use of :func:`.command.revision`
|
| 178 |
+
|
| 179 |
+
"""
|
| 180 |
+
|
| 181 |
+
script_directory = ScriptDirectory.from_config(config)
|
| 182 |
+
|
| 183 |
+
command_args = dict(
|
| 184 |
+
message=message,
|
| 185 |
+
autogenerate=autogenerate,
|
| 186 |
+
sql=sql,
|
| 187 |
+
head=head,
|
| 188 |
+
splice=splice,
|
| 189 |
+
branch_label=branch_label,
|
| 190 |
+
version_path=version_path,
|
| 191 |
+
rev_id=rev_id,
|
| 192 |
+
depends_on=depends_on,
|
| 193 |
+
)
|
| 194 |
+
revision_context = autogen.RevisionContext(
|
| 195 |
+
config,
|
| 196 |
+
script_directory,
|
| 197 |
+
command_args,
|
| 198 |
+
process_revision_directives=process_revision_directives,
|
| 199 |
+
)
|
| 200 |
+
|
| 201 |
+
environment = util.asbool(config.get_main_option("revision_environment"))
|
| 202 |
+
|
| 203 |
+
if autogenerate:
|
| 204 |
+
environment = True
|
| 205 |
+
|
| 206 |
+
if sql:
|
| 207 |
+
raise util.CommandError(
|
| 208 |
+
"Using --sql with --autogenerate does not make any sense"
|
| 209 |
+
)
|
| 210 |
+
|
| 211 |
+
def retrieve_migrations(rev, context):
|
| 212 |
+
revision_context.run_autogenerate(rev, context)
|
| 213 |
+
return []
|
| 214 |
+
|
| 215 |
+
elif environment:
|
| 216 |
+
|
| 217 |
+
def retrieve_migrations(rev, context):
|
| 218 |
+
revision_context.run_no_autogenerate(rev, context)
|
| 219 |
+
return []
|
| 220 |
+
|
| 221 |
+
elif sql:
|
| 222 |
+
raise util.CommandError(
|
| 223 |
+
"Using --sql with the revision command when "
|
| 224 |
+
"revision_environment is not configured does not make any sense"
|
| 225 |
+
)
|
| 226 |
+
|
| 227 |
+
if environment:
|
| 228 |
+
with EnvironmentContext(
|
| 229 |
+
config,
|
| 230 |
+
script_directory,
|
| 231 |
+
fn=retrieve_migrations,
|
| 232 |
+
as_sql=sql,
|
| 233 |
+
template_args=revision_context.template_args,
|
| 234 |
+
revision_context=revision_context,
|
| 235 |
+
):
|
| 236 |
+
script_directory.run_env()
|
| 237 |
+
|
| 238 |
+
# the revision_context now has MigrationScript structure(s) present.
|
| 239 |
+
# these could theoretically be further processed / rewritten *here*,
|
| 240 |
+
# in addition to the hooks present within each run_migrations() call,
|
| 241 |
+
# or at the end of env.py run_migrations_online().
|
| 242 |
+
|
| 243 |
+
scripts = [script for script in revision_context.generate_scripts()]
|
| 244 |
+
if len(scripts) == 1:
|
| 245 |
+
return scripts[0]
|
| 246 |
+
else:
|
| 247 |
+
return scripts
|
| 248 |
+
|
| 249 |
+
|
| 250 |
+
def check(config: "Config") -> None:
|
| 251 |
+
"""Check if revision command with autogenerate has pending upgrade ops.
|
| 252 |
+
|
| 253 |
+
:param config: a :class:`.Config` object.
|
| 254 |
+
|
| 255 |
+
.. versionadded:: 1.9.0
|
| 256 |
+
|
| 257 |
+
"""
|
| 258 |
+
|
| 259 |
+
script_directory = ScriptDirectory.from_config(config)
|
| 260 |
+
|
| 261 |
+
command_args = dict(
|
| 262 |
+
message=None,
|
| 263 |
+
autogenerate=True,
|
| 264 |
+
sql=False,
|
| 265 |
+
head="head",
|
| 266 |
+
splice=False,
|
| 267 |
+
branch_label=None,
|
| 268 |
+
version_path=None,
|
| 269 |
+
rev_id=None,
|
| 270 |
+
depends_on=None,
|
| 271 |
+
)
|
| 272 |
+
revision_context = autogen.RevisionContext(
|
| 273 |
+
config,
|
| 274 |
+
script_directory,
|
| 275 |
+
command_args,
|
| 276 |
+
)
|
| 277 |
+
|
| 278 |
+
def retrieve_migrations(rev, context):
|
| 279 |
+
revision_context.run_autogenerate(rev, context)
|
| 280 |
+
return []
|
| 281 |
+
|
| 282 |
+
with EnvironmentContext(
|
| 283 |
+
config,
|
| 284 |
+
script_directory,
|
| 285 |
+
fn=retrieve_migrations,
|
| 286 |
+
as_sql=False,
|
| 287 |
+
template_args=revision_context.template_args,
|
| 288 |
+
revision_context=revision_context,
|
| 289 |
+
):
|
| 290 |
+
script_directory.run_env()
|
| 291 |
+
|
| 292 |
+
# the revision_context now has MigrationScript structure(s) present.
|
| 293 |
+
|
| 294 |
+
migration_script = revision_context.generated_revisions[-1]
|
| 295 |
+
diffs = []
|
| 296 |
+
for upgrade_ops in migration_script.upgrade_ops_list:
|
| 297 |
+
diffs.extend(upgrade_ops.as_diffs())
|
| 298 |
+
|
| 299 |
+
if diffs:
|
| 300 |
+
raise util.AutogenerateDiffsDetected(
|
| 301 |
+
f"New upgrade operations detected: {diffs}"
|
| 302 |
+
)
|
| 303 |
+
else:
|
| 304 |
+
config.print_stdout("No new upgrade operations detected.")
|
| 305 |
+
|
| 306 |
+
|
| 307 |
+
def merge(
|
| 308 |
+
config: Config,
|
| 309 |
+
revisions: _RevIdType,
|
| 310 |
+
message: Optional[str] = None,
|
| 311 |
+
branch_label: Optional[_RevIdType] = None,
|
| 312 |
+
rev_id: Optional[str] = None,
|
| 313 |
+
) -> Optional[Script]:
|
| 314 |
+
"""Merge two revisions together. Creates a new migration file.
|
| 315 |
+
|
| 316 |
+
:param config: a :class:`.Config` instance
|
| 317 |
+
|
| 318 |
+
:param message: string message to apply to the revision
|
| 319 |
+
|
| 320 |
+
:param branch_label: string label name to apply to the new revision
|
| 321 |
+
|
| 322 |
+
:param rev_id: hardcoded revision identifier instead of generating a new
|
| 323 |
+
one.
|
| 324 |
+
|
| 325 |
+
.. seealso::
|
| 326 |
+
|
| 327 |
+
:ref:`branches`
|
| 328 |
+
|
| 329 |
+
"""
|
| 330 |
+
|
| 331 |
+
script = ScriptDirectory.from_config(config)
|
| 332 |
+
template_args = {
|
| 333 |
+
"config": config # Let templates use config for
|
| 334 |
+
# e.g. multiple databases
|
| 335 |
+
}
|
| 336 |
+
|
| 337 |
+
environment = util.asbool(config.get_main_option("revision_environment"))
|
| 338 |
+
|
| 339 |
+
if environment:
|
| 340 |
+
|
| 341 |
+
def nothing(rev, context):
|
| 342 |
+
return []
|
| 343 |
+
|
| 344 |
+
with EnvironmentContext(
|
| 345 |
+
config,
|
| 346 |
+
script,
|
| 347 |
+
fn=nothing,
|
| 348 |
+
as_sql=False,
|
| 349 |
+
template_args=template_args,
|
| 350 |
+
):
|
| 351 |
+
script.run_env()
|
| 352 |
+
|
| 353 |
+
return script.generate_revision(
|
| 354 |
+
rev_id or util.rev_id(),
|
| 355 |
+
message,
|
| 356 |
+
refresh=True,
|
| 357 |
+
head=revisions,
|
| 358 |
+
branch_labels=branch_label,
|
| 359 |
+
**template_args, # type:ignore[arg-type]
|
| 360 |
+
)
|
| 361 |
+
|
| 362 |
+
|
| 363 |
+
def upgrade(
|
| 364 |
+
config: Config,
|
| 365 |
+
revision: str,
|
| 366 |
+
sql: bool = False,
|
| 367 |
+
tag: Optional[str] = None,
|
| 368 |
+
) -> None:
|
| 369 |
+
"""Upgrade to a later version.
|
| 370 |
+
|
| 371 |
+
:param config: a :class:`.Config` instance.
|
| 372 |
+
|
| 373 |
+
:param revision: string revision target or range for --sql mode
|
| 374 |
+
|
| 375 |
+
:param sql: if True, use ``--sql`` mode
|
| 376 |
+
|
| 377 |
+
:param tag: an arbitrary "tag" that can be intercepted by custom
|
| 378 |
+
``env.py`` scripts via the :meth:`.EnvironmentContext.get_tag_argument`
|
| 379 |
+
method.
|
| 380 |
+
|
| 381 |
+
"""
|
| 382 |
+
|
| 383 |
+
script = ScriptDirectory.from_config(config)
|
| 384 |
+
|
| 385 |
+
starting_rev = None
|
| 386 |
+
if ":" in revision:
|
| 387 |
+
if not sql:
|
| 388 |
+
raise util.CommandError("Range revision not allowed")
|
| 389 |
+
starting_rev, revision = revision.split(":", 2)
|
| 390 |
+
|
| 391 |
+
def upgrade(rev, context):
|
| 392 |
+
return script._upgrade_revs(revision, rev)
|
| 393 |
+
|
| 394 |
+
with EnvironmentContext(
|
| 395 |
+
config,
|
| 396 |
+
script,
|
| 397 |
+
fn=upgrade,
|
| 398 |
+
as_sql=sql,
|
| 399 |
+
starting_rev=starting_rev,
|
| 400 |
+
destination_rev=revision,
|
| 401 |
+
tag=tag,
|
| 402 |
+
):
|
| 403 |
+
script.run_env()
|
| 404 |
+
|
| 405 |
+
|
| 406 |
+
def downgrade(
|
| 407 |
+
config: Config,
|
| 408 |
+
revision: str,
|
| 409 |
+
sql: bool = False,
|
| 410 |
+
tag: Optional[str] = None,
|
| 411 |
+
) -> None:
|
| 412 |
+
"""Revert to a previous version.
|
| 413 |
+
|
| 414 |
+
:param config: a :class:`.Config` instance.
|
| 415 |
+
|
| 416 |
+
:param revision: string revision target or range for --sql mode
|
| 417 |
+
|
| 418 |
+
:param sql: if True, use ``--sql`` mode
|
| 419 |
+
|
| 420 |
+
:param tag: an arbitrary "tag" that can be intercepted by custom
|
| 421 |
+
``env.py`` scripts via the :meth:`.EnvironmentContext.get_tag_argument`
|
| 422 |
+
method.
|
| 423 |
+
|
| 424 |
+
"""
|
| 425 |
+
|
| 426 |
+
script = ScriptDirectory.from_config(config)
|
| 427 |
+
starting_rev = None
|
| 428 |
+
if ":" in revision:
|
| 429 |
+
if not sql:
|
| 430 |
+
raise util.CommandError("Range revision not allowed")
|
| 431 |
+
starting_rev, revision = revision.split(":", 2)
|
| 432 |
+
elif sql:
|
| 433 |
+
raise util.CommandError(
|
| 434 |
+
"downgrade with --sql requires <fromrev>:<torev>"
|
| 435 |
+
)
|
| 436 |
+
|
| 437 |
+
def downgrade(rev, context):
|
| 438 |
+
return script._downgrade_revs(revision, rev)
|
| 439 |
+
|
| 440 |
+
with EnvironmentContext(
|
| 441 |
+
config,
|
| 442 |
+
script,
|
| 443 |
+
fn=downgrade,
|
| 444 |
+
as_sql=sql,
|
| 445 |
+
starting_rev=starting_rev,
|
| 446 |
+
destination_rev=revision,
|
| 447 |
+
tag=tag,
|
| 448 |
+
):
|
| 449 |
+
script.run_env()
|
| 450 |
+
|
| 451 |
+
|
| 452 |
+
def show(config, rev):
|
| 453 |
+
"""Show the revision(s) denoted by the given symbol.
|
| 454 |
+
|
| 455 |
+
:param config: a :class:`.Config` instance.
|
| 456 |
+
|
| 457 |
+
:param revision: string revision target
|
| 458 |
+
|
| 459 |
+
"""
|
| 460 |
+
|
| 461 |
+
script = ScriptDirectory.from_config(config)
|
| 462 |
+
|
| 463 |
+
if rev == "current":
|
| 464 |
+
|
| 465 |
+
def show_current(rev, context):
|
| 466 |
+
for sc in script.get_revisions(rev):
|
| 467 |
+
config.print_stdout(sc.log_entry)
|
| 468 |
+
return []
|
| 469 |
+
|
| 470 |
+
with EnvironmentContext(config, script, fn=show_current):
|
| 471 |
+
script.run_env()
|
| 472 |
+
else:
|
| 473 |
+
for sc in script.get_revisions(rev):
|
| 474 |
+
config.print_stdout(sc.log_entry)
|
| 475 |
+
|
| 476 |
+
|
| 477 |
+
def history(
|
| 478 |
+
config: Config,
|
| 479 |
+
rev_range: Optional[str] = None,
|
| 480 |
+
verbose: bool = False,
|
| 481 |
+
indicate_current: bool = False,
|
| 482 |
+
) -> None:
|
| 483 |
+
"""List changeset scripts in chronological order.
|
| 484 |
+
|
| 485 |
+
:param config: a :class:`.Config` instance.
|
| 486 |
+
|
| 487 |
+
:param rev_range: string revision range
|
| 488 |
+
|
| 489 |
+
:param verbose: output in verbose mode.
|
| 490 |
+
|
| 491 |
+
:param indicate_current: indicate current revision.
|
| 492 |
+
|
| 493 |
+
"""
|
| 494 |
+
base: Optional[str]
|
| 495 |
+
head: Optional[str]
|
| 496 |
+
script = ScriptDirectory.from_config(config)
|
| 497 |
+
if rev_range is not None:
|
| 498 |
+
if ":" not in rev_range:
|
| 499 |
+
raise util.CommandError(
|
| 500 |
+
"History range requires [start]:[end], " "[start]:, or :[end]"
|
| 501 |
+
)
|
| 502 |
+
base, head = rev_range.strip().split(":")
|
| 503 |
+
else:
|
| 504 |
+
base = head = None
|
| 505 |
+
|
| 506 |
+
environment = (
|
| 507 |
+
util.asbool(config.get_main_option("revision_environment"))
|
| 508 |
+
or indicate_current
|
| 509 |
+
)
|
| 510 |
+
|
| 511 |
+
def _display_history(config, script, base, head, currents=()):
|
| 512 |
+
for sc in script.walk_revisions(
|
| 513 |
+
base=base or "base", head=head or "heads"
|
| 514 |
+
):
|
| 515 |
+
if indicate_current:
|
| 516 |
+
sc._db_current_indicator = sc.revision in currents
|
| 517 |
+
|
| 518 |
+
config.print_stdout(
|
| 519 |
+
sc.cmd_format(
|
| 520 |
+
verbose=verbose,
|
| 521 |
+
include_branches=True,
|
| 522 |
+
include_doc=True,
|
| 523 |
+
include_parents=True,
|
| 524 |
+
)
|
| 525 |
+
)
|
| 526 |
+
|
| 527 |
+
def _display_history_w_current(config, script, base, head):
|
| 528 |
+
def _display_current_history(rev, context):
|
| 529 |
+
if head == "current":
|
| 530 |
+
_display_history(config, script, base, rev, rev)
|
| 531 |
+
elif base == "current":
|
| 532 |
+
_display_history(config, script, rev, head, rev)
|
| 533 |
+
else:
|
| 534 |
+
_display_history(config, script, base, head, rev)
|
| 535 |
+
return []
|
| 536 |
+
|
| 537 |
+
with EnvironmentContext(config, script, fn=_display_current_history):
|
| 538 |
+
script.run_env()
|
| 539 |
+
|
| 540 |
+
if base == "current" or head == "current" or environment:
|
| 541 |
+
_display_history_w_current(config, script, base, head)
|
| 542 |
+
else:
|
| 543 |
+
_display_history(config, script, base, head)
|
| 544 |
+
|
| 545 |
+
|
| 546 |
+
def heads(config, verbose=False, resolve_dependencies=False):
|
| 547 |
+
"""Show current available heads in the script directory.
|
| 548 |
+
|
| 549 |
+
:param config: a :class:`.Config` instance.
|
| 550 |
+
|
| 551 |
+
:param verbose: output in verbose mode.
|
| 552 |
+
|
| 553 |
+
:param resolve_dependencies: treat dependency version as down revisions.
|
| 554 |
+
|
| 555 |
+
"""
|
| 556 |
+
|
| 557 |
+
script = ScriptDirectory.from_config(config)
|
| 558 |
+
if resolve_dependencies:
|
| 559 |
+
heads = script.get_revisions("heads")
|
| 560 |
+
else:
|
| 561 |
+
heads = script.get_revisions(script.get_heads())
|
| 562 |
+
|
| 563 |
+
for rev in heads:
|
| 564 |
+
config.print_stdout(
|
| 565 |
+
rev.cmd_format(
|
| 566 |
+
verbose, include_branches=True, tree_indicators=False
|
| 567 |
+
)
|
| 568 |
+
)
|
| 569 |
+
|
| 570 |
+
|
| 571 |
+
def branches(config, verbose=False):
|
| 572 |
+
"""Show current branch points.
|
| 573 |
+
|
| 574 |
+
:param config: a :class:`.Config` instance.
|
| 575 |
+
|
| 576 |
+
:param verbose: output in verbose mode.
|
| 577 |
+
|
| 578 |
+
"""
|
| 579 |
+
script = ScriptDirectory.from_config(config)
|
| 580 |
+
for sc in script.walk_revisions():
|
| 581 |
+
if sc.is_branch_point:
|
| 582 |
+
config.print_stdout(
|
| 583 |
+
"%s\n%s\n",
|
| 584 |
+
sc.cmd_format(verbose, include_branches=True),
|
| 585 |
+
"\n".join(
|
| 586 |
+
"%s -> %s"
|
| 587 |
+
% (
|
| 588 |
+
" " * len(str(sc.revision)),
|
| 589 |
+
rev_obj.cmd_format(
|
| 590 |
+
False, include_branches=True, include_doc=verbose
|
| 591 |
+
),
|
| 592 |
+
)
|
| 593 |
+
for rev_obj in (
|
| 594 |
+
script.get_revision(rev) for rev in sc.nextrev
|
| 595 |
+
)
|
| 596 |
+
),
|
| 597 |
+
)
|
| 598 |
+
|
| 599 |
+
|
| 600 |
+
def current(config: Config, verbose: bool = False) -> None:
|
| 601 |
+
"""Display the current revision for a database.
|
| 602 |
+
|
| 603 |
+
:param config: a :class:`.Config` instance.
|
| 604 |
+
|
| 605 |
+
:param verbose: output in verbose mode.
|
| 606 |
+
|
| 607 |
+
"""
|
| 608 |
+
|
| 609 |
+
script = ScriptDirectory.from_config(config)
|
| 610 |
+
|
| 611 |
+
def display_version(rev, context):
|
| 612 |
+
if verbose:
|
| 613 |
+
config.print_stdout(
|
| 614 |
+
"Current revision(s) for %s:",
|
| 615 |
+
util.obfuscate_url_pw(context.connection.engine.url),
|
| 616 |
+
)
|
| 617 |
+
for rev in script.get_all_current(rev):
|
| 618 |
+
config.print_stdout(rev.cmd_format(verbose))
|
| 619 |
+
|
| 620 |
+
return []
|
| 621 |
+
|
| 622 |
+
with EnvironmentContext(
|
| 623 |
+
config, script, fn=display_version, dont_mutate=True
|
| 624 |
+
):
|
| 625 |
+
script.run_env()
|
| 626 |
+
|
| 627 |
+
|
| 628 |
+
def stamp(
|
| 629 |
+
config: Config,
|
| 630 |
+
revision: _RevIdType,
|
| 631 |
+
sql: bool = False,
|
| 632 |
+
tag: Optional[str] = None,
|
| 633 |
+
purge: bool = False,
|
| 634 |
+
) -> None:
|
| 635 |
+
"""'stamp' the revision table with the given revision; don't
|
| 636 |
+
run any migrations.
|
| 637 |
+
|
| 638 |
+
:param config: a :class:`.Config` instance.
|
| 639 |
+
|
| 640 |
+
:param revision: target revision or list of revisions. May be a list
|
| 641 |
+
to indicate stamping of multiple branch heads.
|
| 642 |
+
|
| 643 |
+
.. note:: this parameter is called "revisions" in the command line
|
| 644 |
+
interface.
|
| 645 |
+
|
| 646 |
+
:param sql: use ``--sql`` mode
|
| 647 |
+
|
| 648 |
+
:param tag: an arbitrary "tag" that can be intercepted by custom
|
| 649 |
+
``env.py`` scripts via the :class:`.EnvironmentContext.get_tag_argument`
|
| 650 |
+
method.
|
| 651 |
+
|
| 652 |
+
:param purge: delete all entries in the version table before stamping.
|
| 653 |
+
|
| 654 |
+
"""
|
| 655 |
+
|
| 656 |
+
script = ScriptDirectory.from_config(config)
|
| 657 |
+
|
| 658 |
+
if sql:
|
| 659 |
+
destination_revs = []
|
| 660 |
+
starting_rev = None
|
| 661 |
+
for _revision in util.to_list(revision):
|
| 662 |
+
if ":" in _revision:
|
| 663 |
+
srev, _revision = _revision.split(":", 2)
|
| 664 |
+
|
| 665 |
+
if starting_rev != srev:
|
| 666 |
+
if starting_rev is None:
|
| 667 |
+
starting_rev = srev
|
| 668 |
+
else:
|
| 669 |
+
raise util.CommandError(
|
| 670 |
+
"Stamp operation with --sql only supports a "
|
| 671 |
+
"single starting revision at a time"
|
| 672 |
+
)
|
| 673 |
+
destination_revs.append(_revision)
|
| 674 |
+
else:
|
| 675 |
+
destination_revs = util.to_list(revision)
|
| 676 |
+
|
| 677 |
+
def do_stamp(rev, context):
|
| 678 |
+
return script._stamp_revs(util.to_tuple(destination_revs), rev)
|
| 679 |
+
|
| 680 |
+
with EnvironmentContext(
|
| 681 |
+
config,
|
| 682 |
+
script,
|
| 683 |
+
fn=do_stamp,
|
| 684 |
+
as_sql=sql,
|
| 685 |
+
starting_rev=starting_rev if sql else None,
|
| 686 |
+
destination_rev=util.to_tuple(destination_revs),
|
| 687 |
+
tag=tag,
|
| 688 |
+
purge=purge,
|
| 689 |
+
):
|
| 690 |
+
script.run_env()
|
| 691 |
+
|
| 692 |
+
|
| 693 |
+
def edit(config: Config, rev: str) -> None:
|
| 694 |
+
"""Edit revision script(s) using $EDITOR.
|
| 695 |
+
|
| 696 |
+
:param config: a :class:`.Config` instance.
|
| 697 |
+
|
| 698 |
+
:param rev: target revision.
|
| 699 |
+
|
| 700 |
+
"""
|
| 701 |
+
|
| 702 |
+
script = ScriptDirectory.from_config(config)
|
| 703 |
+
|
| 704 |
+
if rev == "current":
|
| 705 |
+
|
| 706 |
+
def edit_current(rev, context):
|
| 707 |
+
if not rev:
|
| 708 |
+
raise util.CommandError("No current revisions")
|
| 709 |
+
for sc in script.get_revisions(rev):
|
| 710 |
+
util.open_in_editor(sc.path)
|
| 711 |
+
return []
|
| 712 |
+
|
| 713 |
+
with EnvironmentContext(config, script, fn=edit_current):
|
| 714 |
+
script.run_env()
|
| 715 |
+
else:
|
| 716 |
+
revs = script.get_revisions(rev)
|
| 717 |
+
if not revs:
|
| 718 |
+
raise util.CommandError(
|
| 719 |
+
"No revision files indicated by symbol '%s'" % rev
|
| 720 |
+
)
|
| 721 |
+
for sc in revs:
|
| 722 |
+
assert sc
|
| 723 |
+
util.open_in_editor(sc.path)
|
| 724 |
+
|
| 725 |
+
|
| 726 |
+
def ensure_version(config: Config, sql: bool = False) -> None:
|
| 727 |
+
"""Create the alembic version table if it doesn't exist already .
|
| 728 |
+
|
| 729 |
+
:param config: a :class:`.Config` instance.
|
| 730 |
+
|
| 731 |
+
:param sql: use ``--sql`` mode
|
| 732 |
+
|
| 733 |
+
.. versionadded:: 1.7.6
|
| 734 |
+
|
| 735 |
+
"""
|
| 736 |
+
|
| 737 |
+
script = ScriptDirectory.from_config(config)
|
| 738 |
+
|
| 739 |
+
def do_ensure_version(rev, context):
|
| 740 |
+
context._ensure_version_table()
|
| 741 |
+
return []
|
| 742 |
+
|
| 743 |
+
with EnvironmentContext(
|
| 744 |
+
config,
|
| 745 |
+
script,
|
| 746 |
+
fn=do_ensure_version,
|
| 747 |
+
as_sql=sql,
|
| 748 |
+
):
|
| 749 |
+
script.run_env()
|
pgsql/pgAdmin 4/python/Lib/site-packages/alembic/config.py
ADDED
|
@@ -0,0 +1,645 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
from argparse import ArgumentParser
|
| 4 |
+
from argparse import Namespace
|
| 5 |
+
from configparser import ConfigParser
|
| 6 |
+
import inspect
|
| 7 |
+
import os
|
| 8 |
+
import sys
|
| 9 |
+
from typing import Any
|
| 10 |
+
from typing import cast
|
| 11 |
+
from typing import Dict
|
| 12 |
+
from typing import Mapping
|
| 13 |
+
from typing import Optional
|
| 14 |
+
from typing import overload
|
| 15 |
+
from typing import Sequence
|
| 16 |
+
from typing import TextIO
|
| 17 |
+
from typing import Union
|
| 18 |
+
|
| 19 |
+
from typing_extensions import TypedDict
|
| 20 |
+
|
| 21 |
+
from . import __version__
|
| 22 |
+
from . import command
|
| 23 |
+
from . import util
|
| 24 |
+
from .util import compat
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
class Config:
|
| 28 |
+
r"""Represent an Alembic configuration.
|
| 29 |
+
|
| 30 |
+
Within an ``env.py`` script, this is available
|
| 31 |
+
via the :attr:`.EnvironmentContext.config` attribute,
|
| 32 |
+
which in turn is available at ``alembic.context``::
|
| 33 |
+
|
| 34 |
+
from alembic import context
|
| 35 |
+
|
| 36 |
+
some_param = context.config.get_main_option("my option")
|
| 37 |
+
|
| 38 |
+
When invoking Alembic programmatically, a new
|
| 39 |
+
:class:`.Config` can be created by passing
|
| 40 |
+
the name of an .ini file to the constructor::
|
| 41 |
+
|
| 42 |
+
from alembic.config import Config
|
| 43 |
+
alembic_cfg = Config("/path/to/yourapp/alembic.ini")
|
| 44 |
+
|
| 45 |
+
With a :class:`.Config` object, you can then
|
| 46 |
+
run Alembic commands programmatically using the directives
|
| 47 |
+
in :mod:`alembic.command`.
|
| 48 |
+
|
| 49 |
+
The :class:`.Config` object can also be constructed without
|
| 50 |
+
a filename. Values can be set programmatically, and
|
| 51 |
+
new sections will be created as needed::
|
| 52 |
+
|
| 53 |
+
from alembic.config import Config
|
| 54 |
+
alembic_cfg = Config()
|
| 55 |
+
alembic_cfg.set_main_option("script_location", "myapp:migrations")
|
| 56 |
+
alembic_cfg.set_main_option("sqlalchemy.url", "postgresql://foo/bar")
|
| 57 |
+
alembic_cfg.set_section_option("mysection", "foo", "bar")
|
| 58 |
+
|
| 59 |
+
.. warning::
|
| 60 |
+
|
| 61 |
+
When using programmatic configuration, make sure the
|
| 62 |
+
``env.py`` file in use is compatible with the target configuration;
|
| 63 |
+
including that the call to Python ``logging.fileConfig()`` is
|
| 64 |
+
omitted if the programmatic configuration doesn't actually include
|
| 65 |
+
logging directives.
|
| 66 |
+
|
| 67 |
+
For passing non-string values to environments, such as connections and
|
| 68 |
+
engines, use the :attr:`.Config.attributes` dictionary::
|
| 69 |
+
|
| 70 |
+
with engine.begin() as connection:
|
| 71 |
+
alembic_cfg.attributes['connection'] = connection
|
| 72 |
+
command.upgrade(alembic_cfg, "head")
|
| 73 |
+
|
| 74 |
+
:param file\_: name of the .ini file to open.
|
| 75 |
+
:param ini_section: name of the main Alembic section within the
|
| 76 |
+
.ini file
|
| 77 |
+
:param output_buffer: optional file-like input buffer which
|
| 78 |
+
will be passed to the :class:`.MigrationContext` - used to redirect
|
| 79 |
+
the output of "offline generation" when using Alembic programmatically.
|
| 80 |
+
:param stdout: buffer where the "print" output of commands will be sent.
|
| 81 |
+
Defaults to ``sys.stdout``.
|
| 82 |
+
|
| 83 |
+
:param config_args: A dictionary of keys and values that will be used
|
| 84 |
+
for substitution in the alembic config file. The dictionary as given
|
| 85 |
+
is **copied** to a new one, stored locally as the attribute
|
| 86 |
+
``.config_args``. When the :attr:`.Config.file_config` attribute is
|
| 87 |
+
first invoked, the replacement variable ``here`` will be added to this
|
| 88 |
+
dictionary before the dictionary is passed to ``ConfigParser()``
|
| 89 |
+
to parse the .ini file.
|
| 90 |
+
|
| 91 |
+
:param attributes: optional dictionary of arbitrary Python keys/values,
|
| 92 |
+
which will be populated into the :attr:`.Config.attributes` dictionary.
|
| 93 |
+
|
| 94 |
+
.. seealso::
|
| 95 |
+
|
| 96 |
+
:ref:`connection_sharing`
|
| 97 |
+
|
| 98 |
+
"""
|
| 99 |
+
|
| 100 |
+
def __init__(
|
| 101 |
+
self,
|
| 102 |
+
file_: Union[str, os.PathLike[str], None] = None,
|
| 103 |
+
ini_section: str = "alembic",
|
| 104 |
+
output_buffer: Optional[TextIO] = None,
|
| 105 |
+
stdout: TextIO = sys.stdout,
|
| 106 |
+
cmd_opts: Optional[Namespace] = None,
|
| 107 |
+
config_args: Mapping[str, Any] = util.immutabledict(),
|
| 108 |
+
attributes: Optional[Dict[str, Any]] = None,
|
| 109 |
+
) -> None:
|
| 110 |
+
"""Construct a new :class:`.Config`"""
|
| 111 |
+
self.config_file_name = file_
|
| 112 |
+
self.config_ini_section = ini_section
|
| 113 |
+
self.output_buffer = output_buffer
|
| 114 |
+
self.stdout = stdout
|
| 115 |
+
self.cmd_opts = cmd_opts
|
| 116 |
+
self.config_args = dict(config_args)
|
| 117 |
+
if attributes:
|
| 118 |
+
self.attributes.update(attributes)
|
| 119 |
+
|
| 120 |
+
cmd_opts: Optional[Namespace] = None
|
| 121 |
+
"""The command-line options passed to the ``alembic`` script.
|
| 122 |
+
|
| 123 |
+
Within an ``env.py`` script this can be accessed via the
|
| 124 |
+
:attr:`.EnvironmentContext.config` attribute.
|
| 125 |
+
|
| 126 |
+
.. seealso::
|
| 127 |
+
|
| 128 |
+
:meth:`.EnvironmentContext.get_x_argument`
|
| 129 |
+
|
| 130 |
+
"""
|
| 131 |
+
|
| 132 |
+
config_file_name: Union[str, os.PathLike[str], None] = None
|
| 133 |
+
"""Filesystem path to the .ini file in use."""
|
| 134 |
+
|
| 135 |
+
config_ini_section: str = None # type:ignore[assignment]
|
| 136 |
+
"""Name of the config file section to read basic configuration
|
| 137 |
+
from. Defaults to ``alembic``, that is the ``[alembic]`` section
|
| 138 |
+
of the .ini file. This value is modified using the ``-n/--name``
|
| 139 |
+
option to the Alembic runner.
|
| 140 |
+
|
| 141 |
+
"""
|
| 142 |
+
|
| 143 |
+
@util.memoized_property
|
| 144 |
+
def attributes(self) -> Dict[str, Any]:
|
| 145 |
+
"""A Python dictionary for storage of additional state.
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
This is a utility dictionary which can include not just strings but
|
| 149 |
+
engines, connections, schema objects, or anything else.
|
| 150 |
+
Use this to pass objects into an env.py script, such as passing
|
| 151 |
+
a :class:`sqlalchemy.engine.base.Connection` when calling
|
| 152 |
+
commands from :mod:`alembic.command` programmatically.
|
| 153 |
+
|
| 154 |
+
.. seealso::
|
| 155 |
+
|
| 156 |
+
:ref:`connection_sharing`
|
| 157 |
+
|
| 158 |
+
:paramref:`.Config.attributes`
|
| 159 |
+
|
| 160 |
+
"""
|
| 161 |
+
return {}
|
| 162 |
+
|
| 163 |
+
def print_stdout(self, text: str, *arg: Any) -> None:
|
| 164 |
+
"""Render a message to standard out.
|
| 165 |
+
|
| 166 |
+
When :meth:`.Config.print_stdout` is called with additional args
|
| 167 |
+
those arguments will formatted against the provided text,
|
| 168 |
+
otherwise we simply output the provided text verbatim.
|
| 169 |
+
|
| 170 |
+
This is a no-op when the``quiet`` messaging option is enabled.
|
| 171 |
+
|
| 172 |
+
e.g.::
|
| 173 |
+
|
| 174 |
+
>>> config.print_stdout('Some text %s', 'arg')
|
| 175 |
+
Some Text arg
|
| 176 |
+
|
| 177 |
+
"""
|
| 178 |
+
|
| 179 |
+
if arg:
|
| 180 |
+
output = str(text) % arg
|
| 181 |
+
else:
|
| 182 |
+
output = str(text)
|
| 183 |
+
|
| 184 |
+
util.write_outstream(self.stdout, output, "\n", **self.messaging_opts)
|
| 185 |
+
|
| 186 |
+
@util.memoized_property
|
| 187 |
+
def file_config(self) -> ConfigParser:
|
| 188 |
+
"""Return the underlying ``ConfigParser`` object.
|
| 189 |
+
|
| 190 |
+
Direct access to the .ini file is available here,
|
| 191 |
+
though the :meth:`.Config.get_section` and
|
| 192 |
+
:meth:`.Config.get_main_option`
|
| 193 |
+
methods provide a possibly simpler interface.
|
| 194 |
+
|
| 195 |
+
"""
|
| 196 |
+
|
| 197 |
+
if self.config_file_name:
|
| 198 |
+
here = os.path.abspath(os.path.dirname(self.config_file_name))
|
| 199 |
+
else:
|
| 200 |
+
here = ""
|
| 201 |
+
self.config_args["here"] = here
|
| 202 |
+
file_config = ConfigParser(self.config_args)
|
| 203 |
+
if self.config_file_name:
|
| 204 |
+
compat.read_config_parser(file_config, [self.config_file_name])
|
| 205 |
+
else:
|
| 206 |
+
file_config.add_section(self.config_ini_section)
|
| 207 |
+
return file_config
|
| 208 |
+
|
| 209 |
+
def get_template_directory(self) -> str:
|
| 210 |
+
"""Return the directory where Alembic setup templates are found.
|
| 211 |
+
|
| 212 |
+
This method is used by the alembic ``init`` and ``list_templates``
|
| 213 |
+
commands.
|
| 214 |
+
|
| 215 |
+
"""
|
| 216 |
+
import alembic
|
| 217 |
+
|
| 218 |
+
package_dir = os.path.abspath(os.path.dirname(alembic.__file__))
|
| 219 |
+
return os.path.join(package_dir, "templates")
|
| 220 |
+
|
| 221 |
+
@overload
|
| 222 |
+
def get_section(
|
| 223 |
+
self, name: str, default: None = ...
|
| 224 |
+
) -> Optional[Dict[str, str]]:
|
| 225 |
+
...
|
| 226 |
+
|
| 227 |
+
# "default" here could also be a TypeVar
|
| 228 |
+
# _MT = TypeVar("_MT", bound=Mapping[str, str]),
|
| 229 |
+
# however mypy wasn't handling that correctly (pyright was)
|
| 230 |
+
@overload
|
| 231 |
+
def get_section(
|
| 232 |
+
self, name: str, default: Dict[str, str]
|
| 233 |
+
) -> Dict[str, str]:
|
| 234 |
+
...
|
| 235 |
+
|
| 236 |
+
@overload
|
| 237 |
+
def get_section(
|
| 238 |
+
self, name: str, default: Mapping[str, str]
|
| 239 |
+
) -> Union[Dict[str, str], Mapping[str, str]]:
|
| 240 |
+
...
|
| 241 |
+
|
| 242 |
+
def get_section(
|
| 243 |
+
self, name: str, default: Optional[Mapping[str, str]] = None
|
| 244 |
+
) -> Optional[Mapping[str, str]]:
|
| 245 |
+
"""Return all the configuration options from a given .ini file section
|
| 246 |
+
as a dictionary.
|
| 247 |
+
|
| 248 |
+
If the given section does not exist, the value of ``default``
|
| 249 |
+
is returned, which is expected to be a dictionary or other mapping.
|
| 250 |
+
|
| 251 |
+
"""
|
| 252 |
+
if not self.file_config.has_section(name):
|
| 253 |
+
return default
|
| 254 |
+
|
| 255 |
+
return dict(self.file_config.items(name))
|
| 256 |
+
|
| 257 |
+
def set_main_option(self, name: str, value: str) -> None:
|
| 258 |
+
"""Set an option programmatically within the 'main' section.
|
| 259 |
+
|
| 260 |
+
This overrides whatever was in the .ini file.
|
| 261 |
+
|
| 262 |
+
:param name: name of the value
|
| 263 |
+
|
| 264 |
+
:param value: the value. Note that this value is passed to
|
| 265 |
+
``ConfigParser.set``, which supports variable interpolation using
|
| 266 |
+
pyformat (e.g. ``%(some_value)s``). A raw percent sign not part of
|
| 267 |
+
an interpolation symbol must therefore be escaped, e.g. ``%%``.
|
| 268 |
+
The given value may refer to another value already in the file
|
| 269 |
+
using the interpolation format.
|
| 270 |
+
|
| 271 |
+
"""
|
| 272 |
+
self.set_section_option(self.config_ini_section, name, value)
|
| 273 |
+
|
| 274 |
+
def remove_main_option(self, name: str) -> None:
|
| 275 |
+
self.file_config.remove_option(self.config_ini_section, name)
|
| 276 |
+
|
| 277 |
+
def set_section_option(self, section: str, name: str, value: str) -> None:
|
| 278 |
+
"""Set an option programmatically within the given section.
|
| 279 |
+
|
| 280 |
+
The section is created if it doesn't exist already.
|
| 281 |
+
The value here will override whatever was in the .ini
|
| 282 |
+
file.
|
| 283 |
+
|
| 284 |
+
:param section: name of the section
|
| 285 |
+
|
| 286 |
+
:param name: name of the value
|
| 287 |
+
|
| 288 |
+
:param value: the value. Note that this value is passed to
|
| 289 |
+
``ConfigParser.set``, which supports variable interpolation using
|
| 290 |
+
pyformat (e.g. ``%(some_value)s``). A raw percent sign not part of
|
| 291 |
+
an interpolation symbol must therefore be escaped, e.g. ``%%``.
|
| 292 |
+
The given value may refer to another value already in the file
|
| 293 |
+
using the interpolation format.
|
| 294 |
+
|
| 295 |
+
"""
|
| 296 |
+
|
| 297 |
+
if not self.file_config.has_section(section):
|
| 298 |
+
self.file_config.add_section(section)
|
| 299 |
+
self.file_config.set(section, name, value)
|
| 300 |
+
|
| 301 |
+
def get_section_option(
|
| 302 |
+
self, section: str, name: str, default: Optional[str] = None
|
| 303 |
+
) -> Optional[str]:
|
| 304 |
+
"""Return an option from the given section of the .ini file."""
|
| 305 |
+
if not self.file_config.has_section(section):
|
| 306 |
+
raise util.CommandError(
|
| 307 |
+
"No config file %r found, or file has no "
|
| 308 |
+
"'[%s]' section" % (self.config_file_name, section)
|
| 309 |
+
)
|
| 310 |
+
if self.file_config.has_option(section, name):
|
| 311 |
+
return self.file_config.get(section, name)
|
| 312 |
+
else:
|
| 313 |
+
return default
|
| 314 |
+
|
| 315 |
+
@overload
|
| 316 |
+
def get_main_option(self, name: str, default: str) -> str:
|
| 317 |
+
...
|
| 318 |
+
|
| 319 |
+
@overload
|
| 320 |
+
def get_main_option(
|
| 321 |
+
self, name: str, default: Optional[str] = None
|
| 322 |
+
) -> Optional[str]:
|
| 323 |
+
...
|
| 324 |
+
|
| 325 |
+
def get_main_option(
|
| 326 |
+
self, name: str, default: Optional[str] = None
|
| 327 |
+
) -> Optional[str]:
|
| 328 |
+
"""Return an option from the 'main' section of the .ini file.
|
| 329 |
+
|
| 330 |
+
This defaults to being a key from the ``[alembic]``
|
| 331 |
+
section, unless the ``-n/--name`` flag were used to
|
| 332 |
+
indicate a different section.
|
| 333 |
+
|
| 334 |
+
"""
|
| 335 |
+
return self.get_section_option(self.config_ini_section, name, default)
|
| 336 |
+
|
| 337 |
+
@util.memoized_property
|
| 338 |
+
def messaging_opts(self) -> MessagingOptions:
|
| 339 |
+
"""The messaging options."""
|
| 340 |
+
return cast(
|
| 341 |
+
MessagingOptions,
|
| 342 |
+
util.immutabledict(
|
| 343 |
+
{"quiet": getattr(self.cmd_opts, "quiet", False)}
|
| 344 |
+
),
|
| 345 |
+
)
|
| 346 |
+
|
| 347 |
+
|
| 348 |
+
class MessagingOptions(TypedDict, total=False):
|
| 349 |
+
quiet: bool
|
| 350 |
+
|
| 351 |
+
|
| 352 |
+
class CommandLine:
|
| 353 |
+
def __init__(self, prog: Optional[str] = None) -> None:
|
| 354 |
+
self._generate_args(prog)
|
| 355 |
+
|
| 356 |
+
def _generate_args(self, prog: Optional[str]) -> None:
|
| 357 |
+
def add_options(
|
| 358 |
+
fn: Any, parser: Any, positional: Any, kwargs: Any
|
| 359 |
+
) -> None:
|
| 360 |
+
kwargs_opts = {
|
| 361 |
+
"template": (
|
| 362 |
+
"-t",
|
| 363 |
+
"--template",
|
| 364 |
+
dict(
|
| 365 |
+
default="generic",
|
| 366 |
+
type=str,
|
| 367 |
+
help="Setup template for use with 'init'",
|
| 368 |
+
),
|
| 369 |
+
),
|
| 370 |
+
"message": (
|
| 371 |
+
"-m",
|
| 372 |
+
"--message",
|
| 373 |
+
dict(
|
| 374 |
+
type=str, help="Message string to use with 'revision'"
|
| 375 |
+
),
|
| 376 |
+
),
|
| 377 |
+
"sql": (
|
| 378 |
+
"--sql",
|
| 379 |
+
dict(
|
| 380 |
+
action="store_true",
|
| 381 |
+
help="Don't emit SQL to database - dump to "
|
| 382 |
+
"standard output/file instead. See docs on "
|
| 383 |
+
"offline mode.",
|
| 384 |
+
),
|
| 385 |
+
),
|
| 386 |
+
"tag": (
|
| 387 |
+
"--tag",
|
| 388 |
+
dict(
|
| 389 |
+
type=str,
|
| 390 |
+
help="Arbitrary 'tag' name - can be used by "
|
| 391 |
+
"custom env.py scripts.",
|
| 392 |
+
),
|
| 393 |
+
),
|
| 394 |
+
"head": (
|
| 395 |
+
"--head",
|
| 396 |
+
dict(
|
| 397 |
+
type=str,
|
| 398 |
+
help="Specify head revision or <branchname>@head "
|
| 399 |
+
"to base new revision on.",
|
| 400 |
+
),
|
| 401 |
+
),
|
| 402 |
+
"splice": (
|
| 403 |
+
"--splice",
|
| 404 |
+
dict(
|
| 405 |
+
action="store_true",
|
| 406 |
+
help="Allow a non-head revision as the "
|
| 407 |
+
"'head' to splice onto",
|
| 408 |
+
),
|
| 409 |
+
),
|
| 410 |
+
"depends_on": (
|
| 411 |
+
"--depends-on",
|
| 412 |
+
dict(
|
| 413 |
+
action="append",
|
| 414 |
+
help="Specify one or more revision identifiers "
|
| 415 |
+
"which this revision should depend on.",
|
| 416 |
+
),
|
| 417 |
+
),
|
| 418 |
+
"rev_id": (
|
| 419 |
+
"--rev-id",
|
| 420 |
+
dict(
|
| 421 |
+
type=str,
|
| 422 |
+
help="Specify a hardcoded revision id instead of "
|
| 423 |
+
"generating one",
|
| 424 |
+
),
|
| 425 |
+
),
|
| 426 |
+
"version_path": (
|
| 427 |
+
"--version-path",
|
| 428 |
+
dict(
|
| 429 |
+
type=str,
|
| 430 |
+
help="Specify specific path from config for "
|
| 431 |
+
"version file",
|
| 432 |
+
),
|
| 433 |
+
),
|
| 434 |
+
"branch_label": (
|
| 435 |
+
"--branch-label",
|
| 436 |
+
dict(
|
| 437 |
+
type=str,
|
| 438 |
+
help="Specify a branch label to apply to the "
|
| 439 |
+
"new revision",
|
| 440 |
+
),
|
| 441 |
+
),
|
| 442 |
+
"verbose": (
|
| 443 |
+
"-v",
|
| 444 |
+
"--verbose",
|
| 445 |
+
dict(action="store_true", help="Use more verbose output"),
|
| 446 |
+
),
|
| 447 |
+
"resolve_dependencies": (
|
| 448 |
+
"--resolve-dependencies",
|
| 449 |
+
dict(
|
| 450 |
+
action="store_true",
|
| 451 |
+
help="Treat dependency versions as down revisions",
|
| 452 |
+
),
|
| 453 |
+
),
|
| 454 |
+
"autogenerate": (
|
| 455 |
+
"--autogenerate",
|
| 456 |
+
dict(
|
| 457 |
+
action="store_true",
|
| 458 |
+
help="Populate revision script with candidate "
|
| 459 |
+
"migration operations, based on comparison "
|
| 460 |
+
"of database to model.",
|
| 461 |
+
),
|
| 462 |
+
),
|
| 463 |
+
"rev_range": (
|
| 464 |
+
"-r",
|
| 465 |
+
"--rev-range",
|
| 466 |
+
dict(
|
| 467 |
+
action="store",
|
| 468 |
+
help="Specify a revision range; "
|
| 469 |
+
"format is [start]:[end]",
|
| 470 |
+
),
|
| 471 |
+
),
|
| 472 |
+
"indicate_current": (
|
| 473 |
+
"-i",
|
| 474 |
+
"--indicate-current",
|
| 475 |
+
dict(
|
| 476 |
+
action="store_true",
|
| 477 |
+
help="Indicate the current revision",
|
| 478 |
+
),
|
| 479 |
+
),
|
| 480 |
+
"purge": (
|
| 481 |
+
"--purge",
|
| 482 |
+
dict(
|
| 483 |
+
action="store_true",
|
| 484 |
+
help="Unconditionally erase the version table "
|
| 485 |
+
"before stamping",
|
| 486 |
+
),
|
| 487 |
+
),
|
| 488 |
+
"package": (
|
| 489 |
+
"--package",
|
| 490 |
+
dict(
|
| 491 |
+
action="store_true",
|
| 492 |
+
help="Write empty __init__.py files to the "
|
| 493 |
+
"environment and version locations",
|
| 494 |
+
),
|
| 495 |
+
),
|
| 496 |
+
}
|
| 497 |
+
positional_help = {
|
| 498 |
+
"directory": "location of scripts directory",
|
| 499 |
+
"revision": "revision identifier",
|
| 500 |
+
"revisions": "one or more revisions, or 'heads' for all heads",
|
| 501 |
+
}
|
| 502 |
+
for arg in kwargs:
|
| 503 |
+
if arg in kwargs_opts:
|
| 504 |
+
args = kwargs_opts[arg]
|
| 505 |
+
args, kw = args[0:-1], args[-1]
|
| 506 |
+
parser.add_argument(*args, **kw)
|
| 507 |
+
|
| 508 |
+
for arg in positional:
|
| 509 |
+
if (
|
| 510 |
+
arg == "revisions"
|
| 511 |
+
or fn in positional_translations
|
| 512 |
+
and positional_translations[fn][arg] == "revisions"
|
| 513 |
+
):
|
| 514 |
+
subparser.add_argument(
|
| 515 |
+
"revisions",
|
| 516 |
+
nargs="+",
|
| 517 |
+
help=positional_help.get("revisions"),
|
| 518 |
+
)
|
| 519 |
+
else:
|
| 520 |
+
subparser.add_argument(arg, help=positional_help.get(arg))
|
| 521 |
+
|
| 522 |
+
parser = ArgumentParser(prog=prog)
|
| 523 |
+
|
| 524 |
+
parser.add_argument(
|
| 525 |
+
"--version", action="version", version="%%(prog)s %s" % __version__
|
| 526 |
+
)
|
| 527 |
+
parser.add_argument(
|
| 528 |
+
"-c",
|
| 529 |
+
"--config",
|
| 530 |
+
type=str,
|
| 531 |
+
default=os.environ.get("ALEMBIC_CONFIG", "alembic.ini"),
|
| 532 |
+
help="Alternate config file; defaults to value of "
|
| 533 |
+
'ALEMBIC_CONFIG environment variable, or "alembic.ini"',
|
| 534 |
+
)
|
| 535 |
+
parser.add_argument(
|
| 536 |
+
"-n",
|
| 537 |
+
"--name",
|
| 538 |
+
type=str,
|
| 539 |
+
default="alembic",
|
| 540 |
+
help="Name of section in .ini file to " "use for Alembic config",
|
| 541 |
+
)
|
| 542 |
+
parser.add_argument(
|
| 543 |
+
"-x",
|
| 544 |
+
action="append",
|
| 545 |
+
help="Additional arguments consumed by "
|
| 546 |
+
"custom env.py scripts, e.g. -x "
|
| 547 |
+
"setting1=somesetting -x setting2=somesetting",
|
| 548 |
+
)
|
| 549 |
+
parser.add_argument(
|
| 550 |
+
"--raiseerr",
|
| 551 |
+
action="store_true",
|
| 552 |
+
help="Raise a full stack trace on error",
|
| 553 |
+
)
|
| 554 |
+
parser.add_argument(
|
| 555 |
+
"-q",
|
| 556 |
+
"--quiet",
|
| 557 |
+
action="store_true",
|
| 558 |
+
help="Do not log to std output.",
|
| 559 |
+
)
|
| 560 |
+
subparsers = parser.add_subparsers()
|
| 561 |
+
|
| 562 |
+
positional_translations: Dict[Any, Any] = {
|
| 563 |
+
command.stamp: {"revision": "revisions"}
|
| 564 |
+
}
|
| 565 |
+
|
| 566 |
+
for fn in [getattr(command, n) for n in dir(command)]:
|
| 567 |
+
if (
|
| 568 |
+
inspect.isfunction(fn)
|
| 569 |
+
and fn.__name__[0] != "_"
|
| 570 |
+
and fn.__module__ == "alembic.command"
|
| 571 |
+
):
|
| 572 |
+
spec = compat.inspect_getfullargspec(fn)
|
| 573 |
+
if spec[3] is not None:
|
| 574 |
+
positional = spec[0][1 : -len(spec[3])]
|
| 575 |
+
kwarg = spec[0][-len(spec[3]) :]
|
| 576 |
+
else:
|
| 577 |
+
positional = spec[0][1:]
|
| 578 |
+
kwarg = []
|
| 579 |
+
|
| 580 |
+
if fn in positional_translations:
|
| 581 |
+
positional = [
|
| 582 |
+
positional_translations[fn].get(name, name)
|
| 583 |
+
for name in positional
|
| 584 |
+
]
|
| 585 |
+
|
| 586 |
+
# parse first line(s) of helptext without a line break
|
| 587 |
+
help_ = fn.__doc__
|
| 588 |
+
if help_:
|
| 589 |
+
help_text = []
|
| 590 |
+
for line in help_.split("\n"):
|
| 591 |
+
if not line.strip():
|
| 592 |
+
break
|
| 593 |
+
else:
|
| 594 |
+
help_text.append(line.strip())
|
| 595 |
+
else:
|
| 596 |
+
help_text = []
|
| 597 |
+
subparser = subparsers.add_parser(
|
| 598 |
+
fn.__name__, help=" ".join(help_text)
|
| 599 |
+
)
|
| 600 |
+
add_options(fn, subparser, positional, kwarg)
|
| 601 |
+
subparser.set_defaults(cmd=(fn, positional, kwarg))
|
| 602 |
+
self.parser = parser
|
| 603 |
+
|
| 604 |
+
def run_cmd(self, config: Config, options: Namespace) -> None:
|
| 605 |
+
fn, positional, kwarg = options.cmd
|
| 606 |
+
|
| 607 |
+
try:
|
| 608 |
+
fn(
|
| 609 |
+
config,
|
| 610 |
+
*[getattr(options, k, None) for k in positional],
|
| 611 |
+
**{k: getattr(options, k, None) for k in kwarg},
|
| 612 |
+
)
|
| 613 |
+
except util.CommandError as e:
|
| 614 |
+
if options.raiseerr:
|
| 615 |
+
raise
|
| 616 |
+
else:
|
| 617 |
+
util.err(str(e), **config.messaging_opts)
|
| 618 |
+
|
| 619 |
+
def main(self, argv: Optional[Sequence[str]] = None) -> None:
|
| 620 |
+
options = self.parser.parse_args(argv)
|
| 621 |
+
if not hasattr(options, "cmd"):
|
| 622 |
+
# see http://bugs.python.org/issue9253, argparse
|
| 623 |
+
# behavior changed incompatibly in py3.3
|
| 624 |
+
self.parser.error("too few arguments")
|
| 625 |
+
else:
|
| 626 |
+
cfg = Config(
|
| 627 |
+
file_=options.config,
|
| 628 |
+
ini_section=options.name,
|
| 629 |
+
cmd_opts=options,
|
| 630 |
+
)
|
| 631 |
+
self.run_cmd(cfg, options)
|
| 632 |
+
|
| 633 |
+
|
| 634 |
+
def main(
|
| 635 |
+
argv: Optional[Sequence[str]] = None,
|
| 636 |
+
prog: Optional[str] = None,
|
| 637 |
+
**kwargs: Any,
|
| 638 |
+
) -> None:
|
| 639 |
+
"""The console runner function for Alembic."""
|
| 640 |
+
|
| 641 |
+
CommandLine(prog=prog).main(argv=argv)
|
| 642 |
+
|
| 643 |
+
|
| 644 |
+
if __name__ == "__main__":
|
| 645 |
+
main()
|
pgsql/pgAdmin 4/python/Lib/site-packages/alembic/context.py
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from .runtime.environment import EnvironmentContext
|
| 2 |
+
|
| 3 |
+
# create proxy functions for
|
| 4 |
+
# each method on the EnvironmentContext class.
|
| 5 |
+
EnvironmentContext.create_module_class_proxy(globals(), locals())
|
pgsql/pgAdmin 4/python/Lib/site-packages/alembic/context.pyi
ADDED
|
@@ -0,0 +1,853 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
| 5 |
+
from typing import Any
|
| 6 |
+
from typing import Callable
|
| 7 |
+
from typing import Collection
|
| 8 |
+
from typing import ContextManager
|
| 9 |
+
from typing import Dict
|
| 10 |
+
from typing import Iterable
|
| 11 |
+
from typing import List
|
| 12 |
+
from typing import Literal
|
| 13 |
+
from typing import Mapping
|
| 14 |
+
from typing import MutableMapping
|
| 15 |
+
from typing import Optional
|
| 16 |
+
from typing import overload
|
| 17 |
+
from typing import Sequence
|
| 18 |
+
from typing import TextIO
|
| 19 |
+
from typing import Tuple
|
| 20 |
+
from typing import TYPE_CHECKING
|
| 21 |
+
from typing import Union
|
| 22 |
+
|
| 23 |
+
if TYPE_CHECKING:
|
| 24 |
+
from sqlalchemy.engine.base import Connection
|
| 25 |
+
from sqlalchemy.engine.url import URL
|
| 26 |
+
from sqlalchemy.sql import Executable
|
| 27 |
+
from sqlalchemy.sql.schema import Column
|
| 28 |
+
from sqlalchemy.sql.schema import FetchedValue
|
| 29 |
+
from sqlalchemy.sql.schema import MetaData
|
| 30 |
+
from sqlalchemy.sql.schema import SchemaItem
|
| 31 |
+
from sqlalchemy.sql.type_api import TypeEngine
|
| 32 |
+
|
| 33 |
+
from .autogenerate.api import AutogenContext
|
| 34 |
+
from .config import Config
|
| 35 |
+
from .operations.ops import MigrationScript
|
| 36 |
+
from .runtime.migration import _ProxyTransaction
|
| 37 |
+
from .runtime.migration import MigrationContext
|
| 38 |
+
from .runtime.migration import MigrationInfo
|
| 39 |
+
from .script import ScriptDirectory
|
| 40 |
+
|
| 41 |
+
### end imports ###
|
| 42 |
+
|
| 43 |
+
def begin_transaction() -> Union[_ProxyTransaction, ContextManager[None]]:
|
| 44 |
+
"""Return a context manager that will
|
| 45 |
+
enclose an operation within a "transaction",
|
| 46 |
+
as defined by the environment's offline
|
| 47 |
+
and transactional DDL settings.
|
| 48 |
+
|
| 49 |
+
e.g.::
|
| 50 |
+
|
| 51 |
+
with context.begin_transaction():
|
| 52 |
+
context.run_migrations()
|
| 53 |
+
|
| 54 |
+
:meth:`.begin_transaction` is intended to
|
| 55 |
+
"do the right thing" regardless of
|
| 56 |
+
calling context:
|
| 57 |
+
|
| 58 |
+
* If :meth:`.is_transactional_ddl` is ``False``,
|
| 59 |
+
returns a "do nothing" context manager
|
| 60 |
+
which otherwise produces no transactional
|
| 61 |
+
state or directives.
|
| 62 |
+
* If :meth:`.is_offline_mode` is ``True``,
|
| 63 |
+
returns a context manager that will
|
| 64 |
+
invoke the :meth:`.DefaultImpl.emit_begin`
|
| 65 |
+
and :meth:`.DefaultImpl.emit_commit`
|
| 66 |
+
methods, which will produce the string
|
| 67 |
+
directives ``BEGIN`` and ``COMMIT`` on
|
| 68 |
+
the output stream, as rendered by the
|
| 69 |
+
target backend (e.g. SQL Server would
|
| 70 |
+
emit ``BEGIN TRANSACTION``).
|
| 71 |
+
* Otherwise, calls :meth:`sqlalchemy.engine.Connection.begin`
|
| 72 |
+
on the current online connection, which
|
| 73 |
+
returns a :class:`sqlalchemy.engine.Transaction`
|
| 74 |
+
object. This object demarcates a real
|
| 75 |
+
transaction and is itself a context manager,
|
| 76 |
+
which will roll back if an exception
|
| 77 |
+
is raised.
|
| 78 |
+
|
| 79 |
+
Note that a custom ``env.py`` script which
|
| 80 |
+
has more specific transactional needs can of course
|
| 81 |
+
manipulate the :class:`~sqlalchemy.engine.Connection`
|
| 82 |
+
directly to produce transactional state in "online"
|
| 83 |
+
mode.
|
| 84 |
+
|
| 85 |
+
"""
|
| 86 |
+
|
| 87 |
+
config: Config
|
| 88 |
+
|
| 89 |
+
def configure(
|
| 90 |
+
connection: Optional[Connection] = None,
|
| 91 |
+
url: Union[str, URL, None] = None,
|
| 92 |
+
dialect_name: Optional[str] = None,
|
| 93 |
+
dialect_opts: Optional[Dict[str, Any]] = None,
|
| 94 |
+
transactional_ddl: Optional[bool] = None,
|
| 95 |
+
transaction_per_migration: bool = False,
|
| 96 |
+
output_buffer: Optional[TextIO] = None,
|
| 97 |
+
starting_rev: Optional[str] = None,
|
| 98 |
+
tag: Optional[str] = None,
|
| 99 |
+
template_args: Optional[Dict[str, Any]] = None,
|
| 100 |
+
render_as_batch: bool = False,
|
| 101 |
+
target_metadata: Union[MetaData, Sequence[MetaData], None] = None,
|
| 102 |
+
include_name: Optional[
|
| 103 |
+
Callable[
|
| 104 |
+
[
|
| 105 |
+
Optional[str],
|
| 106 |
+
Literal[
|
| 107 |
+
"schema",
|
| 108 |
+
"table",
|
| 109 |
+
"column",
|
| 110 |
+
"index",
|
| 111 |
+
"unique_constraint",
|
| 112 |
+
"foreign_key_constraint",
|
| 113 |
+
],
|
| 114 |
+
MutableMapping[
|
| 115 |
+
Literal[
|
| 116 |
+
"schema_name",
|
| 117 |
+
"table_name",
|
| 118 |
+
"schema_qualified_table_name",
|
| 119 |
+
],
|
| 120 |
+
Optional[str],
|
| 121 |
+
],
|
| 122 |
+
],
|
| 123 |
+
bool,
|
| 124 |
+
]
|
| 125 |
+
] = None,
|
| 126 |
+
include_object: Optional[
|
| 127 |
+
Callable[
|
| 128 |
+
[
|
| 129 |
+
SchemaItem,
|
| 130 |
+
Optional[str],
|
| 131 |
+
Literal[
|
| 132 |
+
"schema",
|
| 133 |
+
"table",
|
| 134 |
+
"column",
|
| 135 |
+
"index",
|
| 136 |
+
"unique_constraint",
|
| 137 |
+
"foreign_key_constraint",
|
| 138 |
+
],
|
| 139 |
+
bool,
|
| 140 |
+
Optional[SchemaItem],
|
| 141 |
+
],
|
| 142 |
+
bool,
|
| 143 |
+
]
|
| 144 |
+
] = None,
|
| 145 |
+
include_schemas: bool = False,
|
| 146 |
+
process_revision_directives: Optional[
|
| 147 |
+
Callable[
|
| 148 |
+
[
|
| 149 |
+
MigrationContext,
|
| 150 |
+
Union[str, Iterable[Optional[str]], Iterable[str]],
|
| 151 |
+
List[MigrationScript],
|
| 152 |
+
],
|
| 153 |
+
None,
|
| 154 |
+
]
|
| 155 |
+
] = None,
|
| 156 |
+
compare_type: Union[
|
| 157 |
+
bool,
|
| 158 |
+
Callable[
|
| 159 |
+
[
|
| 160 |
+
MigrationContext,
|
| 161 |
+
Column[Any],
|
| 162 |
+
Column[Any],
|
| 163 |
+
TypeEngine[Any],
|
| 164 |
+
TypeEngine[Any],
|
| 165 |
+
],
|
| 166 |
+
Optional[bool],
|
| 167 |
+
],
|
| 168 |
+
] = True,
|
| 169 |
+
compare_server_default: Union[
|
| 170 |
+
bool,
|
| 171 |
+
Callable[
|
| 172 |
+
[
|
| 173 |
+
MigrationContext,
|
| 174 |
+
Column[Any],
|
| 175 |
+
Column[Any],
|
| 176 |
+
Optional[str],
|
| 177 |
+
Optional[FetchedValue],
|
| 178 |
+
Optional[str],
|
| 179 |
+
],
|
| 180 |
+
Optional[bool],
|
| 181 |
+
],
|
| 182 |
+
] = False,
|
| 183 |
+
render_item: Optional[
|
| 184 |
+
Callable[[str, Any, AutogenContext], Union[str, Literal[False]]]
|
| 185 |
+
] = None,
|
| 186 |
+
literal_binds: bool = False,
|
| 187 |
+
upgrade_token: str = "upgrades",
|
| 188 |
+
downgrade_token: str = "downgrades",
|
| 189 |
+
alembic_module_prefix: str = "op.",
|
| 190 |
+
sqlalchemy_module_prefix: str = "sa.",
|
| 191 |
+
user_module_prefix: Optional[str] = None,
|
| 192 |
+
on_version_apply: Optional[
|
| 193 |
+
Callable[
|
| 194 |
+
[
|
| 195 |
+
MigrationContext,
|
| 196 |
+
MigrationInfo,
|
| 197 |
+
Collection[Any],
|
| 198 |
+
Mapping[str, Any],
|
| 199 |
+
],
|
| 200 |
+
None,
|
| 201 |
+
]
|
| 202 |
+
] = None,
|
| 203 |
+
**kw: Any,
|
| 204 |
+
) -> None:
|
| 205 |
+
"""Configure a :class:`.MigrationContext` within this
|
| 206 |
+
:class:`.EnvironmentContext` which will provide database
|
| 207 |
+
connectivity and other configuration to a series of
|
| 208 |
+
migration scripts.
|
| 209 |
+
|
| 210 |
+
Many methods on :class:`.EnvironmentContext` require that
|
| 211 |
+
this method has been called in order to function, as they
|
| 212 |
+
ultimately need to have database access or at least access
|
| 213 |
+
to the dialect in use. Those which do are documented as such.
|
| 214 |
+
|
| 215 |
+
The important thing needed by :meth:`.configure` is a
|
| 216 |
+
means to determine what kind of database dialect is in use.
|
| 217 |
+
An actual connection to that database is needed only if
|
| 218 |
+
the :class:`.MigrationContext` is to be used in
|
| 219 |
+
"online" mode.
|
| 220 |
+
|
| 221 |
+
If the :meth:`.is_offline_mode` function returns ``True``,
|
| 222 |
+
then no connection is needed here. Otherwise, the
|
| 223 |
+
``connection`` parameter should be present as an
|
| 224 |
+
instance of :class:`sqlalchemy.engine.Connection`.
|
| 225 |
+
|
| 226 |
+
This function is typically called from the ``env.py``
|
| 227 |
+
script within a migration environment. It can be called
|
| 228 |
+
multiple times for an invocation. The most recent
|
| 229 |
+
:class:`~sqlalchemy.engine.Connection`
|
| 230 |
+
for which it was called is the one that will be operated upon
|
| 231 |
+
by the next call to :meth:`.run_migrations`.
|
| 232 |
+
|
| 233 |
+
General parameters:
|
| 234 |
+
|
| 235 |
+
:param connection: a :class:`~sqlalchemy.engine.Connection`
|
| 236 |
+
to use
|
| 237 |
+
for SQL execution in "online" mode. When present, is also
|
| 238 |
+
used to determine the type of dialect in use.
|
| 239 |
+
:param url: a string database url, or a
|
| 240 |
+
:class:`sqlalchemy.engine.url.URL` object.
|
| 241 |
+
The type of dialect to be used will be derived from this if
|
| 242 |
+
``connection`` is not passed.
|
| 243 |
+
:param dialect_name: string name of a dialect, such as
|
| 244 |
+
"postgresql", "mssql", etc.
|
| 245 |
+
The type of dialect to be used will be derived from this if
|
| 246 |
+
``connection`` and ``url`` are not passed.
|
| 247 |
+
:param dialect_opts: dictionary of options to be passed to dialect
|
| 248 |
+
constructor.
|
| 249 |
+
:param transactional_ddl: Force the usage of "transactional"
|
| 250 |
+
DDL on or off;
|
| 251 |
+
this otherwise defaults to whether or not the dialect in
|
| 252 |
+
use supports it.
|
| 253 |
+
:param transaction_per_migration: if True, nest each migration script
|
| 254 |
+
in a transaction rather than the full series of migrations to
|
| 255 |
+
run.
|
| 256 |
+
:param output_buffer: a file-like object that will be used
|
| 257 |
+
for textual output
|
| 258 |
+
when the ``--sql`` option is used to generate SQL scripts.
|
| 259 |
+
Defaults to
|
| 260 |
+
``sys.stdout`` if not passed here and also not present on
|
| 261 |
+
the :class:`.Config`
|
| 262 |
+
object. The value here overrides that of the :class:`.Config`
|
| 263 |
+
object.
|
| 264 |
+
:param output_encoding: when using ``--sql`` to generate SQL
|
| 265 |
+
scripts, apply this encoding to the string output.
|
| 266 |
+
:param literal_binds: when using ``--sql`` to generate SQL
|
| 267 |
+
scripts, pass through the ``literal_binds`` flag to the compiler
|
| 268 |
+
so that any literal values that would ordinarily be bound
|
| 269 |
+
parameters are converted to plain strings.
|
| 270 |
+
|
| 271 |
+
.. warning:: Dialects can typically only handle simple datatypes
|
| 272 |
+
like strings and numbers for auto-literal generation. Datatypes
|
| 273 |
+
like dates, intervals, and others may still require manual
|
| 274 |
+
formatting, typically using :meth:`.Operations.inline_literal`.
|
| 275 |
+
|
| 276 |
+
.. note:: the ``literal_binds`` flag is ignored on SQLAlchemy
|
| 277 |
+
versions prior to 0.8 where this feature is not supported.
|
| 278 |
+
|
| 279 |
+
.. seealso::
|
| 280 |
+
|
| 281 |
+
:meth:`.Operations.inline_literal`
|
| 282 |
+
|
| 283 |
+
:param starting_rev: Override the "starting revision" argument
|
| 284 |
+
when using ``--sql`` mode.
|
| 285 |
+
:param tag: a string tag for usage by custom ``env.py`` scripts.
|
| 286 |
+
Set via the ``--tag`` option, can be overridden here.
|
| 287 |
+
:param template_args: dictionary of template arguments which
|
| 288 |
+
will be added to the template argument environment when
|
| 289 |
+
running the "revision" command. Note that the script environment
|
| 290 |
+
is only run within the "revision" command if the --autogenerate
|
| 291 |
+
option is used, or if the option "revision_environment=true"
|
| 292 |
+
is present in the alembic.ini file.
|
| 293 |
+
|
| 294 |
+
:param version_table: The name of the Alembic version table.
|
| 295 |
+
The default is ``'alembic_version'``.
|
| 296 |
+
:param version_table_schema: Optional schema to place version
|
| 297 |
+
table within.
|
| 298 |
+
:param version_table_pk: boolean, whether the Alembic version table
|
| 299 |
+
should use a primary key constraint for the "value" column; this
|
| 300 |
+
only takes effect when the table is first created.
|
| 301 |
+
Defaults to True; setting to False should not be necessary and is
|
| 302 |
+
here for backwards compatibility reasons.
|
| 303 |
+
:param on_version_apply: a callable or collection of callables to be
|
| 304 |
+
run for each migration step.
|
| 305 |
+
The callables will be run in the order they are given, once for
|
| 306 |
+
each migration step, after the respective operation has been
|
| 307 |
+
applied but before its transaction is finalized.
|
| 308 |
+
Each callable accepts no positional arguments and the following
|
| 309 |
+
keyword arguments:
|
| 310 |
+
|
| 311 |
+
* ``ctx``: the :class:`.MigrationContext` running the migration,
|
| 312 |
+
* ``step``: a :class:`.MigrationInfo` representing the
|
| 313 |
+
step currently being applied,
|
| 314 |
+
* ``heads``: a collection of version strings representing the
|
| 315 |
+
current heads,
|
| 316 |
+
* ``run_args``: the ``**kwargs`` passed to :meth:`.run_migrations`.
|
| 317 |
+
|
| 318 |
+
Parameters specific to the autogenerate feature, when
|
| 319 |
+
``alembic revision`` is run with the ``--autogenerate`` feature:
|
| 320 |
+
|
| 321 |
+
:param target_metadata: a :class:`sqlalchemy.schema.MetaData`
|
| 322 |
+
object, or a sequence of :class:`~sqlalchemy.schema.MetaData`
|
| 323 |
+
objects, that will be consulted during autogeneration.
|
| 324 |
+
The tables present in each :class:`~sqlalchemy.schema.MetaData`
|
| 325 |
+
will be compared against
|
| 326 |
+
what is locally available on the target
|
| 327 |
+
:class:`~sqlalchemy.engine.Connection`
|
| 328 |
+
to produce candidate upgrade/downgrade operations.
|
| 329 |
+
:param compare_type: Indicates type comparison behavior during
|
| 330 |
+
an autogenerate
|
| 331 |
+
operation. Defaults to ``True`` turning on type comparison, which
|
| 332 |
+
has good accuracy on most backends. See :ref:`compare_types`
|
| 333 |
+
for an example as well as information on other type
|
| 334 |
+
comparison options. Set to ``False`` which disables type
|
| 335 |
+
comparison. A callable can also be passed to provide custom type
|
| 336 |
+
comparison, see :ref:`compare_types` for additional details.
|
| 337 |
+
|
| 338 |
+
.. versionchanged:: 1.12.0 The default value of
|
| 339 |
+
:paramref:`.EnvironmentContext.configure.compare_type` has been
|
| 340 |
+
changed to ``True``.
|
| 341 |
+
|
| 342 |
+
.. seealso::
|
| 343 |
+
|
| 344 |
+
:ref:`compare_types`
|
| 345 |
+
|
| 346 |
+
:paramref:`.EnvironmentContext.configure.compare_server_default`
|
| 347 |
+
|
| 348 |
+
:param compare_server_default: Indicates server default comparison
|
| 349 |
+
behavior during
|
| 350 |
+
an autogenerate operation. Defaults to ``False`` which disables
|
| 351 |
+
server default
|
| 352 |
+
comparison. Set to ``True`` to turn on server default comparison,
|
| 353 |
+
which has
|
| 354 |
+
varied accuracy depending on backend.
|
| 355 |
+
|
| 356 |
+
To customize server default comparison behavior, a callable may
|
| 357 |
+
be specified
|
| 358 |
+
which can filter server default comparisons during an
|
| 359 |
+
autogenerate operation.
|
| 360 |
+
defaults during an autogenerate operation. The format of this
|
| 361 |
+
callable is::
|
| 362 |
+
|
| 363 |
+
def my_compare_server_default(context, inspected_column,
|
| 364 |
+
metadata_column, inspected_default, metadata_default,
|
| 365 |
+
rendered_metadata_default):
|
| 366 |
+
# return True if the defaults are different,
|
| 367 |
+
# False if not, or None to allow the default implementation
|
| 368 |
+
# to compare these defaults
|
| 369 |
+
return None
|
| 370 |
+
|
| 371 |
+
context.configure(
|
| 372 |
+
# ...
|
| 373 |
+
compare_server_default = my_compare_server_default
|
| 374 |
+
)
|
| 375 |
+
|
| 376 |
+
``inspected_column`` is a dictionary structure as returned by
|
| 377 |
+
:meth:`sqlalchemy.engine.reflection.Inspector.get_columns`, whereas
|
| 378 |
+
``metadata_column`` is a :class:`sqlalchemy.schema.Column` from
|
| 379 |
+
the local model environment.
|
| 380 |
+
|
| 381 |
+
A return value of ``None`` indicates to allow default server default
|
| 382 |
+
comparison
|
| 383 |
+
to proceed. Note that some backends such as Postgresql actually
|
| 384 |
+
execute
|
| 385 |
+
the two defaults on the database side to compare for equivalence.
|
| 386 |
+
|
| 387 |
+
.. seealso::
|
| 388 |
+
|
| 389 |
+
:paramref:`.EnvironmentContext.configure.compare_type`
|
| 390 |
+
|
| 391 |
+
:param include_name: A callable function which is given
|
| 392 |
+
the chance to return ``True`` or ``False`` for any database reflected
|
| 393 |
+
object based on its name, including database schema names when
|
| 394 |
+
the :paramref:`.EnvironmentContext.configure.include_schemas` flag
|
| 395 |
+
is set to ``True``.
|
| 396 |
+
|
| 397 |
+
The function accepts the following positional arguments:
|
| 398 |
+
|
| 399 |
+
* ``name``: the name of the object, such as schema name or table name.
|
| 400 |
+
Will be ``None`` when indicating the default schema name of the
|
| 401 |
+
database connection.
|
| 402 |
+
* ``type``: a string describing the type of object; currently
|
| 403 |
+
``"schema"``, ``"table"``, ``"column"``, ``"index"``,
|
| 404 |
+
``"unique_constraint"``, or ``"foreign_key_constraint"``
|
| 405 |
+
* ``parent_names``: a dictionary of "parent" object names, that are
|
| 406 |
+
relative to the name being given. Keys in this dictionary may
|
| 407 |
+
include: ``"schema_name"``, ``"table_name"`` or
|
| 408 |
+
``"schema_qualified_table_name"``.
|
| 409 |
+
|
| 410 |
+
E.g.::
|
| 411 |
+
|
| 412 |
+
def include_name(name, type_, parent_names):
|
| 413 |
+
if type_ == "schema":
|
| 414 |
+
return name in ["schema_one", "schema_two"]
|
| 415 |
+
else:
|
| 416 |
+
return True
|
| 417 |
+
|
| 418 |
+
context.configure(
|
| 419 |
+
# ...
|
| 420 |
+
include_schemas = True,
|
| 421 |
+
include_name = include_name
|
| 422 |
+
)
|
| 423 |
+
|
| 424 |
+
.. seealso::
|
| 425 |
+
|
| 426 |
+
:ref:`autogenerate_include_hooks`
|
| 427 |
+
|
| 428 |
+
:paramref:`.EnvironmentContext.configure.include_object`
|
| 429 |
+
|
| 430 |
+
:paramref:`.EnvironmentContext.configure.include_schemas`
|
| 431 |
+
|
| 432 |
+
|
| 433 |
+
:param include_object: A callable function which is given
|
| 434 |
+
the chance to return ``True`` or ``False`` for any object,
|
| 435 |
+
indicating if the given object should be considered in the
|
| 436 |
+
autogenerate sweep.
|
| 437 |
+
|
| 438 |
+
The function accepts the following positional arguments:
|
| 439 |
+
|
| 440 |
+
* ``object``: a :class:`~sqlalchemy.schema.SchemaItem` object such
|
| 441 |
+
as a :class:`~sqlalchemy.schema.Table`,
|
| 442 |
+
:class:`~sqlalchemy.schema.Column`,
|
| 443 |
+
:class:`~sqlalchemy.schema.Index`
|
| 444 |
+
:class:`~sqlalchemy.schema.UniqueConstraint`,
|
| 445 |
+
or :class:`~sqlalchemy.schema.ForeignKeyConstraint` object
|
| 446 |
+
* ``name``: the name of the object. This is typically available
|
| 447 |
+
via ``object.name``.
|
| 448 |
+
* ``type``: a string describing the type of object; currently
|
| 449 |
+
``"table"``, ``"column"``, ``"index"``, ``"unique_constraint"``,
|
| 450 |
+
or ``"foreign_key_constraint"``
|
| 451 |
+
* ``reflected``: ``True`` if the given object was produced based on
|
| 452 |
+
table reflection, ``False`` if it's from a local :class:`.MetaData`
|
| 453 |
+
object.
|
| 454 |
+
* ``compare_to``: the object being compared against, if available,
|
| 455 |
+
else ``None``.
|
| 456 |
+
|
| 457 |
+
E.g.::
|
| 458 |
+
|
| 459 |
+
def include_object(object, name, type_, reflected, compare_to):
|
| 460 |
+
if (type_ == "column" and
|
| 461 |
+
not reflected and
|
| 462 |
+
object.info.get("skip_autogenerate", False)):
|
| 463 |
+
return False
|
| 464 |
+
else:
|
| 465 |
+
return True
|
| 466 |
+
|
| 467 |
+
context.configure(
|
| 468 |
+
# ...
|
| 469 |
+
include_object = include_object
|
| 470 |
+
)
|
| 471 |
+
|
| 472 |
+
For the use case of omitting specific schemas from a target database
|
| 473 |
+
when :paramref:`.EnvironmentContext.configure.include_schemas` is
|
| 474 |
+
set to ``True``, the :attr:`~sqlalchemy.schema.Table.schema`
|
| 475 |
+
attribute can be checked for each :class:`~sqlalchemy.schema.Table`
|
| 476 |
+
object passed to the hook, however it is much more efficient
|
| 477 |
+
to filter on schemas before reflection of objects takes place
|
| 478 |
+
using the :paramref:`.EnvironmentContext.configure.include_name`
|
| 479 |
+
hook.
|
| 480 |
+
|
| 481 |
+
.. seealso::
|
| 482 |
+
|
| 483 |
+
:ref:`autogenerate_include_hooks`
|
| 484 |
+
|
| 485 |
+
:paramref:`.EnvironmentContext.configure.include_name`
|
| 486 |
+
|
| 487 |
+
:paramref:`.EnvironmentContext.configure.include_schemas`
|
| 488 |
+
|
| 489 |
+
:param render_as_batch: if True, commands which alter elements
|
| 490 |
+
within a table will be placed under a ``with batch_alter_table():``
|
| 491 |
+
directive, so that batch migrations will take place.
|
| 492 |
+
|
| 493 |
+
.. seealso::
|
| 494 |
+
|
| 495 |
+
:ref:`batch_migrations`
|
| 496 |
+
|
| 497 |
+
:param include_schemas: If True, autogenerate will scan across
|
| 498 |
+
all schemas located by the SQLAlchemy
|
| 499 |
+
:meth:`~sqlalchemy.engine.reflection.Inspector.get_schema_names`
|
| 500 |
+
method, and include all differences in tables found across all
|
| 501 |
+
those schemas. When using this option, you may want to also
|
| 502 |
+
use the :paramref:`.EnvironmentContext.configure.include_name`
|
| 503 |
+
parameter to specify a callable which
|
| 504 |
+
can filter the tables/schemas that get included.
|
| 505 |
+
|
| 506 |
+
.. seealso::
|
| 507 |
+
|
| 508 |
+
:ref:`autogenerate_include_hooks`
|
| 509 |
+
|
| 510 |
+
:paramref:`.EnvironmentContext.configure.include_name`
|
| 511 |
+
|
| 512 |
+
:paramref:`.EnvironmentContext.configure.include_object`
|
| 513 |
+
|
| 514 |
+
:param render_item: Callable that can be used to override how
|
| 515 |
+
any schema item, i.e. column, constraint, type,
|
| 516 |
+
etc., is rendered for autogenerate. The callable receives a
|
| 517 |
+
string describing the type of object, the object, and
|
| 518 |
+
the autogen context. If it returns False, the
|
| 519 |
+
default rendering method will be used. If it returns None,
|
| 520 |
+
the item will not be rendered in the context of a Table
|
| 521 |
+
construct, that is, can be used to skip columns or constraints
|
| 522 |
+
within op.create_table()::
|
| 523 |
+
|
| 524 |
+
def my_render_column(type_, col, autogen_context):
|
| 525 |
+
if type_ == "column" and isinstance(col, MySpecialCol):
|
| 526 |
+
return repr(col)
|
| 527 |
+
else:
|
| 528 |
+
return False
|
| 529 |
+
|
| 530 |
+
context.configure(
|
| 531 |
+
# ...
|
| 532 |
+
render_item = my_render_column
|
| 533 |
+
)
|
| 534 |
+
|
| 535 |
+
Available values for the type string include: ``"column"``,
|
| 536 |
+
``"primary_key"``, ``"foreign_key"``, ``"unique"``, ``"check"``,
|
| 537 |
+
``"type"``, ``"server_default"``.
|
| 538 |
+
|
| 539 |
+
.. seealso::
|
| 540 |
+
|
| 541 |
+
:ref:`autogen_render_types`
|
| 542 |
+
|
| 543 |
+
:param upgrade_token: When autogenerate completes, the text of the
|
| 544 |
+
candidate upgrade operations will be present in this template
|
| 545 |
+
variable when ``script.py.mako`` is rendered. Defaults to
|
| 546 |
+
``upgrades``.
|
| 547 |
+
:param downgrade_token: When autogenerate completes, the text of the
|
| 548 |
+
candidate downgrade operations will be present in this
|
| 549 |
+
template variable when ``script.py.mako`` is rendered. Defaults to
|
| 550 |
+
``downgrades``.
|
| 551 |
+
|
| 552 |
+
:param alembic_module_prefix: When autogenerate refers to Alembic
|
| 553 |
+
:mod:`alembic.operations` constructs, this prefix will be used
|
| 554 |
+
(i.e. ``op.create_table``) Defaults to "``op.``".
|
| 555 |
+
Can be ``None`` to indicate no prefix.
|
| 556 |
+
|
| 557 |
+
:param sqlalchemy_module_prefix: When autogenerate refers to
|
| 558 |
+
SQLAlchemy
|
| 559 |
+
:class:`~sqlalchemy.schema.Column` or type classes, this prefix
|
| 560 |
+
will be used
|
| 561 |
+
(i.e. ``sa.Column("somename", sa.Integer)``) Defaults to "``sa.``".
|
| 562 |
+
Can be ``None`` to indicate no prefix.
|
| 563 |
+
Note that when dialect-specific types are rendered, autogenerate
|
| 564 |
+
will render them using the dialect module name, i.e. ``mssql.BIT()``,
|
| 565 |
+
``postgresql.UUID()``.
|
| 566 |
+
|
| 567 |
+
:param user_module_prefix: When autogenerate refers to a SQLAlchemy
|
| 568 |
+
type (e.g. :class:`.TypeEngine`) where the module name is not
|
| 569 |
+
under the ``sqlalchemy`` namespace, this prefix will be used
|
| 570 |
+
within autogenerate. If left at its default of
|
| 571 |
+
``None``, the ``__module__`` attribute of the type is used to
|
| 572 |
+
render the import module. It's a good practice to set this
|
| 573 |
+
and to have all custom types be available from a fixed module space,
|
| 574 |
+
in order to future-proof migration files against reorganizations
|
| 575 |
+
in modules.
|
| 576 |
+
|
| 577 |
+
.. seealso::
|
| 578 |
+
|
| 579 |
+
:ref:`autogen_module_prefix`
|
| 580 |
+
|
| 581 |
+
:param process_revision_directives: a callable function that will
|
| 582 |
+
be passed a structure representing the end result of an autogenerate
|
| 583 |
+
or plain "revision" operation, which can be manipulated to affect
|
| 584 |
+
how the ``alembic revision`` command ultimately outputs new
|
| 585 |
+
revision scripts. The structure of the callable is::
|
| 586 |
+
|
| 587 |
+
def process_revision_directives(context, revision, directives):
|
| 588 |
+
pass
|
| 589 |
+
|
| 590 |
+
The ``directives`` parameter is a Python list containing
|
| 591 |
+
a single :class:`.MigrationScript` directive, which represents
|
| 592 |
+
the revision file to be generated. This list as well as its
|
| 593 |
+
contents may be freely modified to produce any set of commands.
|
| 594 |
+
The section :ref:`customizing_revision` shows an example of
|
| 595 |
+
doing this. The ``context`` parameter is the
|
| 596 |
+
:class:`.MigrationContext` in use,
|
| 597 |
+
and ``revision`` is a tuple of revision identifiers representing the
|
| 598 |
+
current revision of the database.
|
| 599 |
+
|
| 600 |
+
The callable is invoked at all times when the ``--autogenerate``
|
| 601 |
+
option is passed to ``alembic revision``. If ``--autogenerate``
|
| 602 |
+
is not passed, the callable is invoked only if the
|
| 603 |
+
``revision_environment`` variable is set to True in the Alembic
|
| 604 |
+
configuration, in which case the given ``directives`` collection
|
| 605 |
+
will contain empty :class:`.UpgradeOps` and :class:`.DowngradeOps`
|
| 606 |
+
collections for ``.upgrade_ops`` and ``.downgrade_ops``. The
|
| 607 |
+
``--autogenerate`` option itself can be inferred by inspecting
|
| 608 |
+
``context.config.cmd_opts.autogenerate``.
|
| 609 |
+
|
| 610 |
+
The callable function may optionally be an instance of
|
| 611 |
+
a :class:`.Rewriter` object. This is a helper object that
|
| 612 |
+
assists in the production of autogenerate-stream rewriter functions.
|
| 613 |
+
|
| 614 |
+
.. seealso::
|
| 615 |
+
|
| 616 |
+
:ref:`customizing_revision`
|
| 617 |
+
|
| 618 |
+
:ref:`autogen_rewriter`
|
| 619 |
+
|
| 620 |
+
:paramref:`.command.revision.process_revision_directives`
|
| 621 |
+
|
| 622 |
+
Parameters specific to individual backends:
|
| 623 |
+
|
| 624 |
+
:param mssql_batch_separator: The "batch separator" which will
|
| 625 |
+
be placed between each statement when generating offline SQL Server
|
| 626 |
+
migrations. Defaults to ``GO``. Note this is in addition to the
|
| 627 |
+
customary semicolon ``;`` at the end of each statement; SQL Server
|
| 628 |
+
considers the "batch separator" to denote the end of an
|
| 629 |
+
individual statement execution, and cannot group certain
|
| 630 |
+
dependent operations in one step.
|
| 631 |
+
:param oracle_batch_separator: The "batch separator" which will
|
| 632 |
+
be placed between each statement when generating offline
|
| 633 |
+
Oracle migrations. Defaults to ``/``. Oracle doesn't add a
|
| 634 |
+
semicolon between statements like most other backends.
|
| 635 |
+
|
| 636 |
+
"""
|
| 637 |
+
|
| 638 |
+
def execute(
|
| 639 |
+
sql: Union[Executable, str],
|
| 640 |
+
execution_options: Optional[Dict[str, Any]] = None,
|
| 641 |
+
) -> None:
|
| 642 |
+
"""Execute the given SQL using the current change context.
|
| 643 |
+
|
| 644 |
+
The behavior of :meth:`.execute` is the same
|
| 645 |
+
as that of :meth:`.Operations.execute`. Please see that
|
| 646 |
+
function's documentation for full detail including
|
| 647 |
+
caveats and limitations.
|
| 648 |
+
|
| 649 |
+
This function requires that a :class:`.MigrationContext` has
|
| 650 |
+
first been made available via :meth:`.configure`.
|
| 651 |
+
|
| 652 |
+
"""
|
| 653 |
+
|
| 654 |
+
def get_bind() -> Connection:
|
| 655 |
+
"""Return the current 'bind'.
|
| 656 |
+
|
| 657 |
+
In "online" mode, this is the
|
| 658 |
+
:class:`sqlalchemy.engine.Connection` currently being used
|
| 659 |
+
to emit SQL to the database.
|
| 660 |
+
|
| 661 |
+
This function requires that a :class:`.MigrationContext`
|
| 662 |
+
has first been made available via :meth:`.configure`.
|
| 663 |
+
|
| 664 |
+
"""
|
| 665 |
+
|
| 666 |
+
def get_context() -> MigrationContext:
|
| 667 |
+
"""Return the current :class:`.MigrationContext` object.
|
| 668 |
+
|
| 669 |
+
If :meth:`.EnvironmentContext.configure` has not been
|
| 670 |
+
called yet, raises an exception.
|
| 671 |
+
|
| 672 |
+
"""
|
| 673 |
+
|
| 674 |
+
def get_head_revision() -> Union[str, Tuple[str, ...], None]:
|
| 675 |
+
"""Return the hex identifier of the 'head' script revision.
|
| 676 |
+
|
| 677 |
+
If the script directory has multiple heads, this
|
| 678 |
+
method raises a :class:`.CommandError`;
|
| 679 |
+
:meth:`.EnvironmentContext.get_head_revisions` should be preferred.
|
| 680 |
+
|
| 681 |
+
This function does not require that the :class:`.MigrationContext`
|
| 682 |
+
has been configured.
|
| 683 |
+
|
| 684 |
+
.. seealso:: :meth:`.EnvironmentContext.get_head_revisions`
|
| 685 |
+
|
| 686 |
+
"""
|
| 687 |
+
|
| 688 |
+
def get_head_revisions() -> Union[str, Tuple[str, ...], None]:
|
| 689 |
+
"""Return the hex identifier of the 'heads' script revision(s).
|
| 690 |
+
|
| 691 |
+
This returns a tuple containing the version number of all
|
| 692 |
+
heads in the script directory.
|
| 693 |
+
|
| 694 |
+
This function does not require that the :class:`.MigrationContext`
|
| 695 |
+
has been configured.
|
| 696 |
+
|
| 697 |
+
"""
|
| 698 |
+
|
| 699 |
+
def get_revision_argument() -> Union[str, Tuple[str, ...], None]:
|
| 700 |
+
"""Get the 'destination' revision argument.
|
| 701 |
+
|
| 702 |
+
This is typically the argument passed to the
|
| 703 |
+
``upgrade`` or ``downgrade`` command.
|
| 704 |
+
|
| 705 |
+
If it was specified as ``head``, the actual
|
| 706 |
+
version number is returned; if specified
|
| 707 |
+
as ``base``, ``None`` is returned.
|
| 708 |
+
|
| 709 |
+
This function does not require that the :class:`.MigrationContext`
|
| 710 |
+
has been configured.
|
| 711 |
+
|
| 712 |
+
"""
|
| 713 |
+
|
| 714 |
+
def get_starting_revision_argument() -> Union[str, Tuple[str, ...], None]:
|
| 715 |
+
"""Return the 'starting revision' argument,
|
| 716 |
+
if the revision was passed using ``start:end``.
|
| 717 |
+
|
| 718 |
+
This is only meaningful in "offline" mode.
|
| 719 |
+
Returns ``None`` if no value is available
|
| 720 |
+
or was configured.
|
| 721 |
+
|
| 722 |
+
This function does not require that the :class:`.MigrationContext`
|
| 723 |
+
has been configured.
|
| 724 |
+
|
| 725 |
+
"""
|
| 726 |
+
|
| 727 |
+
def get_tag_argument() -> Optional[str]:
|
| 728 |
+
"""Return the value passed for the ``--tag`` argument, if any.
|
| 729 |
+
|
| 730 |
+
The ``--tag`` argument is not used directly by Alembic,
|
| 731 |
+
but is available for custom ``env.py`` configurations that
|
| 732 |
+
wish to use it; particularly for offline generation scripts
|
| 733 |
+
that wish to generate tagged filenames.
|
| 734 |
+
|
| 735 |
+
This function does not require that the :class:`.MigrationContext`
|
| 736 |
+
has been configured.
|
| 737 |
+
|
| 738 |
+
.. seealso::
|
| 739 |
+
|
| 740 |
+
:meth:`.EnvironmentContext.get_x_argument` - a newer and more
|
| 741 |
+
open ended system of extending ``env.py`` scripts via the command
|
| 742 |
+
line.
|
| 743 |
+
|
| 744 |
+
"""
|
| 745 |
+
|
| 746 |
+
@overload
|
| 747 |
+
def get_x_argument(as_dictionary: Literal[False]) -> List[str]: ...
|
| 748 |
+
@overload
|
| 749 |
+
def get_x_argument(as_dictionary: Literal[True]) -> Dict[str, str]: ...
|
| 750 |
+
@overload
|
| 751 |
+
def get_x_argument(
|
| 752 |
+
as_dictionary: bool = ...,
|
| 753 |
+
) -> Union[List[str], Dict[str, str]]:
|
| 754 |
+
"""Return the value(s) passed for the ``-x`` argument, if any.
|
| 755 |
+
|
| 756 |
+
The ``-x`` argument is an open ended flag that allows any user-defined
|
| 757 |
+
value or values to be passed on the command line, then available
|
| 758 |
+
here for consumption by a custom ``env.py`` script.
|
| 759 |
+
|
| 760 |
+
The return value is a list, returned directly from the ``argparse``
|
| 761 |
+
structure. If ``as_dictionary=True`` is passed, the ``x`` arguments
|
| 762 |
+
are parsed using ``key=value`` format into a dictionary that is
|
| 763 |
+
then returned. If there is no ``=`` in the argument, value is an empty
|
| 764 |
+
string.
|
| 765 |
+
|
| 766 |
+
.. versionchanged:: 1.13.1 Support ``as_dictionary=True`` when
|
| 767 |
+
arguments are passed without the ``=`` symbol.
|
| 768 |
+
|
| 769 |
+
For example, to support passing a database URL on the command line,
|
| 770 |
+
the standard ``env.py`` script can be modified like this::
|
| 771 |
+
|
| 772 |
+
cmd_line_url = context.get_x_argument(
|
| 773 |
+
as_dictionary=True).get('dbname')
|
| 774 |
+
if cmd_line_url:
|
| 775 |
+
engine = create_engine(cmd_line_url)
|
| 776 |
+
else:
|
| 777 |
+
engine = engine_from_config(
|
| 778 |
+
config.get_section(config.config_ini_section),
|
| 779 |
+
prefix='sqlalchemy.',
|
| 780 |
+
poolclass=pool.NullPool)
|
| 781 |
+
|
| 782 |
+
This then takes effect by running the ``alembic`` script as::
|
| 783 |
+
|
| 784 |
+
alembic -x dbname=postgresql://user:pass@host/dbname upgrade head
|
| 785 |
+
|
| 786 |
+
This function does not require that the :class:`.MigrationContext`
|
| 787 |
+
has been configured.
|
| 788 |
+
|
| 789 |
+
.. seealso::
|
| 790 |
+
|
| 791 |
+
:meth:`.EnvironmentContext.get_tag_argument`
|
| 792 |
+
|
| 793 |
+
:attr:`.Config.cmd_opts`
|
| 794 |
+
|
| 795 |
+
"""
|
| 796 |
+
|
| 797 |
+
def is_offline_mode() -> bool:
|
| 798 |
+
"""Return True if the current migrations environment
|
| 799 |
+
is running in "offline mode".
|
| 800 |
+
|
| 801 |
+
This is ``True`` or ``False`` depending
|
| 802 |
+
on the ``--sql`` flag passed.
|
| 803 |
+
|
| 804 |
+
This function does not require that the :class:`.MigrationContext`
|
| 805 |
+
has been configured.
|
| 806 |
+
|
| 807 |
+
"""
|
| 808 |
+
|
| 809 |
+
def is_transactional_ddl() -> bool:
|
| 810 |
+
"""Return True if the context is configured to expect a
|
| 811 |
+
transactional DDL capable backend.
|
| 812 |
+
|
| 813 |
+
This defaults to the type of database in use, and
|
| 814 |
+
can be overridden by the ``transactional_ddl`` argument
|
| 815 |
+
to :meth:`.configure`
|
| 816 |
+
|
| 817 |
+
This function requires that a :class:`.MigrationContext`
|
| 818 |
+
has first been made available via :meth:`.configure`.
|
| 819 |
+
|
| 820 |
+
"""
|
| 821 |
+
|
| 822 |
+
def run_migrations(**kw: Any) -> None:
|
| 823 |
+
"""Run migrations as determined by the current command line
|
| 824 |
+
configuration
|
| 825 |
+
as well as versioning information present (or not) in the current
|
| 826 |
+
database connection (if one is present).
|
| 827 |
+
|
| 828 |
+
The function accepts optional ``**kw`` arguments. If these are
|
| 829 |
+
passed, they are sent directly to the ``upgrade()`` and
|
| 830 |
+
``downgrade()``
|
| 831 |
+
functions within each target revision file. By modifying the
|
| 832 |
+
``script.py.mako`` file so that the ``upgrade()`` and ``downgrade()``
|
| 833 |
+
functions accept arguments, parameters can be passed here so that
|
| 834 |
+
contextual information, usually information to identify a particular
|
| 835 |
+
database in use, can be passed from a custom ``env.py`` script
|
| 836 |
+
to the migration functions.
|
| 837 |
+
|
| 838 |
+
This function requires that a :class:`.MigrationContext` has
|
| 839 |
+
first been made available via :meth:`.configure`.
|
| 840 |
+
|
| 841 |
+
"""
|
| 842 |
+
|
| 843 |
+
script: ScriptDirectory
|
| 844 |
+
|
| 845 |
+
def static_output(text: str) -> None:
|
| 846 |
+
"""Emit text directly to the "offline" SQL stream.
|
| 847 |
+
|
| 848 |
+
Typically this is for emitting comments that
|
| 849 |
+
start with --. The statement is not treated
|
| 850 |
+
as a SQL execution, no ; or batch separator
|
| 851 |
+
is added, etc.
|
| 852 |
+
|
| 853 |
+
"""
|
pgsql/pgAdmin 4/python/Lib/site-packages/alembic/environment.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
from .runtime.environment import * # noqa
|
pgsql/pgAdmin 4/python/Lib/site-packages/alembic/migration.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
from .runtime.migration import * # noqa
|
pgsql/pgAdmin 4/python/Lib/site-packages/alembic/op.py
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from .operations.base import Operations
|
| 2 |
+
|
| 3 |
+
# create proxy functions for
|
| 4 |
+
# each method on the Operations class.
|
| 5 |
+
Operations.create_module_class_proxy(globals(), locals())
|
pgsql/pgAdmin 4/python/Lib/site-packages/alembic/op.pyi
ADDED
|
@@ -0,0 +1,1321 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ### this file stubs are generated by tools/write_pyi.py - do not edit ###
|
| 2 |
+
# ### imports are manually managed
|
| 3 |
+
from __future__ import annotations
|
| 4 |
+
|
| 5 |
+
from contextlib import contextmanager
|
| 6 |
+
from typing import Any
|
| 7 |
+
from typing import Awaitable
|
| 8 |
+
from typing import Callable
|
| 9 |
+
from typing import Dict
|
| 10 |
+
from typing import Iterator
|
| 11 |
+
from typing import List
|
| 12 |
+
from typing import Literal
|
| 13 |
+
from typing import Mapping
|
| 14 |
+
from typing import Optional
|
| 15 |
+
from typing import overload
|
| 16 |
+
from typing import Sequence
|
| 17 |
+
from typing import Tuple
|
| 18 |
+
from typing import Type
|
| 19 |
+
from typing import TYPE_CHECKING
|
| 20 |
+
from typing import TypeVar
|
| 21 |
+
from typing import Union
|
| 22 |
+
|
| 23 |
+
if TYPE_CHECKING:
|
| 24 |
+
from sqlalchemy.engine import Connection
|
| 25 |
+
from sqlalchemy.sql import Executable
|
| 26 |
+
from sqlalchemy.sql.elements import ColumnElement
|
| 27 |
+
from sqlalchemy.sql.elements import conv
|
| 28 |
+
from sqlalchemy.sql.elements import TextClause
|
| 29 |
+
from sqlalchemy.sql.expression import TableClause
|
| 30 |
+
from sqlalchemy.sql.functions import Function
|
| 31 |
+
from sqlalchemy.sql.schema import Column
|
| 32 |
+
from sqlalchemy.sql.schema import Computed
|
| 33 |
+
from sqlalchemy.sql.schema import Identity
|
| 34 |
+
from sqlalchemy.sql.schema import SchemaItem
|
| 35 |
+
from sqlalchemy.sql.schema import Table
|
| 36 |
+
from sqlalchemy.sql.type_api import TypeEngine
|
| 37 |
+
from sqlalchemy.util import immutabledict
|
| 38 |
+
|
| 39 |
+
from .operations.base import BatchOperations
|
| 40 |
+
from .operations.ops import AddColumnOp
|
| 41 |
+
from .operations.ops import AddConstraintOp
|
| 42 |
+
from .operations.ops import AlterColumnOp
|
| 43 |
+
from .operations.ops import AlterTableOp
|
| 44 |
+
from .operations.ops import BulkInsertOp
|
| 45 |
+
from .operations.ops import CreateIndexOp
|
| 46 |
+
from .operations.ops import CreateTableCommentOp
|
| 47 |
+
from .operations.ops import CreateTableOp
|
| 48 |
+
from .operations.ops import DropColumnOp
|
| 49 |
+
from .operations.ops import DropConstraintOp
|
| 50 |
+
from .operations.ops import DropIndexOp
|
| 51 |
+
from .operations.ops import DropTableCommentOp
|
| 52 |
+
from .operations.ops import DropTableOp
|
| 53 |
+
from .operations.ops import ExecuteSQLOp
|
| 54 |
+
from .operations.ops import MigrateOperation
|
| 55 |
+
from .runtime.migration import MigrationContext
|
| 56 |
+
from .util.sqla_compat import _literal_bindparam
|
| 57 |
+
|
| 58 |
+
_T = TypeVar("_T")
|
| 59 |
+
_C = TypeVar("_C", bound=Callable[..., Any])
|
| 60 |
+
|
| 61 |
+
### end imports ###
|
| 62 |
+
|
| 63 |
+
def add_column(
|
| 64 |
+
table_name: str, column: Column[Any], *, schema: Optional[str] = None
|
| 65 |
+
) -> None:
|
| 66 |
+
"""Issue an "add column" instruction using the current
|
| 67 |
+
migration context.
|
| 68 |
+
|
| 69 |
+
e.g.::
|
| 70 |
+
|
| 71 |
+
from alembic import op
|
| 72 |
+
from sqlalchemy import Column, String
|
| 73 |
+
|
| 74 |
+
op.add_column("organization", Column("name", String()))
|
| 75 |
+
|
| 76 |
+
The :meth:`.Operations.add_column` method typically corresponds
|
| 77 |
+
to the SQL command "ALTER TABLE... ADD COLUMN". Within the scope
|
| 78 |
+
of this command, the column's name, datatype, nullability,
|
| 79 |
+
and optional server-generated defaults may be indicated.
|
| 80 |
+
|
| 81 |
+
.. note::
|
| 82 |
+
|
| 83 |
+
With the exception of NOT NULL constraints or single-column FOREIGN
|
| 84 |
+
KEY constraints, other kinds of constraints such as PRIMARY KEY,
|
| 85 |
+
UNIQUE or CHECK constraints **cannot** be generated using this
|
| 86 |
+
method; for these constraints, refer to operations such as
|
| 87 |
+
:meth:`.Operations.create_primary_key` and
|
| 88 |
+
:meth:`.Operations.create_check_constraint`. In particular, the
|
| 89 |
+
following :class:`~sqlalchemy.schema.Column` parameters are
|
| 90 |
+
**ignored**:
|
| 91 |
+
|
| 92 |
+
* :paramref:`~sqlalchemy.schema.Column.primary_key` - SQL databases
|
| 93 |
+
typically do not support an ALTER operation that can add
|
| 94 |
+
individual columns one at a time to an existing primary key
|
| 95 |
+
constraint, therefore it's less ambiguous to use the
|
| 96 |
+
:meth:`.Operations.create_primary_key` method, which assumes no
|
| 97 |
+
existing primary key constraint is present.
|
| 98 |
+
* :paramref:`~sqlalchemy.schema.Column.unique` - use the
|
| 99 |
+
:meth:`.Operations.create_unique_constraint` method
|
| 100 |
+
* :paramref:`~sqlalchemy.schema.Column.index` - use the
|
| 101 |
+
:meth:`.Operations.create_index` method
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
The provided :class:`~sqlalchemy.schema.Column` object may include a
|
| 105 |
+
:class:`~sqlalchemy.schema.ForeignKey` constraint directive,
|
| 106 |
+
referencing a remote table name. For this specific type of constraint,
|
| 107 |
+
Alembic will automatically emit a second ALTER statement in order to
|
| 108 |
+
add the single-column FOREIGN KEY constraint separately::
|
| 109 |
+
|
| 110 |
+
from alembic import op
|
| 111 |
+
from sqlalchemy import Column, INTEGER, ForeignKey
|
| 112 |
+
|
| 113 |
+
op.add_column(
|
| 114 |
+
"organization",
|
| 115 |
+
Column("account_id", INTEGER, ForeignKey("accounts.id")),
|
| 116 |
+
)
|
| 117 |
+
|
| 118 |
+
The column argument passed to :meth:`.Operations.add_column` is a
|
| 119 |
+
:class:`~sqlalchemy.schema.Column` construct, used in the same way it's
|
| 120 |
+
used in SQLAlchemy. In particular, values or functions to be indicated
|
| 121 |
+
as producing the column's default value on the database side are
|
| 122 |
+
specified using the ``server_default`` parameter, and not ``default``
|
| 123 |
+
which only specifies Python-side defaults::
|
| 124 |
+
|
| 125 |
+
from alembic import op
|
| 126 |
+
from sqlalchemy import Column, TIMESTAMP, func
|
| 127 |
+
|
| 128 |
+
# specify "DEFAULT NOW" along with the column add
|
| 129 |
+
op.add_column(
|
| 130 |
+
"account",
|
| 131 |
+
Column("timestamp", TIMESTAMP, server_default=func.now()),
|
| 132 |
+
)
|
| 133 |
+
|
| 134 |
+
:param table_name: String name of the parent table.
|
| 135 |
+
:param column: a :class:`sqlalchemy.schema.Column` object
|
| 136 |
+
representing the new column.
|
| 137 |
+
:param schema: Optional schema name to operate within. To control
|
| 138 |
+
quoting of the schema outside of the default behavior, use
|
| 139 |
+
the SQLAlchemy construct
|
| 140 |
+
:class:`~sqlalchemy.sql.elements.quoted_name`.
|
| 141 |
+
|
| 142 |
+
"""
|
| 143 |
+
|
| 144 |
+
def alter_column(
|
| 145 |
+
table_name: str,
|
| 146 |
+
column_name: str,
|
| 147 |
+
*,
|
| 148 |
+
nullable: Optional[bool] = None,
|
| 149 |
+
comment: Union[str, Literal[False], None] = False,
|
| 150 |
+
server_default: Any = False,
|
| 151 |
+
new_column_name: Optional[str] = None,
|
| 152 |
+
type_: Union[TypeEngine[Any], Type[TypeEngine[Any]], None] = None,
|
| 153 |
+
existing_type: Union[TypeEngine[Any], Type[TypeEngine[Any]], None] = None,
|
| 154 |
+
existing_server_default: Union[
|
| 155 |
+
str, bool, Identity, Computed, None
|
| 156 |
+
] = False,
|
| 157 |
+
existing_nullable: Optional[bool] = None,
|
| 158 |
+
existing_comment: Optional[str] = None,
|
| 159 |
+
schema: Optional[str] = None,
|
| 160 |
+
**kw: Any,
|
| 161 |
+
) -> None:
|
| 162 |
+
r"""Issue an "alter column" instruction using the
|
| 163 |
+
current migration context.
|
| 164 |
+
|
| 165 |
+
Generally, only that aspect of the column which
|
| 166 |
+
is being changed, i.e. name, type, nullability,
|
| 167 |
+
default, needs to be specified. Multiple changes
|
| 168 |
+
can also be specified at once and the backend should
|
| 169 |
+
"do the right thing", emitting each change either
|
| 170 |
+
separately or together as the backend allows.
|
| 171 |
+
|
| 172 |
+
MySQL has special requirements here, since MySQL
|
| 173 |
+
cannot ALTER a column without a full specification.
|
| 174 |
+
When producing MySQL-compatible migration files,
|
| 175 |
+
it is recommended that the ``existing_type``,
|
| 176 |
+
``existing_server_default``, and ``existing_nullable``
|
| 177 |
+
parameters be present, if not being altered.
|
| 178 |
+
|
| 179 |
+
Type changes which are against the SQLAlchemy
|
| 180 |
+
"schema" types :class:`~sqlalchemy.types.Boolean`
|
| 181 |
+
and :class:`~sqlalchemy.types.Enum` may also
|
| 182 |
+
add or drop constraints which accompany those
|
| 183 |
+
types on backends that don't support them natively.
|
| 184 |
+
The ``existing_type`` argument is
|
| 185 |
+
used in this case to identify and remove a previous
|
| 186 |
+
constraint that was bound to the type object.
|
| 187 |
+
|
| 188 |
+
:param table_name: string name of the target table.
|
| 189 |
+
:param column_name: string name of the target column,
|
| 190 |
+
as it exists before the operation begins.
|
| 191 |
+
:param nullable: Optional; specify ``True`` or ``False``
|
| 192 |
+
to alter the column's nullability.
|
| 193 |
+
:param server_default: Optional; specify a string
|
| 194 |
+
SQL expression, :func:`~sqlalchemy.sql.expression.text`,
|
| 195 |
+
or :class:`~sqlalchemy.schema.DefaultClause` to indicate
|
| 196 |
+
an alteration to the column's default value.
|
| 197 |
+
Set to ``None`` to have the default removed.
|
| 198 |
+
:param comment: optional string text of a new comment to add to the
|
| 199 |
+
column.
|
| 200 |
+
:param new_column_name: Optional; specify a string name here to
|
| 201 |
+
indicate the new name within a column rename operation.
|
| 202 |
+
:param type\_: Optional; a :class:`~sqlalchemy.types.TypeEngine`
|
| 203 |
+
type object to specify a change to the column's type.
|
| 204 |
+
For SQLAlchemy types that also indicate a constraint (i.e.
|
| 205 |
+
:class:`~sqlalchemy.types.Boolean`, :class:`~sqlalchemy.types.Enum`),
|
| 206 |
+
the constraint is also generated.
|
| 207 |
+
:param autoincrement: set the ``AUTO_INCREMENT`` flag of the column;
|
| 208 |
+
currently understood by the MySQL dialect.
|
| 209 |
+
:param existing_type: Optional; a
|
| 210 |
+
:class:`~sqlalchemy.types.TypeEngine`
|
| 211 |
+
type object to specify the previous type. This
|
| 212 |
+
is required for all MySQL column alter operations that
|
| 213 |
+
don't otherwise specify a new type, as well as for
|
| 214 |
+
when nullability is being changed on a SQL Server
|
| 215 |
+
column. It is also used if the type is a so-called
|
| 216 |
+
SQLAlchemy "schema" type which may define a constraint (i.e.
|
| 217 |
+
:class:`~sqlalchemy.types.Boolean`,
|
| 218 |
+
:class:`~sqlalchemy.types.Enum`),
|
| 219 |
+
so that the constraint can be dropped.
|
| 220 |
+
:param existing_server_default: Optional; The existing
|
| 221 |
+
default value of the column. Required on MySQL if
|
| 222 |
+
an existing default is not being changed; else MySQL
|
| 223 |
+
removes the default.
|
| 224 |
+
:param existing_nullable: Optional; the existing nullability
|
| 225 |
+
of the column. Required on MySQL if the existing nullability
|
| 226 |
+
is not being changed; else MySQL sets this to NULL.
|
| 227 |
+
:param existing_autoincrement: Optional; the existing autoincrement
|
| 228 |
+
of the column. Used for MySQL's system of altering a column
|
| 229 |
+
that specifies ``AUTO_INCREMENT``.
|
| 230 |
+
:param existing_comment: string text of the existing comment on the
|
| 231 |
+
column to be maintained. Required on MySQL if the existing comment
|
| 232 |
+
on the column is not being changed.
|
| 233 |
+
:param schema: Optional schema name to operate within. To control
|
| 234 |
+
quoting of the schema outside of the default behavior, use
|
| 235 |
+
the SQLAlchemy construct
|
| 236 |
+
:class:`~sqlalchemy.sql.elements.quoted_name`.
|
| 237 |
+
:param postgresql_using: String argument which will indicate a
|
| 238 |
+
SQL expression to render within the Postgresql-specific USING clause
|
| 239 |
+
within ALTER COLUMN. This string is taken directly as raw SQL which
|
| 240 |
+
must explicitly include any necessary quoting or escaping of tokens
|
| 241 |
+
within the expression.
|
| 242 |
+
|
| 243 |
+
"""
|
| 244 |
+
|
| 245 |
+
@contextmanager
|
| 246 |
+
def batch_alter_table(
|
| 247 |
+
table_name: str,
|
| 248 |
+
schema: Optional[str] = None,
|
| 249 |
+
recreate: Literal["auto", "always", "never"] = "auto",
|
| 250 |
+
partial_reordering: Optional[Tuple[Any, ...]] = None,
|
| 251 |
+
copy_from: Optional[Table] = None,
|
| 252 |
+
table_args: Tuple[Any, ...] = (),
|
| 253 |
+
table_kwargs: Mapping[str, Any] = immutabledict({}),
|
| 254 |
+
reflect_args: Tuple[Any, ...] = (),
|
| 255 |
+
reflect_kwargs: Mapping[str, Any] = immutabledict({}),
|
| 256 |
+
naming_convention: Optional[Dict[str, str]] = None,
|
| 257 |
+
) -> Iterator[BatchOperations]:
|
| 258 |
+
"""Invoke a series of per-table migrations in batch.
|
| 259 |
+
|
| 260 |
+
Batch mode allows a series of operations specific to a table
|
| 261 |
+
to be syntactically grouped together, and allows for alternate
|
| 262 |
+
modes of table migration, in particular the "recreate" style of
|
| 263 |
+
migration required by SQLite.
|
| 264 |
+
|
| 265 |
+
"recreate" style is as follows:
|
| 266 |
+
|
| 267 |
+
1. A new table is created with the new specification, based on the
|
| 268 |
+
migration directives within the batch, using a temporary name.
|
| 269 |
+
|
| 270 |
+
2. the data copied from the existing table to the new table.
|
| 271 |
+
|
| 272 |
+
3. the existing table is dropped.
|
| 273 |
+
|
| 274 |
+
4. the new table is renamed to the existing table name.
|
| 275 |
+
|
| 276 |
+
The directive by default will only use "recreate" style on the
|
| 277 |
+
SQLite backend, and only if directives are present which require
|
| 278 |
+
this form, e.g. anything other than ``add_column()``. The batch
|
| 279 |
+
operation on other backends will proceed using standard ALTER TABLE
|
| 280 |
+
operations.
|
| 281 |
+
|
| 282 |
+
The method is used as a context manager, which returns an instance
|
| 283 |
+
of :class:`.BatchOperations`; this object is the same as
|
| 284 |
+
:class:`.Operations` except that table names and schema names
|
| 285 |
+
are omitted. E.g.::
|
| 286 |
+
|
| 287 |
+
with op.batch_alter_table("some_table") as batch_op:
|
| 288 |
+
batch_op.add_column(Column("foo", Integer))
|
| 289 |
+
batch_op.drop_column("bar")
|
| 290 |
+
|
| 291 |
+
The operations within the context manager are invoked at once
|
| 292 |
+
when the context is ended. When run against SQLite, if the
|
| 293 |
+
migrations include operations not supported by SQLite's ALTER TABLE,
|
| 294 |
+
the entire table will be copied to a new one with the new
|
| 295 |
+
specification, moving all data across as well.
|
| 296 |
+
|
| 297 |
+
The copy operation by default uses reflection to retrieve the current
|
| 298 |
+
structure of the table, and therefore :meth:`.batch_alter_table`
|
| 299 |
+
in this mode requires that the migration is run in "online" mode.
|
| 300 |
+
The ``copy_from`` parameter may be passed which refers to an existing
|
| 301 |
+
:class:`.Table` object, which will bypass this reflection step.
|
| 302 |
+
|
| 303 |
+
.. note:: The table copy operation will currently not copy
|
| 304 |
+
CHECK constraints, and may not copy UNIQUE constraints that are
|
| 305 |
+
unnamed, as is possible on SQLite. See the section
|
| 306 |
+
:ref:`sqlite_batch_constraints` for workarounds.
|
| 307 |
+
|
| 308 |
+
:param table_name: name of table
|
| 309 |
+
:param schema: optional schema name.
|
| 310 |
+
:param recreate: under what circumstances the table should be
|
| 311 |
+
recreated. At its default of ``"auto"``, the SQLite dialect will
|
| 312 |
+
recreate the table if any operations other than ``add_column()``,
|
| 313 |
+
``create_index()``, or ``drop_index()`` are
|
| 314 |
+
present. Other options include ``"always"`` and ``"never"``.
|
| 315 |
+
:param copy_from: optional :class:`~sqlalchemy.schema.Table` object
|
| 316 |
+
that will act as the structure of the table being copied. If omitted,
|
| 317 |
+
table reflection is used to retrieve the structure of the table.
|
| 318 |
+
|
| 319 |
+
.. seealso::
|
| 320 |
+
|
| 321 |
+
:ref:`batch_offline_mode`
|
| 322 |
+
|
| 323 |
+
:paramref:`~.Operations.batch_alter_table.reflect_args`
|
| 324 |
+
|
| 325 |
+
:paramref:`~.Operations.batch_alter_table.reflect_kwargs`
|
| 326 |
+
|
| 327 |
+
:param reflect_args: a sequence of additional positional arguments that
|
| 328 |
+
will be applied to the table structure being reflected / copied;
|
| 329 |
+
this may be used to pass column and constraint overrides to the
|
| 330 |
+
table that will be reflected, in lieu of passing the whole
|
| 331 |
+
:class:`~sqlalchemy.schema.Table` using
|
| 332 |
+
:paramref:`~.Operations.batch_alter_table.copy_from`.
|
| 333 |
+
:param reflect_kwargs: a dictionary of additional keyword arguments
|
| 334 |
+
that will be applied to the table structure being copied; this may be
|
| 335 |
+
used to pass additional table and reflection options to the table that
|
| 336 |
+
will be reflected, in lieu of passing the whole
|
| 337 |
+
:class:`~sqlalchemy.schema.Table` using
|
| 338 |
+
:paramref:`~.Operations.batch_alter_table.copy_from`.
|
| 339 |
+
:param table_args: a sequence of additional positional arguments that
|
| 340 |
+
will be applied to the new :class:`~sqlalchemy.schema.Table` when
|
| 341 |
+
created, in addition to those copied from the source table.
|
| 342 |
+
This may be used to provide additional constraints such as CHECK
|
| 343 |
+
constraints that may not be reflected.
|
| 344 |
+
:param table_kwargs: a dictionary of additional keyword arguments
|
| 345 |
+
that will be applied to the new :class:`~sqlalchemy.schema.Table`
|
| 346 |
+
when created, in addition to those copied from the source table.
|
| 347 |
+
This may be used to provide for additional table options that may
|
| 348 |
+
not be reflected.
|
| 349 |
+
:param naming_convention: a naming convention dictionary of the form
|
| 350 |
+
described at :ref:`autogen_naming_conventions` which will be applied
|
| 351 |
+
to the :class:`~sqlalchemy.schema.MetaData` during the reflection
|
| 352 |
+
process. This is typically required if one wants to drop SQLite
|
| 353 |
+
constraints, as these constraints will not have names when
|
| 354 |
+
reflected on this backend. Requires SQLAlchemy **0.9.4** or greater.
|
| 355 |
+
|
| 356 |
+
.. seealso::
|
| 357 |
+
|
| 358 |
+
:ref:`dropping_sqlite_foreign_keys`
|
| 359 |
+
|
| 360 |
+
:param partial_reordering: a list of tuples, each suggesting a desired
|
| 361 |
+
ordering of two or more columns in the newly created table. Requires
|
| 362 |
+
that :paramref:`.batch_alter_table.recreate` is set to ``"always"``.
|
| 363 |
+
Examples, given a table with columns "a", "b", "c", and "d":
|
| 364 |
+
|
| 365 |
+
Specify the order of all columns::
|
| 366 |
+
|
| 367 |
+
with op.batch_alter_table(
|
| 368 |
+
"some_table",
|
| 369 |
+
recreate="always",
|
| 370 |
+
partial_reordering=[("c", "d", "a", "b")],
|
| 371 |
+
) as batch_op:
|
| 372 |
+
pass
|
| 373 |
+
|
| 374 |
+
Ensure "d" appears before "c", and "b", appears before "a"::
|
| 375 |
+
|
| 376 |
+
with op.batch_alter_table(
|
| 377 |
+
"some_table",
|
| 378 |
+
recreate="always",
|
| 379 |
+
partial_reordering=[("d", "c"), ("b", "a")],
|
| 380 |
+
) as batch_op:
|
| 381 |
+
pass
|
| 382 |
+
|
| 383 |
+
The ordering of columns not included in the partial_reordering
|
| 384 |
+
set is undefined. Therefore it is best to specify the complete
|
| 385 |
+
ordering of all columns for best results.
|
| 386 |
+
|
| 387 |
+
.. note:: batch mode requires SQLAlchemy 0.8 or above.
|
| 388 |
+
|
| 389 |
+
.. seealso::
|
| 390 |
+
|
| 391 |
+
:ref:`batch_migrations`
|
| 392 |
+
|
| 393 |
+
"""
|
| 394 |
+
|
| 395 |
+
def bulk_insert(
|
| 396 |
+
table: Union[Table, TableClause],
|
| 397 |
+
rows: List[Dict[str, Any]],
|
| 398 |
+
*,
|
| 399 |
+
multiinsert: bool = True,
|
| 400 |
+
) -> None:
|
| 401 |
+
"""Issue a "bulk insert" operation using the current
|
| 402 |
+
migration context.
|
| 403 |
+
|
| 404 |
+
This provides a means of representing an INSERT of multiple rows
|
| 405 |
+
which works equally well in the context of executing on a live
|
| 406 |
+
connection as well as that of generating a SQL script. In the
|
| 407 |
+
case of a SQL script, the values are rendered inline into the
|
| 408 |
+
statement.
|
| 409 |
+
|
| 410 |
+
e.g.::
|
| 411 |
+
|
| 412 |
+
from alembic import op
|
| 413 |
+
from datetime import date
|
| 414 |
+
from sqlalchemy.sql import table, column
|
| 415 |
+
from sqlalchemy import String, Integer, Date
|
| 416 |
+
|
| 417 |
+
# Create an ad-hoc table to use for the insert statement.
|
| 418 |
+
accounts_table = table(
|
| 419 |
+
"account",
|
| 420 |
+
column("id", Integer),
|
| 421 |
+
column("name", String),
|
| 422 |
+
column("create_date", Date),
|
| 423 |
+
)
|
| 424 |
+
|
| 425 |
+
op.bulk_insert(
|
| 426 |
+
accounts_table,
|
| 427 |
+
[
|
| 428 |
+
{
|
| 429 |
+
"id": 1,
|
| 430 |
+
"name": "John Smith",
|
| 431 |
+
"create_date": date(2010, 10, 5),
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"id": 2,
|
| 435 |
+
"name": "Ed Williams",
|
| 436 |
+
"create_date": date(2007, 5, 27),
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"id": 3,
|
| 440 |
+
"name": "Wendy Jones",
|
| 441 |
+
"create_date": date(2008, 8, 15),
|
| 442 |
+
},
|
| 443 |
+
],
|
| 444 |
+
)
|
| 445 |
+
|
| 446 |
+
When using --sql mode, some datatypes may not render inline
|
| 447 |
+
automatically, such as dates and other special types. When this
|
| 448 |
+
issue is present, :meth:`.Operations.inline_literal` may be used::
|
| 449 |
+
|
| 450 |
+
op.bulk_insert(
|
| 451 |
+
accounts_table,
|
| 452 |
+
[
|
| 453 |
+
{
|
| 454 |
+
"id": 1,
|
| 455 |
+
"name": "John Smith",
|
| 456 |
+
"create_date": op.inline_literal("2010-10-05"),
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"id": 2,
|
| 460 |
+
"name": "Ed Williams",
|
| 461 |
+
"create_date": op.inline_literal("2007-05-27"),
|
| 462 |
+
},
|
| 463 |
+
{
|
| 464 |
+
"id": 3,
|
| 465 |
+
"name": "Wendy Jones",
|
| 466 |
+
"create_date": op.inline_literal("2008-08-15"),
|
| 467 |
+
},
|
| 468 |
+
],
|
| 469 |
+
multiinsert=False,
|
| 470 |
+
)
|
| 471 |
+
|
| 472 |
+
When using :meth:`.Operations.inline_literal` in conjunction with
|
| 473 |
+
:meth:`.Operations.bulk_insert`, in order for the statement to work
|
| 474 |
+
in "online" (e.g. non --sql) mode, the
|
| 475 |
+
:paramref:`~.Operations.bulk_insert.multiinsert`
|
| 476 |
+
flag should be set to ``False``, which will have the effect of
|
| 477 |
+
individual INSERT statements being emitted to the database, each
|
| 478 |
+
with a distinct VALUES clause, so that the "inline" values can
|
| 479 |
+
still be rendered, rather than attempting to pass the values
|
| 480 |
+
as bound parameters.
|
| 481 |
+
|
| 482 |
+
:param table: a table object which represents the target of the INSERT.
|
| 483 |
+
|
| 484 |
+
:param rows: a list of dictionaries indicating rows.
|
| 485 |
+
|
| 486 |
+
:param multiinsert: when at its default of True and --sql mode is not
|
| 487 |
+
enabled, the INSERT statement will be executed using
|
| 488 |
+
"executemany()" style, where all elements in the list of
|
| 489 |
+
dictionaries are passed as bound parameters in a single
|
| 490 |
+
list. Setting this to False results in individual INSERT
|
| 491 |
+
statements being emitted per parameter set, and is needed
|
| 492 |
+
in those cases where non-literal values are present in the
|
| 493 |
+
parameter sets.
|
| 494 |
+
|
| 495 |
+
"""
|
| 496 |
+
|
| 497 |
+
def create_check_constraint(
|
| 498 |
+
constraint_name: Optional[str],
|
| 499 |
+
table_name: str,
|
| 500 |
+
condition: Union[str, ColumnElement[bool], TextClause],
|
| 501 |
+
*,
|
| 502 |
+
schema: Optional[str] = None,
|
| 503 |
+
**kw: Any,
|
| 504 |
+
) -> None:
|
| 505 |
+
"""Issue a "create check constraint" instruction using the
|
| 506 |
+
current migration context.
|
| 507 |
+
|
| 508 |
+
e.g.::
|
| 509 |
+
|
| 510 |
+
from alembic import op
|
| 511 |
+
from sqlalchemy.sql import column, func
|
| 512 |
+
|
| 513 |
+
op.create_check_constraint(
|
| 514 |
+
"ck_user_name_len",
|
| 515 |
+
"user",
|
| 516 |
+
func.len(column("name")) > 5,
|
| 517 |
+
)
|
| 518 |
+
|
| 519 |
+
CHECK constraints are usually against a SQL expression, so ad-hoc
|
| 520 |
+
table metadata is usually needed. The function will convert the given
|
| 521 |
+
arguments into a :class:`sqlalchemy.schema.CheckConstraint` bound
|
| 522 |
+
to an anonymous table in order to emit the CREATE statement.
|
| 523 |
+
|
| 524 |
+
:param name: Name of the check constraint. The name is necessary
|
| 525 |
+
so that an ALTER statement can be emitted. For setups that
|
| 526 |
+
use an automated naming scheme such as that described at
|
| 527 |
+
:ref:`sqla:constraint_naming_conventions`,
|
| 528 |
+
``name`` here can be ``None``, as the event listener will
|
| 529 |
+
apply the name to the constraint object when it is associated
|
| 530 |
+
with the table.
|
| 531 |
+
:param table_name: String name of the source table.
|
| 532 |
+
:param condition: SQL expression that's the condition of the
|
| 533 |
+
constraint. Can be a string or SQLAlchemy expression language
|
| 534 |
+
structure.
|
| 535 |
+
:param deferrable: optional bool. If set, emit DEFERRABLE or
|
| 536 |
+
NOT DEFERRABLE when issuing DDL for this constraint.
|
| 537 |
+
:param initially: optional string. If set, emit INITIALLY <value>
|
| 538 |
+
when issuing DDL for this constraint.
|
| 539 |
+
:param schema: Optional schema name to operate within. To control
|
| 540 |
+
quoting of the schema outside of the default behavior, use
|
| 541 |
+
the SQLAlchemy construct
|
| 542 |
+
:class:`~sqlalchemy.sql.elements.quoted_name`.
|
| 543 |
+
|
| 544 |
+
"""
|
| 545 |
+
|
| 546 |
+
def create_exclude_constraint(
|
| 547 |
+
constraint_name: str, table_name: str, *elements: Any, **kw: Any
|
| 548 |
+
) -> Optional[Table]:
|
| 549 |
+
"""Issue an alter to create an EXCLUDE constraint using the
|
| 550 |
+
current migration context.
|
| 551 |
+
|
| 552 |
+
.. note:: This method is Postgresql specific, and additionally
|
| 553 |
+
requires at least SQLAlchemy 1.0.
|
| 554 |
+
|
| 555 |
+
e.g.::
|
| 556 |
+
|
| 557 |
+
from alembic import op
|
| 558 |
+
|
| 559 |
+
op.create_exclude_constraint(
|
| 560 |
+
"user_excl",
|
| 561 |
+
"user",
|
| 562 |
+
("period", "&&"),
|
| 563 |
+
("group", "="),
|
| 564 |
+
where=("group != 'some group'"),
|
| 565 |
+
)
|
| 566 |
+
|
| 567 |
+
Note that the expressions work the same way as that of
|
| 568 |
+
the ``ExcludeConstraint`` object itself; if plain strings are
|
| 569 |
+
passed, quoting rules must be applied manually.
|
| 570 |
+
|
| 571 |
+
:param name: Name of the constraint.
|
| 572 |
+
:param table_name: String name of the source table.
|
| 573 |
+
:param elements: exclude conditions.
|
| 574 |
+
:param where: SQL expression or SQL string with optional WHERE
|
| 575 |
+
clause.
|
| 576 |
+
:param deferrable: optional bool. If set, emit DEFERRABLE or
|
| 577 |
+
NOT DEFERRABLE when issuing DDL for this constraint.
|
| 578 |
+
:param initially: optional string. If set, emit INITIALLY <value>
|
| 579 |
+
when issuing DDL for this constraint.
|
| 580 |
+
:param schema: Optional schema name to operate within.
|
| 581 |
+
|
| 582 |
+
"""
|
| 583 |
+
|
| 584 |
+
def create_foreign_key(
|
| 585 |
+
constraint_name: Optional[str],
|
| 586 |
+
source_table: str,
|
| 587 |
+
referent_table: str,
|
| 588 |
+
local_cols: List[str],
|
| 589 |
+
remote_cols: List[str],
|
| 590 |
+
*,
|
| 591 |
+
onupdate: Optional[str] = None,
|
| 592 |
+
ondelete: Optional[str] = None,
|
| 593 |
+
deferrable: Optional[bool] = None,
|
| 594 |
+
initially: Optional[str] = None,
|
| 595 |
+
match: Optional[str] = None,
|
| 596 |
+
source_schema: Optional[str] = None,
|
| 597 |
+
referent_schema: Optional[str] = None,
|
| 598 |
+
**dialect_kw: Any,
|
| 599 |
+
) -> None:
|
| 600 |
+
"""Issue a "create foreign key" instruction using the
|
| 601 |
+
current migration context.
|
| 602 |
+
|
| 603 |
+
e.g.::
|
| 604 |
+
|
| 605 |
+
from alembic import op
|
| 606 |
+
|
| 607 |
+
op.create_foreign_key(
|
| 608 |
+
"fk_user_address",
|
| 609 |
+
"address",
|
| 610 |
+
"user",
|
| 611 |
+
["user_id"],
|
| 612 |
+
["id"],
|
| 613 |
+
)
|
| 614 |
+
|
| 615 |
+
This internally generates a :class:`~sqlalchemy.schema.Table` object
|
| 616 |
+
containing the necessary columns, then generates a new
|
| 617 |
+
:class:`~sqlalchemy.schema.ForeignKeyConstraint`
|
| 618 |
+
object which it then associates with the
|
| 619 |
+
:class:`~sqlalchemy.schema.Table`.
|
| 620 |
+
Any event listeners associated with this action will be fired
|
| 621 |
+
off normally. The :class:`~sqlalchemy.schema.AddConstraint`
|
| 622 |
+
construct is ultimately used to generate the ALTER statement.
|
| 623 |
+
|
| 624 |
+
:param constraint_name: Name of the foreign key constraint. The name
|
| 625 |
+
is necessary so that an ALTER statement can be emitted. For setups
|
| 626 |
+
that use an automated naming scheme such as that described at
|
| 627 |
+
:ref:`sqla:constraint_naming_conventions`,
|
| 628 |
+
``name`` here can be ``None``, as the event listener will
|
| 629 |
+
apply the name to the constraint object when it is associated
|
| 630 |
+
with the table.
|
| 631 |
+
:param source_table: String name of the source table.
|
| 632 |
+
:param referent_table: String name of the destination table.
|
| 633 |
+
:param local_cols: a list of string column names in the
|
| 634 |
+
source table.
|
| 635 |
+
:param remote_cols: a list of string column names in the
|
| 636 |
+
remote table.
|
| 637 |
+
:param onupdate: Optional string. If set, emit ON UPDATE <value> when
|
| 638 |
+
issuing DDL for this constraint. Typical values include CASCADE,
|
| 639 |
+
DELETE and RESTRICT.
|
| 640 |
+
:param ondelete: Optional string. If set, emit ON DELETE <value> when
|
| 641 |
+
issuing DDL for this constraint. Typical values include CASCADE,
|
| 642 |
+
DELETE and RESTRICT.
|
| 643 |
+
:param deferrable: optional bool. If set, emit DEFERRABLE or NOT
|
| 644 |
+
DEFERRABLE when issuing DDL for this constraint.
|
| 645 |
+
:param source_schema: Optional schema name of the source table.
|
| 646 |
+
:param referent_schema: Optional schema name of the destination table.
|
| 647 |
+
|
| 648 |
+
"""
|
| 649 |
+
|
| 650 |
+
def create_index(
|
| 651 |
+
index_name: Optional[str],
|
| 652 |
+
table_name: str,
|
| 653 |
+
columns: Sequence[Union[str, TextClause, Function[Any]]],
|
| 654 |
+
*,
|
| 655 |
+
schema: Optional[str] = None,
|
| 656 |
+
unique: bool = False,
|
| 657 |
+
if_not_exists: Optional[bool] = None,
|
| 658 |
+
**kw: Any,
|
| 659 |
+
) -> None:
|
| 660 |
+
r"""Issue a "create index" instruction using the current
|
| 661 |
+
migration context.
|
| 662 |
+
|
| 663 |
+
e.g.::
|
| 664 |
+
|
| 665 |
+
from alembic import op
|
| 666 |
+
|
| 667 |
+
op.create_index("ik_test", "t1", ["foo", "bar"])
|
| 668 |
+
|
| 669 |
+
Functional indexes can be produced by using the
|
| 670 |
+
:func:`sqlalchemy.sql.expression.text` construct::
|
| 671 |
+
|
| 672 |
+
from alembic import op
|
| 673 |
+
from sqlalchemy import text
|
| 674 |
+
|
| 675 |
+
op.create_index("ik_test", "t1", [text("lower(foo)")])
|
| 676 |
+
|
| 677 |
+
:param index_name: name of the index.
|
| 678 |
+
:param table_name: name of the owning table.
|
| 679 |
+
:param columns: a list consisting of string column names and/or
|
| 680 |
+
:func:`~sqlalchemy.sql.expression.text` constructs.
|
| 681 |
+
:param schema: Optional schema name to operate within. To control
|
| 682 |
+
quoting of the schema outside of the default behavior, use
|
| 683 |
+
the SQLAlchemy construct
|
| 684 |
+
:class:`~sqlalchemy.sql.elements.quoted_name`.
|
| 685 |
+
:param unique: If True, create a unique index.
|
| 686 |
+
|
| 687 |
+
:param quote: Force quoting of this column's name on or off,
|
| 688 |
+
corresponding to ``True`` or ``False``. When left at its default
|
| 689 |
+
of ``None``, the column identifier will be quoted according to
|
| 690 |
+
whether the name is case sensitive (identifiers with at least one
|
| 691 |
+
upper case character are treated as case sensitive), or if it's a
|
| 692 |
+
reserved word. This flag is only needed to force quoting of a
|
| 693 |
+
reserved word which is not known by the SQLAlchemy dialect.
|
| 694 |
+
|
| 695 |
+
:param if_not_exists: If True, adds IF NOT EXISTS operator when
|
| 696 |
+
creating the new index.
|
| 697 |
+
|
| 698 |
+
.. versionadded:: 1.12.0
|
| 699 |
+
|
| 700 |
+
:param \**kw: Additional keyword arguments not mentioned above are
|
| 701 |
+
dialect specific, and passed in the form
|
| 702 |
+
``<dialectname>_<argname>``.
|
| 703 |
+
See the documentation regarding an individual dialect at
|
| 704 |
+
:ref:`dialect_toplevel` for detail on documented arguments.
|
| 705 |
+
|
| 706 |
+
"""
|
| 707 |
+
|
| 708 |
+
def create_primary_key(
|
| 709 |
+
constraint_name: Optional[str],
|
| 710 |
+
table_name: str,
|
| 711 |
+
columns: List[str],
|
| 712 |
+
*,
|
| 713 |
+
schema: Optional[str] = None,
|
| 714 |
+
) -> None:
|
| 715 |
+
"""Issue a "create primary key" instruction using the current
|
| 716 |
+
migration context.
|
| 717 |
+
|
| 718 |
+
e.g.::
|
| 719 |
+
|
| 720 |
+
from alembic import op
|
| 721 |
+
|
| 722 |
+
op.create_primary_key("pk_my_table", "my_table", ["id", "version"])
|
| 723 |
+
|
| 724 |
+
This internally generates a :class:`~sqlalchemy.schema.Table` object
|
| 725 |
+
containing the necessary columns, then generates a new
|
| 726 |
+
:class:`~sqlalchemy.schema.PrimaryKeyConstraint`
|
| 727 |
+
object which it then associates with the
|
| 728 |
+
:class:`~sqlalchemy.schema.Table`.
|
| 729 |
+
Any event listeners associated with this action will be fired
|
| 730 |
+
off normally. The :class:`~sqlalchemy.schema.AddConstraint`
|
| 731 |
+
construct is ultimately used to generate the ALTER statement.
|
| 732 |
+
|
| 733 |
+
:param constraint_name: Name of the primary key constraint. The name
|
| 734 |
+
is necessary so that an ALTER statement can be emitted. For setups
|
| 735 |
+
that use an automated naming scheme such as that described at
|
| 736 |
+
:ref:`sqla:constraint_naming_conventions`
|
| 737 |
+
``name`` here can be ``None``, as the event listener will
|
| 738 |
+
apply the name to the constraint object when it is associated
|
| 739 |
+
with the table.
|
| 740 |
+
:param table_name: String name of the target table.
|
| 741 |
+
:param columns: a list of string column names to be applied to the
|
| 742 |
+
primary key constraint.
|
| 743 |
+
:param schema: Optional schema name to operate within. To control
|
| 744 |
+
quoting of the schema outside of the default behavior, use
|
| 745 |
+
the SQLAlchemy construct
|
| 746 |
+
:class:`~sqlalchemy.sql.elements.quoted_name`.
|
| 747 |
+
|
| 748 |
+
"""
|
| 749 |
+
|
| 750 |
+
def create_table(table_name: str, *columns: SchemaItem, **kw: Any) -> Table:
|
| 751 |
+
r"""Issue a "create table" instruction using the current migration
|
| 752 |
+
context.
|
| 753 |
+
|
| 754 |
+
This directive receives an argument list similar to that of the
|
| 755 |
+
traditional :class:`sqlalchemy.schema.Table` construct, but without the
|
| 756 |
+
metadata::
|
| 757 |
+
|
| 758 |
+
from sqlalchemy import INTEGER, VARCHAR, NVARCHAR, Column
|
| 759 |
+
from alembic import op
|
| 760 |
+
|
| 761 |
+
op.create_table(
|
| 762 |
+
"account",
|
| 763 |
+
Column("id", INTEGER, primary_key=True),
|
| 764 |
+
Column("name", VARCHAR(50), nullable=False),
|
| 765 |
+
Column("description", NVARCHAR(200)),
|
| 766 |
+
Column("timestamp", TIMESTAMP, server_default=func.now()),
|
| 767 |
+
)
|
| 768 |
+
|
| 769 |
+
Note that :meth:`.create_table` accepts
|
| 770 |
+
:class:`~sqlalchemy.schema.Column`
|
| 771 |
+
constructs directly from the SQLAlchemy library. In particular,
|
| 772 |
+
default values to be created on the database side are
|
| 773 |
+
specified using the ``server_default`` parameter, and not
|
| 774 |
+
``default`` which only specifies Python-side defaults::
|
| 775 |
+
|
| 776 |
+
from alembic import op
|
| 777 |
+
from sqlalchemy import Column, TIMESTAMP, func
|
| 778 |
+
|
| 779 |
+
# specify "DEFAULT NOW" along with the "timestamp" column
|
| 780 |
+
op.create_table(
|
| 781 |
+
"account",
|
| 782 |
+
Column("id", INTEGER, primary_key=True),
|
| 783 |
+
Column("timestamp", TIMESTAMP, server_default=func.now()),
|
| 784 |
+
)
|
| 785 |
+
|
| 786 |
+
The function also returns a newly created
|
| 787 |
+
:class:`~sqlalchemy.schema.Table` object, corresponding to the table
|
| 788 |
+
specification given, which is suitable for
|
| 789 |
+
immediate SQL operations, in particular
|
| 790 |
+
:meth:`.Operations.bulk_insert`::
|
| 791 |
+
|
| 792 |
+
from sqlalchemy import INTEGER, VARCHAR, NVARCHAR, Column
|
| 793 |
+
from alembic import op
|
| 794 |
+
|
| 795 |
+
account_table = op.create_table(
|
| 796 |
+
"account",
|
| 797 |
+
Column("id", INTEGER, primary_key=True),
|
| 798 |
+
Column("name", VARCHAR(50), nullable=False),
|
| 799 |
+
Column("description", NVARCHAR(200)),
|
| 800 |
+
Column("timestamp", TIMESTAMP, server_default=func.now()),
|
| 801 |
+
)
|
| 802 |
+
|
| 803 |
+
op.bulk_insert(
|
| 804 |
+
account_table,
|
| 805 |
+
[
|
| 806 |
+
{"name": "A1", "description": "account 1"},
|
| 807 |
+
{"name": "A2", "description": "account 2"},
|
| 808 |
+
],
|
| 809 |
+
)
|
| 810 |
+
|
| 811 |
+
:param table_name: Name of the table
|
| 812 |
+
:param \*columns: collection of :class:`~sqlalchemy.schema.Column`
|
| 813 |
+
objects within
|
| 814 |
+
the table, as well as optional :class:`~sqlalchemy.schema.Constraint`
|
| 815 |
+
objects
|
| 816 |
+
and :class:`~.sqlalchemy.schema.Index` objects.
|
| 817 |
+
:param schema: Optional schema name to operate within. To control
|
| 818 |
+
quoting of the schema outside of the default behavior, use
|
| 819 |
+
the SQLAlchemy construct
|
| 820 |
+
:class:`~sqlalchemy.sql.elements.quoted_name`.
|
| 821 |
+
:param \**kw: Other keyword arguments are passed to the underlying
|
| 822 |
+
:class:`sqlalchemy.schema.Table` object created for the command.
|
| 823 |
+
|
| 824 |
+
:return: the :class:`~sqlalchemy.schema.Table` object corresponding
|
| 825 |
+
to the parameters given.
|
| 826 |
+
|
| 827 |
+
"""
|
| 828 |
+
|
| 829 |
+
def create_table_comment(
|
| 830 |
+
table_name: str,
|
| 831 |
+
comment: Optional[str],
|
| 832 |
+
*,
|
| 833 |
+
existing_comment: Optional[str] = None,
|
| 834 |
+
schema: Optional[str] = None,
|
| 835 |
+
) -> None:
|
| 836 |
+
"""Emit a COMMENT ON operation to set the comment for a table.
|
| 837 |
+
|
| 838 |
+
:param table_name: string name of the target table.
|
| 839 |
+
:param comment: string value of the comment being registered against
|
| 840 |
+
the specified table.
|
| 841 |
+
:param existing_comment: String value of a comment
|
| 842 |
+
already registered on the specified table, used within autogenerate
|
| 843 |
+
so that the operation is reversible, but not required for direct
|
| 844 |
+
use.
|
| 845 |
+
|
| 846 |
+
.. seealso::
|
| 847 |
+
|
| 848 |
+
:meth:`.Operations.drop_table_comment`
|
| 849 |
+
|
| 850 |
+
:paramref:`.Operations.alter_column.comment`
|
| 851 |
+
|
| 852 |
+
"""
|
| 853 |
+
|
| 854 |
+
def create_unique_constraint(
|
| 855 |
+
constraint_name: Optional[str],
|
| 856 |
+
table_name: str,
|
| 857 |
+
columns: Sequence[str],
|
| 858 |
+
*,
|
| 859 |
+
schema: Optional[str] = None,
|
| 860 |
+
**kw: Any,
|
| 861 |
+
) -> Any:
|
| 862 |
+
"""Issue a "create unique constraint" instruction using the
|
| 863 |
+
current migration context.
|
| 864 |
+
|
| 865 |
+
e.g.::
|
| 866 |
+
|
| 867 |
+
from alembic import op
|
| 868 |
+
op.create_unique_constraint("uq_user_name", "user", ["name"])
|
| 869 |
+
|
| 870 |
+
This internally generates a :class:`~sqlalchemy.schema.Table` object
|
| 871 |
+
containing the necessary columns, then generates a new
|
| 872 |
+
:class:`~sqlalchemy.schema.UniqueConstraint`
|
| 873 |
+
object which it then associates with the
|
| 874 |
+
:class:`~sqlalchemy.schema.Table`.
|
| 875 |
+
Any event listeners associated with this action will be fired
|
| 876 |
+
off normally. The :class:`~sqlalchemy.schema.AddConstraint`
|
| 877 |
+
construct is ultimately used to generate the ALTER statement.
|
| 878 |
+
|
| 879 |
+
:param name: Name of the unique constraint. The name is necessary
|
| 880 |
+
so that an ALTER statement can be emitted. For setups that
|
| 881 |
+
use an automated naming scheme such as that described at
|
| 882 |
+
:ref:`sqla:constraint_naming_conventions`,
|
| 883 |
+
``name`` here can be ``None``, as the event listener will
|
| 884 |
+
apply the name to the constraint object when it is associated
|
| 885 |
+
with the table.
|
| 886 |
+
:param table_name: String name of the source table.
|
| 887 |
+
:param columns: a list of string column names in the
|
| 888 |
+
source table.
|
| 889 |
+
:param deferrable: optional bool. If set, emit DEFERRABLE or
|
| 890 |
+
NOT DEFERRABLE when issuing DDL for this constraint.
|
| 891 |
+
:param initially: optional string. If set, emit INITIALLY <value>
|
| 892 |
+
when issuing DDL for this constraint.
|
| 893 |
+
:param schema: Optional schema name to operate within. To control
|
| 894 |
+
quoting of the schema outside of the default behavior, use
|
| 895 |
+
the SQLAlchemy construct
|
| 896 |
+
:class:`~sqlalchemy.sql.elements.quoted_name`.
|
| 897 |
+
|
| 898 |
+
"""
|
| 899 |
+
|
| 900 |
+
def drop_column(
|
| 901 |
+
table_name: str,
|
| 902 |
+
column_name: str,
|
| 903 |
+
*,
|
| 904 |
+
schema: Optional[str] = None,
|
| 905 |
+
**kw: Any,
|
| 906 |
+
) -> None:
|
| 907 |
+
"""Issue a "drop column" instruction using the current
|
| 908 |
+
migration context.
|
| 909 |
+
|
| 910 |
+
e.g.::
|
| 911 |
+
|
| 912 |
+
drop_column("organization", "account_id")
|
| 913 |
+
|
| 914 |
+
:param table_name: name of table
|
| 915 |
+
:param column_name: name of column
|
| 916 |
+
:param schema: Optional schema name to operate within. To control
|
| 917 |
+
quoting of the schema outside of the default behavior, use
|
| 918 |
+
the SQLAlchemy construct
|
| 919 |
+
:class:`~sqlalchemy.sql.elements.quoted_name`.
|
| 920 |
+
:param mssql_drop_check: Optional boolean. When ``True``, on
|
| 921 |
+
Microsoft SQL Server only, first
|
| 922 |
+
drop the CHECK constraint on the column using a
|
| 923 |
+
SQL-script-compatible
|
| 924 |
+
block that selects into a @variable from sys.check_constraints,
|
| 925 |
+
then exec's a separate DROP CONSTRAINT for that constraint.
|
| 926 |
+
:param mssql_drop_default: Optional boolean. When ``True``, on
|
| 927 |
+
Microsoft SQL Server only, first
|
| 928 |
+
drop the DEFAULT constraint on the column using a
|
| 929 |
+
SQL-script-compatible
|
| 930 |
+
block that selects into a @variable from sys.default_constraints,
|
| 931 |
+
then exec's a separate DROP CONSTRAINT for that default.
|
| 932 |
+
:param mssql_drop_foreign_key: Optional boolean. When ``True``, on
|
| 933 |
+
Microsoft SQL Server only, first
|
| 934 |
+
drop a single FOREIGN KEY constraint on the column using a
|
| 935 |
+
SQL-script-compatible
|
| 936 |
+
block that selects into a @variable from
|
| 937 |
+
sys.foreign_keys/sys.foreign_key_columns,
|
| 938 |
+
then exec's a separate DROP CONSTRAINT for that default. Only
|
| 939 |
+
works if the column has exactly one FK constraint which refers to
|
| 940 |
+
it, at the moment.
|
| 941 |
+
|
| 942 |
+
"""
|
| 943 |
+
|
| 944 |
+
def drop_constraint(
|
| 945 |
+
constraint_name: str,
|
| 946 |
+
table_name: str,
|
| 947 |
+
type_: Optional[str] = None,
|
| 948 |
+
*,
|
| 949 |
+
schema: Optional[str] = None,
|
| 950 |
+
) -> None:
|
| 951 |
+
r"""Drop a constraint of the given name, typically via DROP CONSTRAINT.
|
| 952 |
+
|
| 953 |
+
:param constraint_name: name of the constraint.
|
| 954 |
+
:param table_name: table name.
|
| 955 |
+
:param type\_: optional, required on MySQL. can be
|
| 956 |
+
'foreignkey', 'primary', 'unique', or 'check'.
|
| 957 |
+
:param schema: Optional schema name to operate within. To control
|
| 958 |
+
quoting of the schema outside of the default behavior, use
|
| 959 |
+
the SQLAlchemy construct
|
| 960 |
+
:class:`~sqlalchemy.sql.elements.quoted_name`.
|
| 961 |
+
|
| 962 |
+
"""
|
| 963 |
+
|
| 964 |
+
def drop_index(
|
| 965 |
+
index_name: str,
|
| 966 |
+
table_name: Optional[str] = None,
|
| 967 |
+
*,
|
| 968 |
+
schema: Optional[str] = None,
|
| 969 |
+
if_exists: Optional[bool] = None,
|
| 970 |
+
**kw: Any,
|
| 971 |
+
) -> None:
|
| 972 |
+
r"""Issue a "drop index" instruction using the current
|
| 973 |
+
migration context.
|
| 974 |
+
|
| 975 |
+
e.g.::
|
| 976 |
+
|
| 977 |
+
drop_index("accounts")
|
| 978 |
+
|
| 979 |
+
:param index_name: name of the index.
|
| 980 |
+
:param table_name: name of the owning table. Some
|
| 981 |
+
backends such as Microsoft SQL Server require this.
|
| 982 |
+
:param schema: Optional schema name to operate within. To control
|
| 983 |
+
quoting of the schema outside of the default behavior, use
|
| 984 |
+
the SQLAlchemy construct
|
| 985 |
+
:class:`~sqlalchemy.sql.elements.quoted_name`.
|
| 986 |
+
|
| 987 |
+
:param if_exists: If True, adds IF EXISTS operator when
|
| 988 |
+
dropping the index.
|
| 989 |
+
|
| 990 |
+
.. versionadded:: 1.12.0
|
| 991 |
+
|
| 992 |
+
:param \**kw: Additional keyword arguments not mentioned above are
|
| 993 |
+
dialect specific, and passed in the form
|
| 994 |
+
``<dialectname>_<argname>``.
|
| 995 |
+
See the documentation regarding an individual dialect at
|
| 996 |
+
:ref:`dialect_toplevel` for detail on documented arguments.
|
| 997 |
+
|
| 998 |
+
"""
|
| 999 |
+
|
| 1000 |
+
def drop_table(
|
| 1001 |
+
table_name: str, *, schema: Optional[str] = None, **kw: Any
|
| 1002 |
+
) -> None:
|
| 1003 |
+
r"""Issue a "drop table" instruction using the current
|
| 1004 |
+
migration context.
|
| 1005 |
+
|
| 1006 |
+
|
| 1007 |
+
e.g.::
|
| 1008 |
+
|
| 1009 |
+
drop_table("accounts")
|
| 1010 |
+
|
| 1011 |
+
:param table_name: Name of the table
|
| 1012 |
+
:param schema: Optional schema name to operate within. To control
|
| 1013 |
+
quoting of the schema outside of the default behavior, use
|
| 1014 |
+
the SQLAlchemy construct
|
| 1015 |
+
:class:`~sqlalchemy.sql.elements.quoted_name`.
|
| 1016 |
+
:param \**kw: Other keyword arguments are passed to the underlying
|
| 1017 |
+
:class:`sqlalchemy.schema.Table` object created for the command.
|
| 1018 |
+
|
| 1019 |
+
"""
|
| 1020 |
+
|
| 1021 |
+
def drop_table_comment(
|
| 1022 |
+
table_name: str,
|
| 1023 |
+
*,
|
| 1024 |
+
existing_comment: Optional[str] = None,
|
| 1025 |
+
schema: Optional[str] = None,
|
| 1026 |
+
) -> None:
|
| 1027 |
+
"""Issue a "drop table comment" operation to
|
| 1028 |
+
remove an existing comment set on a table.
|
| 1029 |
+
|
| 1030 |
+
:param table_name: string name of the target table.
|
| 1031 |
+
:param existing_comment: An optional string value of a comment already
|
| 1032 |
+
registered on the specified table.
|
| 1033 |
+
|
| 1034 |
+
.. seealso::
|
| 1035 |
+
|
| 1036 |
+
:meth:`.Operations.create_table_comment`
|
| 1037 |
+
|
| 1038 |
+
:paramref:`.Operations.alter_column.comment`
|
| 1039 |
+
|
| 1040 |
+
"""
|
| 1041 |
+
|
| 1042 |
+
def execute(
|
| 1043 |
+
sqltext: Union[Executable, str],
|
| 1044 |
+
*,
|
| 1045 |
+
execution_options: Optional[dict[str, Any]] = None,
|
| 1046 |
+
) -> None:
|
| 1047 |
+
r"""Execute the given SQL using the current migration context.
|
| 1048 |
+
|
| 1049 |
+
The given SQL can be a plain string, e.g.::
|
| 1050 |
+
|
| 1051 |
+
op.execute("INSERT INTO table (foo) VALUES ('some value')")
|
| 1052 |
+
|
| 1053 |
+
Or it can be any kind of Core SQL Expression construct, such as
|
| 1054 |
+
below where we use an update construct::
|
| 1055 |
+
|
| 1056 |
+
from sqlalchemy.sql import table, column
|
| 1057 |
+
from sqlalchemy import String
|
| 1058 |
+
from alembic import op
|
| 1059 |
+
|
| 1060 |
+
account = table("account", column("name", String))
|
| 1061 |
+
op.execute(
|
| 1062 |
+
account.update()
|
| 1063 |
+
.where(account.c.name == op.inline_literal("account 1"))
|
| 1064 |
+
.values({"name": op.inline_literal("account 2")})
|
| 1065 |
+
)
|
| 1066 |
+
|
| 1067 |
+
Above, we made use of the SQLAlchemy
|
| 1068 |
+
:func:`sqlalchemy.sql.expression.table` and
|
| 1069 |
+
:func:`sqlalchemy.sql.expression.column` constructs to make a brief,
|
| 1070 |
+
ad-hoc table construct just for our UPDATE statement. A full
|
| 1071 |
+
:class:`~sqlalchemy.schema.Table` construct of course works perfectly
|
| 1072 |
+
fine as well, though note it's a recommended practice to at least
|
| 1073 |
+
ensure the definition of a table is self-contained within the migration
|
| 1074 |
+
script, rather than imported from a module that may break compatibility
|
| 1075 |
+
with older migrations.
|
| 1076 |
+
|
| 1077 |
+
In a SQL script context, the statement is emitted directly to the
|
| 1078 |
+
output stream. There is *no* return result, however, as this
|
| 1079 |
+
function is oriented towards generating a change script
|
| 1080 |
+
that can run in "offline" mode. Additionally, parameterized
|
| 1081 |
+
statements are discouraged here, as they *will not work* in offline
|
| 1082 |
+
mode. Above, we use :meth:`.inline_literal` where parameters are
|
| 1083 |
+
to be used.
|
| 1084 |
+
|
| 1085 |
+
For full interaction with a connected database where parameters can
|
| 1086 |
+
also be used normally, use the "bind" available from the context::
|
| 1087 |
+
|
| 1088 |
+
from alembic import op
|
| 1089 |
+
|
| 1090 |
+
connection = op.get_bind()
|
| 1091 |
+
|
| 1092 |
+
connection.execute(
|
| 1093 |
+
account.update()
|
| 1094 |
+
.where(account.c.name == "account 1")
|
| 1095 |
+
.values({"name": "account 2"})
|
| 1096 |
+
)
|
| 1097 |
+
|
| 1098 |
+
Additionally, when passing the statement as a plain string, it is first
|
| 1099 |
+
coerced into a :func:`sqlalchemy.sql.expression.text` construct
|
| 1100 |
+
before being passed along. In the less likely case that the
|
| 1101 |
+
literal SQL string contains a colon, it must be escaped with a
|
| 1102 |
+
backslash, as::
|
| 1103 |
+
|
| 1104 |
+
op.execute(r"INSERT INTO table (foo) VALUES ('\:colon_value')")
|
| 1105 |
+
|
| 1106 |
+
|
| 1107 |
+
:param sqltext: Any legal SQLAlchemy expression, including:
|
| 1108 |
+
|
| 1109 |
+
* a string
|
| 1110 |
+
* a :func:`sqlalchemy.sql.expression.text` construct.
|
| 1111 |
+
* a :func:`sqlalchemy.sql.expression.insert` construct.
|
| 1112 |
+
* a :func:`sqlalchemy.sql.expression.update` construct.
|
| 1113 |
+
* a :func:`sqlalchemy.sql.expression.delete` construct.
|
| 1114 |
+
* Any "executable" described in SQLAlchemy Core documentation,
|
| 1115 |
+
noting that no result set is returned.
|
| 1116 |
+
|
| 1117 |
+
.. note:: when passing a plain string, the statement is coerced into
|
| 1118 |
+
a :func:`sqlalchemy.sql.expression.text` construct. This construct
|
| 1119 |
+
considers symbols with colons, e.g. ``:foo`` to be bound parameters.
|
| 1120 |
+
To avoid this, ensure that colon symbols are escaped, e.g.
|
| 1121 |
+
``\:foo``.
|
| 1122 |
+
|
| 1123 |
+
:param execution_options: Optional dictionary of
|
| 1124 |
+
execution options, will be passed to
|
| 1125 |
+
:meth:`sqlalchemy.engine.Connection.execution_options`.
|
| 1126 |
+
"""
|
| 1127 |
+
|
| 1128 |
+
def f(name: str) -> conv:
|
| 1129 |
+
"""Indicate a string name that has already had a naming convention
|
| 1130 |
+
applied to it.
|
| 1131 |
+
|
| 1132 |
+
This feature combines with the SQLAlchemy ``naming_convention`` feature
|
| 1133 |
+
to disambiguate constraint names that have already had naming
|
| 1134 |
+
conventions applied to them, versus those that have not. This is
|
| 1135 |
+
necessary in the case that the ``"%(constraint_name)s"`` token
|
| 1136 |
+
is used within a naming convention, so that it can be identified
|
| 1137 |
+
that this particular name should remain fixed.
|
| 1138 |
+
|
| 1139 |
+
If the :meth:`.Operations.f` is used on a constraint, the naming
|
| 1140 |
+
convention will not take effect::
|
| 1141 |
+
|
| 1142 |
+
op.add_column("t", "x", Boolean(name=op.f("ck_bool_t_x")))
|
| 1143 |
+
|
| 1144 |
+
Above, the CHECK constraint generated will have the name
|
| 1145 |
+
``ck_bool_t_x`` regardless of whether or not a naming convention is
|
| 1146 |
+
in use.
|
| 1147 |
+
|
| 1148 |
+
Alternatively, if a naming convention is in use, and 'f' is not used,
|
| 1149 |
+
names will be converted along conventions. If the ``target_metadata``
|
| 1150 |
+
contains the naming convention
|
| 1151 |
+
``{"ck": "ck_bool_%(table_name)s_%(constraint_name)s"}``, then the
|
| 1152 |
+
output of the following:
|
| 1153 |
+
|
| 1154 |
+
op.add_column("t", "x", Boolean(name="x"))
|
| 1155 |
+
|
| 1156 |
+
will be::
|
| 1157 |
+
|
| 1158 |
+
CONSTRAINT ck_bool_t_x CHECK (x in (1, 0)))
|
| 1159 |
+
|
| 1160 |
+
The function is rendered in the output of autogenerate when
|
| 1161 |
+
a particular constraint name is already converted.
|
| 1162 |
+
|
| 1163 |
+
"""
|
| 1164 |
+
|
| 1165 |
+
def get_bind() -> Connection:
|
| 1166 |
+
"""Return the current 'bind'.
|
| 1167 |
+
|
| 1168 |
+
Under normal circumstances, this is the
|
| 1169 |
+
:class:`~sqlalchemy.engine.Connection` currently being used
|
| 1170 |
+
to emit SQL to the database.
|
| 1171 |
+
|
| 1172 |
+
In a SQL script context, this value is ``None``. [TODO: verify this]
|
| 1173 |
+
|
| 1174 |
+
"""
|
| 1175 |
+
|
| 1176 |
+
def get_context() -> MigrationContext:
|
| 1177 |
+
"""Return the :class:`.MigrationContext` object that's
|
| 1178 |
+
currently in use.
|
| 1179 |
+
|
| 1180 |
+
"""
|
| 1181 |
+
|
| 1182 |
+
def implementation_for(op_cls: Any) -> Callable[[_C], _C]:
|
| 1183 |
+
"""Register an implementation for a given :class:`.MigrateOperation`.
|
| 1184 |
+
|
| 1185 |
+
This is part of the operation extensibility API.
|
| 1186 |
+
|
| 1187 |
+
.. seealso::
|
| 1188 |
+
|
| 1189 |
+
:ref:`operation_plugins` - example of use
|
| 1190 |
+
|
| 1191 |
+
"""
|
| 1192 |
+
|
| 1193 |
+
def inline_literal(
|
| 1194 |
+
value: Union[str, int], type_: Optional[TypeEngine[Any]] = None
|
| 1195 |
+
) -> _literal_bindparam:
|
| 1196 |
+
r"""Produce an 'inline literal' expression, suitable for
|
| 1197 |
+
using in an INSERT, UPDATE, or DELETE statement.
|
| 1198 |
+
|
| 1199 |
+
When using Alembic in "offline" mode, CRUD operations
|
| 1200 |
+
aren't compatible with SQLAlchemy's default behavior surrounding
|
| 1201 |
+
literal values,
|
| 1202 |
+
which is that they are converted into bound values and passed
|
| 1203 |
+
separately into the ``execute()`` method of the DBAPI cursor.
|
| 1204 |
+
An offline SQL
|
| 1205 |
+
script needs to have these rendered inline. While it should
|
| 1206 |
+
always be noted that inline literal values are an **enormous**
|
| 1207 |
+
security hole in an application that handles untrusted input,
|
| 1208 |
+
a schema migration is not run in this context, so
|
| 1209 |
+
literals are safe to render inline, with the caveat that
|
| 1210 |
+
advanced types like dates may not be supported directly
|
| 1211 |
+
by SQLAlchemy.
|
| 1212 |
+
|
| 1213 |
+
See :meth:`.Operations.execute` for an example usage of
|
| 1214 |
+
:meth:`.Operations.inline_literal`.
|
| 1215 |
+
|
| 1216 |
+
The environment can also be configured to attempt to render
|
| 1217 |
+
"literal" values inline automatically, for those simple types
|
| 1218 |
+
that are supported by the dialect; see
|
| 1219 |
+
:paramref:`.EnvironmentContext.configure.literal_binds` for this
|
| 1220 |
+
more recently added feature.
|
| 1221 |
+
|
| 1222 |
+
:param value: The value to render. Strings, integers, and simple
|
| 1223 |
+
numerics should be supported. Other types like boolean,
|
| 1224 |
+
dates, etc. may or may not be supported yet by various
|
| 1225 |
+
backends.
|
| 1226 |
+
:param type\_: optional - a :class:`sqlalchemy.types.TypeEngine`
|
| 1227 |
+
subclass stating the type of this value. In SQLAlchemy
|
| 1228 |
+
expressions, this is usually derived automatically
|
| 1229 |
+
from the Python type of the value itself, as well as
|
| 1230 |
+
based on the context in which the value is used.
|
| 1231 |
+
|
| 1232 |
+
.. seealso::
|
| 1233 |
+
|
| 1234 |
+
:paramref:`.EnvironmentContext.configure.literal_binds`
|
| 1235 |
+
|
| 1236 |
+
"""
|
| 1237 |
+
|
| 1238 |
+
@overload
|
| 1239 |
+
def invoke(operation: CreateTableOp) -> Table: ...
|
| 1240 |
+
@overload
|
| 1241 |
+
def invoke(
|
| 1242 |
+
operation: Union[
|
| 1243 |
+
AddConstraintOp,
|
| 1244 |
+
DropConstraintOp,
|
| 1245 |
+
CreateIndexOp,
|
| 1246 |
+
DropIndexOp,
|
| 1247 |
+
AddColumnOp,
|
| 1248 |
+
AlterColumnOp,
|
| 1249 |
+
AlterTableOp,
|
| 1250 |
+
CreateTableCommentOp,
|
| 1251 |
+
DropTableCommentOp,
|
| 1252 |
+
DropColumnOp,
|
| 1253 |
+
BulkInsertOp,
|
| 1254 |
+
DropTableOp,
|
| 1255 |
+
ExecuteSQLOp,
|
| 1256 |
+
]
|
| 1257 |
+
) -> None: ...
|
| 1258 |
+
@overload
|
| 1259 |
+
def invoke(operation: MigrateOperation) -> Any:
|
| 1260 |
+
"""Given a :class:`.MigrateOperation`, invoke it in terms of
|
| 1261 |
+
this :class:`.Operations` instance.
|
| 1262 |
+
|
| 1263 |
+
"""
|
| 1264 |
+
|
| 1265 |
+
def register_operation(
|
| 1266 |
+
name: str, sourcename: Optional[str] = None
|
| 1267 |
+
) -> Callable[[Type[_T]], Type[_T]]:
|
| 1268 |
+
"""Register a new operation for this class.
|
| 1269 |
+
|
| 1270 |
+
This method is normally used to add new operations
|
| 1271 |
+
to the :class:`.Operations` class, and possibly the
|
| 1272 |
+
:class:`.BatchOperations` class as well. All Alembic migration
|
| 1273 |
+
operations are implemented via this system, however the system
|
| 1274 |
+
is also available as a public API to facilitate adding custom
|
| 1275 |
+
operations.
|
| 1276 |
+
|
| 1277 |
+
.. seealso::
|
| 1278 |
+
|
| 1279 |
+
:ref:`operation_plugins`
|
| 1280 |
+
|
| 1281 |
+
|
| 1282 |
+
"""
|
| 1283 |
+
|
| 1284 |
+
def rename_table(
|
| 1285 |
+
old_table_name: str, new_table_name: str, *, schema: Optional[str] = None
|
| 1286 |
+
) -> None:
|
| 1287 |
+
"""Emit an ALTER TABLE to rename a table.
|
| 1288 |
+
|
| 1289 |
+
:param old_table_name: old name.
|
| 1290 |
+
:param new_table_name: new name.
|
| 1291 |
+
:param schema: Optional schema name to operate within. To control
|
| 1292 |
+
quoting of the schema outside of the default behavior, use
|
| 1293 |
+
the SQLAlchemy construct
|
| 1294 |
+
:class:`~sqlalchemy.sql.elements.quoted_name`.
|
| 1295 |
+
|
| 1296 |
+
"""
|
| 1297 |
+
|
| 1298 |
+
def run_async(
|
| 1299 |
+
async_function: Callable[..., Awaitable[_T]], *args: Any, **kw_args: Any
|
| 1300 |
+
) -> _T:
|
| 1301 |
+
"""Invoke the given asynchronous callable, passing an asynchronous
|
| 1302 |
+
:class:`~sqlalchemy.ext.asyncio.AsyncConnection` as the first
|
| 1303 |
+
argument.
|
| 1304 |
+
|
| 1305 |
+
This method allows calling async functions from within the
|
| 1306 |
+
synchronous ``upgrade()`` or ``downgrade()`` alembic migration
|
| 1307 |
+
method.
|
| 1308 |
+
|
| 1309 |
+
The async connection passed to the callable shares the same
|
| 1310 |
+
transaction as the connection running in the migration context.
|
| 1311 |
+
|
| 1312 |
+
Any additional arg or kw_arg passed to this function are passed
|
| 1313 |
+
to the provided async function.
|
| 1314 |
+
|
| 1315 |
+
.. versionadded: 1.11
|
| 1316 |
+
|
| 1317 |
+
.. note::
|
| 1318 |
+
|
| 1319 |
+
This method can be called only when alembic is called using
|
| 1320 |
+
an async dialect.
|
| 1321 |
+
"""
|