sqlalchemy-bigquery 1.11.0.dev2__tar.gz → 1.12.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/MANIFEST.in +3 -2
- {sqlalchemy-bigquery-1.11.0.dev2/sqlalchemy_bigquery.egg-info → sqlalchemy_bigquery-1.12.1}/PKG-INFO +10 -13
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/README.rst +2 -5
- sqlalchemy_bigquery-1.12.1/pyproject.toml +5 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/setup.cfg +1 -1
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/setup.py +17 -2
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/sqlalchemy_bigquery/__init__.py +16 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/sqlalchemy_bigquery/_helpers.py +42 -10
- sqlalchemy_bigquery-1.12.1/sqlalchemy_bigquery/_versions_helpers.py +32 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/sqlalchemy_bigquery/base.py +112 -21
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/sqlalchemy_bigquery/version.py +1 -1
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1/sqlalchemy_bigquery.egg-info}/PKG-INFO +10 -13
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/sqlalchemy_bigquery.egg-info/SOURCES.txt +11 -1
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/sqlalchemy_bigquery.egg-info/requires.txt +6 -6
- sqlalchemy_bigquery-1.12.1/sqlalchemy_bigquery.egg-info/top_level.txt +2 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/tests/sqlalchemy_dialect_compliance/test_dialect_compliance.py +13 -7
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/tests/system/test_alembic.py +9 -2
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/tests/system/test_helpers.py +8 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/tests/system/test_sqlalchemy_bigquery.py +12 -2
- sqlalchemy_bigquery-1.12.1/tests/unit/test_alembic.py +37 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/tests/unit/test_compiler.py +177 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/tests/unit/test_helpers.py +13 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/tests/unit/test_select.py +151 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/tests/unit/test_table_options.py +127 -56
- sqlalchemy_bigquery-1.12.1/third_party/sqlalchemy_bigquery_vendored/__init__.py +0 -0
- sqlalchemy_bigquery-1.12.1/third_party/sqlalchemy_bigquery_vendored/py.typed +0 -0
- sqlalchemy_bigquery-1.12.1/third_party/sqlalchemy_bigquery_vendored/sqlalchemy/AUTHORS +30 -0
- sqlalchemy_bigquery-1.12.1/third_party/sqlalchemy_bigquery_vendored/sqlalchemy/LICENSE +19 -0
- sqlalchemy_bigquery-1.12.1/third_party/sqlalchemy_bigquery_vendored/sqlalchemy/__init__.py +6 -0
- sqlalchemy_bigquery-1.12.1/third_party/sqlalchemy_bigquery_vendored/sqlalchemy/postgresql/__init__.py +0 -0
- sqlalchemy_bigquery-1.12.1/third_party/sqlalchemy_bigquery_vendored/sqlalchemy/postgresql/base.py +19 -0
- sqlalchemy-bigquery-1.11.0.dev2/sqlalchemy_bigquery.egg-info/top_level.txt +0 -1
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/AUTHORS +0 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/LICENSE +0 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/sqlalchemy_bigquery/_struct.py +0 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/sqlalchemy_bigquery/_types.py +0 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/sqlalchemy_bigquery/geography.py +0 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/sqlalchemy_bigquery/parse_url.py +0 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/sqlalchemy_bigquery/requirements.py +0 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/sqlalchemy_bigquery.egg-info/dependency_links.txt +0 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/sqlalchemy_bigquery.egg-info/entry_points.txt +0 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/tests/__init__.py +0 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/tests/conftest.py +0 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/tests/sqlalchemy_dialect_compliance/README.rst +0 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/tests/sqlalchemy_dialect_compliance/conftest.py +0 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/tests/system/__init__.py +0 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/tests/system/conftest.py +0 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/tests/system/data/sample.json +0 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/tests/system/data/sample_one_row.json +0 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/tests/system/data/schema.json +0 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/tests/system/test__struct.py +0 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/tests/system/test_geography.py +0 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/tests/unit/__init__.py +0 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/tests/unit/conftest.py +0 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/tests/unit/fauxdbi.py +0 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/tests/unit/test__struct.py +0 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/tests/unit/test_catalog_functions.py +0 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/tests/unit/test_comments.py +0 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/tests/unit/test_compliance.py +0 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/tests/unit/test_dialect_types.py +0 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/tests/unit/test_engine.py +0 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/tests/unit/test_geography.py +0 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/tests/unit/test_like_reescape.py +0 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/tests/unit/test_parse_url.py +0 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/tests/unit/test_sqlalchemy_bigquery.py +0 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/tests/unit/test_version.py +0 -0
- {sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/tests/unit/test_view.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
#
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2024 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
# Generated by synthtool. DO NOT EDIT!
|
|
18
18
|
include README.rst LICENSE
|
|
19
|
-
recursive-include
|
|
19
|
+
recursive-include third_party/sqlalchemy_bigquery_vendored *
|
|
20
|
+
recursive-include sqlalchemy_bigquery *.json *.proto py.typed
|
|
20
21
|
recursive-include tests *
|
|
21
22
|
global-exclude *.py[co]
|
|
22
23
|
global-exclude __pycache__
|
{sqlalchemy-bigquery-1.11.0.dev2/sqlalchemy_bigquery.egg-info → sqlalchemy_bigquery-1.12.1}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sqlalchemy-bigquery
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.12.1
|
|
4
4
|
Summary: SQLAlchemy dialect for BigQuery
|
|
5
5
|
Home-page: https://github.com/googleapis/python-bigquery-sqlalchemy
|
|
6
6
|
Author: The Sqlalchemy-Bigquery Authors
|
|
@@ -28,7 +28,7 @@ Requires-Dist: google-api-core!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0,<3.0.0dev,>=1.31.5
|
|
|
28
28
|
Requires-Dist: google-auth<3.0.0dev,>=1.25.0
|
|
29
29
|
Requires-Dist: google-cloud-bigquery<4.0.0dev,>=3.3.6
|
|
30
30
|
Requires-Dist: packaging
|
|
31
|
-
Requires-Dist: sqlalchemy<
|
|
31
|
+
Requires-Dist: sqlalchemy<3.0.0dev,>=1.4.16
|
|
32
32
|
Provides-Extra: geography
|
|
33
33
|
Requires-Dist: GeoAlchemy2; extra == "geography"
|
|
34
34
|
Requires-Dist: shapely; extra == "geography"
|
|
@@ -43,15 +43,15 @@ Requires-Dist: grpcio<2.0dev,>=1.47.0; extra == "bqstorage"
|
|
|
43
43
|
Requires-Dist: grpcio<2.0dev,>=1.49.1; python_version >= "3.11" and extra == "bqstorage"
|
|
44
44
|
Requires-Dist: pyarrow>=3.0.0; extra == "bqstorage"
|
|
45
45
|
Provides-Extra: all
|
|
46
|
-
Requires-Dist: packaging; extra == "all"
|
|
47
|
-
Requires-Dist: pytz; extra == "all"
|
|
48
|
-
Requires-Dist: google-cloud-bigquery-storage<3.0.0dev,>=2.0.0; extra == "all"
|
|
49
|
-
Requires-Dist: grpcio<2.0dev,>=1.49.1; python_version >= "3.11" and extra == "all"
|
|
50
46
|
Requires-Dist: GeoAlchemy2; extra == "all"
|
|
47
|
+
Requires-Dist: shapely; extra == "all"
|
|
51
48
|
Requires-Dist: grpcio<2.0dev,>=1.47.0; extra == "all"
|
|
52
|
-
Requires-Dist:
|
|
49
|
+
Requires-Dist: pytz; extra == "all"
|
|
50
|
+
Requires-Dist: packaging; extra == "all"
|
|
53
51
|
Requires-Dist: pyarrow>=3.0.0; extra == "all"
|
|
54
|
-
Requires-Dist:
|
|
52
|
+
Requires-Dist: google-cloud-bigquery-storage<3.0.0dev,>=2.0.0; extra == "all"
|
|
53
|
+
Requires-Dist: alembic; extra == "all"
|
|
54
|
+
Requires-Dist: grpcio<2.0dev,>=1.49.1; python_version >= "3.11" and extra == "all"
|
|
55
55
|
|
|
56
56
|
SQLAlchemy Dialect for BigQuery
|
|
57
57
|
===============================
|
|
@@ -89,9 +89,6 @@ In order to use this library, you first need to go through the following steps:
|
|
|
89
89
|
.. _Enable the BigQuery Storage API.: https://console.cloud.google.com/apis/library/bigquery.googleapis.com
|
|
90
90
|
.. _Setup Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html
|
|
91
91
|
|
|
92
|
-
.. note::
|
|
93
|
-
This library is a prerelease to gauge compatiblity with SQLAlchemy
|
|
94
|
-
versions >= 1.4.16 and < 2.1
|
|
95
92
|
|
|
96
93
|
Installation
|
|
97
94
|
------------
|
|
@@ -164,7 +161,7 @@ SQLAlchemy
|
|
|
164
161
|
from sqlalchemy.schema import *
|
|
165
162
|
engine = create_engine('bigquery://project')
|
|
166
163
|
table = Table('dataset.table', MetaData(bind=engine), autoload=True)
|
|
167
|
-
print(select([func.count('*')], from_obj=table().scalar())
|
|
164
|
+
print(select([func.count('*')], from_obj=table().scalar()))
|
|
168
165
|
|
|
169
166
|
|
|
170
167
|
Project
|
|
@@ -194,7 +191,7 @@ Alternatively, you can choose either of the following approaches:
|
|
|
194
191
|
credentials_info = {
|
|
195
192
|
"type": "service_account",
|
|
196
193
|
"project_id": "your-service-account-project-id"
|
|
197
|
-
}
|
|
194
|
+
}
|
|
198
195
|
engine = create_engine('bigquery://', credentials_info=credentials_info)
|
|
199
196
|
|
|
200
197
|
Location
|
|
@@ -34,9 +34,6 @@ In order to use this library, you first need to go through the following steps:
|
|
|
34
34
|
.. _Enable the BigQuery Storage API.: https://console.cloud.google.com/apis/library/bigquery.googleapis.com
|
|
35
35
|
.. _Setup Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html
|
|
36
36
|
|
|
37
|
-
.. note::
|
|
38
|
-
This library is a prerelease to gauge compatiblity with SQLAlchemy
|
|
39
|
-
versions >= 1.4.16 and < 2.1
|
|
40
37
|
|
|
41
38
|
Installation
|
|
42
39
|
------------
|
|
@@ -109,7 +106,7 @@ SQLAlchemy
|
|
|
109
106
|
from sqlalchemy.schema import *
|
|
110
107
|
engine = create_engine('bigquery://project')
|
|
111
108
|
table = Table('dataset.table', MetaData(bind=engine), autoload=True)
|
|
112
|
-
print(select([func.count('*')], from_obj=table().scalar())
|
|
109
|
+
print(select([func.count('*')], from_obj=table().scalar()))
|
|
113
110
|
|
|
114
111
|
|
|
115
112
|
Project
|
|
@@ -139,7 +136,7 @@ Alternatively, you can choose either of the following approaches:
|
|
|
139
136
|
credentials_info = {
|
|
140
137
|
"type": "service_account",
|
|
141
138
|
"project_id": "your-service-account-project-id"
|
|
142
|
-
}
|
|
139
|
+
}
|
|
143
140
|
engine = create_engine('bigquery://', credentials_info=credentials_info)
|
|
144
141
|
|
|
145
142
|
Location
|
|
@@ -6,7 +6,7 @@ requirement_cls = sqlalchemy_bigquery.requirements:Requirements
|
|
|
6
6
|
profile_file = .sqlalchemy_dialect_compliance-profiles.txt
|
|
7
7
|
|
|
8
8
|
[tool:pytest]
|
|
9
|
-
addopts = --tb native -v -r fxX
|
|
9
|
+
addopts = --tb native -v -r fxX
|
|
10
10
|
python_files = tests/*test_*.py
|
|
11
11
|
|
|
12
12
|
[egg_info]
|
|
@@ -22,6 +22,7 @@ import io
|
|
|
22
22
|
import itertools
|
|
23
23
|
import os
|
|
24
24
|
import re
|
|
25
|
+
import setuptools
|
|
25
26
|
from setuptools import setup
|
|
26
27
|
|
|
27
28
|
# Package metadata.
|
|
@@ -67,6 +68,16 @@ extras = {
|
|
|
67
68
|
|
|
68
69
|
extras["all"] = set(itertools.chain.from_iterable(extras.values()))
|
|
69
70
|
|
|
71
|
+
packages = [
|
|
72
|
+
package
|
|
73
|
+
for package in setuptools.find_namespace_packages()
|
|
74
|
+
if package.startswith("sqlalchemy_bigquery")
|
|
75
|
+
] + [
|
|
76
|
+
package
|
|
77
|
+
for package in setuptools.find_namespace_packages("third_party")
|
|
78
|
+
if package.startswith("sqlalchemy_bigquery_vendored")
|
|
79
|
+
]
|
|
80
|
+
|
|
70
81
|
setup(
|
|
71
82
|
name=name,
|
|
72
83
|
version=version,
|
|
@@ -75,7 +86,11 @@ setup(
|
|
|
75
86
|
long_description_content_type="text/x-rst",
|
|
76
87
|
author="The Sqlalchemy-Bigquery Authors",
|
|
77
88
|
author_email="googleapis-packages@google.com",
|
|
78
|
-
|
|
89
|
+
package_dir={
|
|
90
|
+
"sqlalchemy-bigquery": "sqlalchemy_bigquery",
|
|
91
|
+
"sqlalchemy_bigquery_vendored": "third_party/sqlalchemy_bigquery_vendored",
|
|
92
|
+
},
|
|
93
|
+
packages=packages,
|
|
79
94
|
url="https://github.com/googleapis/python-bigquery-sqlalchemy",
|
|
80
95
|
keywords=["bigquery", "sqlalchemy"],
|
|
81
96
|
classifiers=[
|
|
@@ -101,7 +116,7 @@ setup(
|
|
|
101
116
|
"google-auth>=1.25.0,<3.0.0dev", # Work around pip wack.
|
|
102
117
|
"google-cloud-bigquery>=3.3.6,<4.0.0dev",
|
|
103
118
|
"packaging",
|
|
104
|
-
"sqlalchemy>=1.4.16,<
|
|
119
|
+
"sqlalchemy>=1.4.16,<3.0.0dev",
|
|
105
120
|
],
|
|
106
121
|
extras_require=extras,
|
|
107
122
|
python_requires=">=3.8, <3.13",
|
{sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/sqlalchemy_bigquery/__init__.py
RENAMED
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
SQLAlchemy dialect for Google BigQuery
|
|
21
21
|
"""
|
|
22
22
|
|
|
23
|
+
import warnings
|
|
24
|
+
|
|
23
25
|
from .version import __version__
|
|
24
26
|
|
|
25
27
|
from .base import BigQueryDialect, dialect
|
|
@@ -43,6 +45,20 @@ from ._types import (
|
|
|
43
45
|
TIMESTAMP,
|
|
44
46
|
)
|
|
45
47
|
|
|
48
|
+
from . import _versions_helpers
|
|
49
|
+
|
|
50
|
+
sys_major, sys_minor, sys_micro = _versions_helpers.extract_runtime_version()
|
|
51
|
+
if sys_major == 3 and sys_minor in (7, 8):
|
|
52
|
+
warnings.warn(
|
|
53
|
+
"The python-bigquery library will stop supporting Python 3.7 "
|
|
54
|
+
"and Python 3.8 in a future major release expected in Q4 2024. "
|
|
55
|
+
f"Your Python version is {sys_major}.{sys_minor}.{sys_micro}. We "
|
|
56
|
+
"recommend that you update soon to ensure ongoing support. For "
|
|
57
|
+
"more details, see: [Google Cloud Client Libraries Supported Python Versions policy](https://cloud.google.com/python/docs/supported-python-versions)",
|
|
58
|
+
PendingDeprecationWarning,
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
|
|
46
62
|
__all__ = [
|
|
47
63
|
"__version__",
|
|
48
64
|
"dialect",
|
{sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1}/sqlalchemy_bigquery/_helpers.py
RENAMED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import functools
|
|
8
8
|
import re
|
|
9
|
+
from typing import Optional
|
|
9
10
|
|
|
10
11
|
from google.api_core import client_info
|
|
11
12
|
import google.auth
|
|
@@ -24,19 +25,48 @@ SCOPES = (
|
|
|
24
25
|
)
|
|
25
26
|
|
|
26
27
|
|
|
27
|
-
def google_client_info(
|
|
28
|
-
user_agent =
|
|
28
|
+
def google_client_info(
|
|
29
|
+
user_agent: Optional[str] = None,
|
|
30
|
+
) -> google.api_core.client_info.ClientInfo:
|
|
31
|
+
"""
|
|
32
|
+
Return a client_info object, with an optional user agent
|
|
33
|
+
string. If user_agent is None, use a default value.
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
if user_agent is None:
|
|
37
|
+
user_agent = USER_AGENT_TEMPLATE.format(sqlalchemy.__version__)
|
|
29
38
|
return client_info.ClientInfo(user_agent=user_agent)
|
|
30
39
|
|
|
31
40
|
|
|
32
41
|
def create_bigquery_client(
|
|
33
|
-
credentials_info=None,
|
|
34
|
-
credentials_path=None,
|
|
35
|
-
credentials_base64=None,
|
|
36
|
-
default_query_job_config=None,
|
|
37
|
-
location=None,
|
|
38
|
-
project_id=None,
|
|
39
|
-
|
|
42
|
+
credentials_info: Optional[dict] = None,
|
|
43
|
+
credentials_path: Optional[str] = None,
|
|
44
|
+
credentials_base64: Optional[str] = None,
|
|
45
|
+
default_query_job_config: Optional[google.cloud.bigquery.job.QueryJobConfig] = None,
|
|
46
|
+
location: Optional[str] = None,
|
|
47
|
+
project_id: Optional[str] = None,
|
|
48
|
+
user_agent: Optional[google.api_core.client_info.ClientInfo] = None,
|
|
49
|
+
) -> google.cloud.bigquery.Client:
|
|
50
|
+
"""Construct a BigQuery client object.
|
|
51
|
+
|
|
52
|
+
Args:
|
|
53
|
+
credentials_info Optional[dict]:
|
|
54
|
+
credentials_path Optional[str]:
|
|
55
|
+
credentials_base64 Optional[str]:
|
|
56
|
+
default_query_job_config (Optional[google.cloud.bigquery.job.QueryJobConfig]):
|
|
57
|
+
Default ``QueryJobConfig``.
|
|
58
|
+
Will be merged into job configs passed into the ``query`` method.
|
|
59
|
+
location (Optional[str]):
|
|
60
|
+
Default location for jobs / datasets / tables.
|
|
61
|
+
project_id (Optional[str]):
|
|
62
|
+
Project ID for the project which the client acts on behalf of.
|
|
63
|
+
user_agent (Optional[google.api_core.client_info.ClientInfo]):
|
|
64
|
+
The client info used to send a user-agent string along with API
|
|
65
|
+
requests. If ``None``, then default info will be used. Generally,
|
|
66
|
+
you only need to set this if you're developing your own library
|
|
67
|
+
or partner tool.
|
|
68
|
+
"""
|
|
69
|
+
|
|
40
70
|
default_project = None
|
|
41
71
|
|
|
42
72
|
if credentials_base64:
|
|
@@ -60,8 +90,10 @@ def create_bigquery_client(
|
|
|
60
90
|
if project_id is None:
|
|
61
91
|
project_id = default_project
|
|
62
92
|
|
|
93
|
+
client_info = google_client_info(user_agent=user_agent)
|
|
94
|
+
|
|
63
95
|
return bigquery.Client(
|
|
64
|
-
client_info=
|
|
96
|
+
client_info=client_info,
|
|
65
97
|
project=project_id,
|
|
66
98
|
credentials=credentials,
|
|
67
99
|
location=location,
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Copyright 2024 Google LLC
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
"""Shared helper functions for verifying versions of installed modules."""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
import sys
|
|
19
|
+
from typing import Tuple
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def extract_runtime_version() -> Tuple[int, int, int]:
|
|
23
|
+
# Retrieve the version information
|
|
24
|
+
version_info = sys.version_info
|
|
25
|
+
|
|
26
|
+
# Extract the major, minor, and micro components
|
|
27
|
+
major = version_info.major
|
|
28
|
+
minor = version_info.minor
|
|
29
|
+
micro = version_info.micro
|
|
30
|
+
|
|
31
|
+
# Display the version number in a clear format
|
|
32
|
+
return major, minor, micro
|
|
@@ -60,6 +60,7 @@ import re
|
|
|
60
60
|
|
|
61
61
|
from .parse_url import parse_url
|
|
62
62
|
from . import _helpers, _struct, _types
|
|
63
|
+
import sqlalchemy_bigquery_vendored.sqlalchemy.postgresql.base as vendored_postgresql
|
|
63
64
|
|
|
64
65
|
# Illegal characters is intended to be all characters that are not explicitly
|
|
65
66
|
# allowed as part of the flexible column names.
|
|
@@ -189,10 +190,12 @@ class BigQueryExecutionContext(DefaultExecutionContext):
|
|
|
189
190
|
)
|
|
190
191
|
|
|
191
192
|
|
|
192
|
-
class BigQueryCompiler(_struct.SQLCompiler,
|
|
193
|
+
class BigQueryCompiler(_struct.SQLCompiler, vendored_postgresql.PGCompiler):
|
|
193
194
|
compound_keywords = SQLCompiler.compound_keywords.copy()
|
|
194
195
|
compound_keywords[selectable.CompoundSelect.UNION] = "UNION DISTINCT"
|
|
195
196
|
compound_keywords[selectable.CompoundSelect.UNION_ALL] = "UNION ALL"
|
|
197
|
+
compound_keywords[selectable.CompoundSelect.EXCEPT] = "EXCEPT DISTINCT"
|
|
198
|
+
compound_keywords[selectable.CompoundSelect.INTERSECT] = "INTERSECT DISTINCT"
|
|
196
199
|
|
|
197
200
|
def __init__(self, dialect, statement, *args, **kwargs):
|
|
198
201
|
if isinstance(statement, Column):
|
|
@@ -338,7 +341,12 @@ class BigQueryCompiler(_struct.SQLCompiler, SQLCompiler):
|
|
|
338
341
|
# Flag set in the group_by_clause method. Works around missing
|
|
339
342
|
# equivalent to supports_simple_order_by_label for group by.
|
|
340
343
|
if within_group_by:
|
|
341
|
-
|
|
344
|
+
column_label = args[0]
|
|
345
|
+
sql_keywords = {"GROUPING SETS", "ROLLUP", "CUBE"}
|
|
346
|
+
label_str = column_label.compile(dialect=self.dialect).string
|
|
347
|
+
if not any(keyword in label_str for keyword in sql_keywords):
|
|
348
|
+
kwargs["render_label_as_label"] = column_label
|
|
349
|
+
|
|
342
350
|
return super(BigQueryCompiler, self).visit_label(*args, **kwargs)
|
|
343
351
|
|
|
344
352
|
def group_by_clause(self, select, **kw):
|
|
@@ -395,8 +403,6 @@ class BigQueryCompiler(_struct.SQLCompiler, SQLCompiler):
|
|
|
395
403
|
+ ")"
|
|
396
404
|
)
|
|
397
405
|
|
|
398
|
-
visit_notin_op_binary = visit_not_in_op_binary # before 1.4
|
|
399
|
-
|
|
400
406
|
############################################################################
|
|
401
407
|
|
|
402
408
|
############################################################################
|
|
@@ -575,6 +581,9 @@ class BigQueryCompiler(_struct.SQLCompiler, SQLCompiler):
|
|
|
575
581
|
def visit_not_regexp_match_op_binary(self, binary, operator, **kw):
|
|
576
582
|
return "NOT %s" % self.visit_regexp_match_op_binary(binary, operator, **kw)
|
|
577
583
|
|
|
584
|
+
def visit_mod_binary(self, binary, operator, **kw):
|
|
585
|
+
return f"MOD({self.process(binary.left, **kw)}, {self.process(binary.right, **kw)})"
|
|
586
|
+
|
|
578
587
|
|
|
579
588
|
class BigQueryTypeCompiler(GenericTypeCompiler):
|
|
580
589
|
def visit_INTEGER(self, type_, **kw):
|
|
@@ -801,37 +810,99 @@ class BigQueryDDLCompiler(DDLCompiler):
|
|
|
801
810
|
)
|
|
802
811
|
|
|
803
812
|
def _process_time_partitioning(
|
|
804
|
-
self,
|
|
813
|
+
self,
|
|
814
|
+
table: Table,
|
|
815
|
+
time_partitioning: TimePartitioning,
|
|
805
816
|
):
|
|
806
817
|
"""
|
|
807
|
-
Generates a SQL 'PARTITION BY' clause for partitioning a table
|
|
818
|
+
Generates a SQL 'PARTITION BY' clause for partitioning a table,
|
|
808
819
|
|
|
809
820
|
Args:
|
|
810
|
-
- table (Table): The SQLAlchemy table object representing the BigQuery
|
|
821
|
+
- table (Table): The SQLAlchemy table object representing the BigQuery
|
|
822
|
+
table to be partitioned.
|
|
811
823
|
- time_partitioning (TimePartitioning): The time partitioning details,
|
|
812
824
|
including the field to be used for partitioning.
|
|
813
825
|
|
|
814
826
|
Returns:
|
|
815
|
-
- str: A SQL 'PARTITION BY' clause
|
|
816
|
-
partition data on the specified field.
|
|
827
|
+
- str: A SQL 'PARTITION BY' clause.
|
|
817
828
|
|
|
818
829
|
Example:
|
|
819
|
-
- Given a table with
|
|
820
|
-
'time_partitioning.field'
|
|
830
|
+
- Given a table with an 'event_timestamp' and setting time_partitioning.type
|
|
831
|
+
as DAY and by setting 'time_partitioning.field' as 'event_timestamp', the
|
|
832
|
+
function returns:
|
|
821
833
|
"PARTITION BY TIMESTAMP_TRUNC(event_timestamp, DAY)".
|
|
834
|
+
|
|
835
|
+
Current inputs allowed by BQ and covered by this function include:
|
|
836
|
+
* _PARTITIONDATE
|
|
837
|
+
* DATETIME_TRUNC(<datetime_column>, DAY/HOUR/MONTH/YEAR)
|
|
838
|
+
* TIMESTAMP_TRUNC(<timestamp_column>, DAY/HOUR/MONTH/YEAR)
|
|
839
|
+
* DATE_TRUNC(<date_column>, MONTH/YEAR)
|
|
840
|
+
|
|
841
|
+
Additional options allowed by BQ but not explicitly covered by this
|
|
842
|
+
function include:
|
|
843
|
+
* DATE(_PARTITIONTIME)
|
|
844
|
+
* DATE(<timestamp_column>)
|
|
845
|
+
* DATE(<datetime_column>)
|
|
846
|
+
* DATE column
|
|
822
847
|
"""
|
|
823
|
-
field = "_PARTITIONDATE"
|
|
824
|
-
trunc_fn = "DATE_TRUNC"
|
|
825
848
|
|
|
849
|
+
sqltypes = {
|
|
850
|
+
"_PARTITIONDATE": ("_PARTITIONDATE", None),
|
|
851
|
+
"TIMESTAMP": ("TIMESTAMP_TRUNC", {"DAY", "HOUR", "MONTH", "YEAR"}),
|
|
852
|
+
"DATETIME": ("DATETIME_TRUNC", {"DAY", "HOUR", "MONTH", "YEAR"}),
|
|
853
|
+
"DATE": ("DATE_TRUNC", {"MONTH", "YEAR"}),
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
# Extract field (i.e <column_name> or _PARTITIONDATE)
|
|
857
|
+
# AND extract the name of the column_type (i.e. "TIMESTAMP", "DATE",
|
|
858
|
+
# "DATETIME", "_PARTITIONDATE")
|
|
826
859
|
if time_partitioning.field is not None:
|
|
827
860
|
field = time_partitioning.field
|
|
828
|
-
|
|
829
|
-
table.columns[time_partitioning.field].type,
|
|
830
|
-
sqlalchemy.sql.sqltypes.TIMESTAMP,
|
|
831
|
-
):
|
|
832
|
-
trunc_fn = "TIMESTAMP_TRUNC"
|
|
861
|
+
column_type = table.columns[field].type.__visit_name__.upper()
|
|
833
862
|
|
|
834
|
-
|
|
863
|
+
else:
|
|
864
|
+
field = "_PARTITIONDATE"
|
|
865
|
+
column_type = "_PARTITIONDATE"
|
|
866
|
+
|
|
867
|
+
# Extract time_partitioning.type_ (DAY, HOUR, MONTH, YEAR)
|
|
868
|
+
# i.e. generates one partition per type (1/DAY, 1/HOUR)
|
|
869
|
+
# NOTE: if time_partitioning.type_ == None, it gets
|
|
870
|
+
# immediately overwritten by python-bigquery to a default of DAY.
|
|
871
|
+
partitioning_period = time_partitioning.type_
|
|
872
|
+
|
|
873
|
+
# Extract the truncation_function (i.e. DATE_TRUNC)
|
|
874
|
+
# and the set of allowable partition_periods
|
|
875
|
+
# that can be used in that function
|
|
876
|
+
trunc_fn, allowed_partitions = sqltypes[column_type]
|
|
877
|
+
|
|
878
|
+
# Create output:
|
|
879
|
+
# Special Case: _PARTITIONDATE does NOT use a function or partitioning_period
|
|
880
|
+
if trunc_fn == "_PARTITIONDATE":
|
|
881
|
+
return f"PARTITION BY {field}"
|
|
882
|
+
|
|
883
|
+
# Special Case: BigQuery will not accept DAY as partitioning_period for
|
|
884
|
+
# DATE_TRUNC.
|
|
885
|
+
# However, the default argument in python-bigquery for TimePartioning
|
|
886
|
+
# is DAY. This case overwrites that to avoid making a breaking change in
|
|
887
|
+
# python-bigquery.
|
|
888
|
+
# https://github.com/googleapis/python-bigquery/blob/a4d9534a900f13ae7355904cda05097d781f27e3/google/cloud/bigquery/table.py#L2916
|
|
889
|
+
if trunc_fn == "DATE_TRUNC" and partitioning_period == "DAY":
|
|
890
|
+
raise ValueError(
|
|
891
|
+
"The TimePartitioning.type_ must be one of: "
|
|
892
|
+
f"{allowed_partitions}, received {partitioning_period}."
|
|
893
|
+
"NOTE: the `default` value for TimePartioning.type_ as set in "
|
|
894
|
+
"python-bigquery is 'DAY', if you wish to use 'DATE_TRUNC' "
|
|
895
|
+
"ensure that you overwrite the default TimePartitioning.type_. "
|
|
896
|
+
)
|
|
897
|
+
|
|
898
|
+
# Generic Case
|
|
899
|
+
if partitioning_period not in allowed_partitions:
|
|
900
|
+
raise ValueError(
|
|
901
|
+
"The TimePartitioning.type_ must be one of: "
|
|
902
|
+
f"{allowed_partitions}, received {partitioning_period}."
|
|
903
|
+
)
|
|
904
|
+
|
|
905
|
+
return f"PARTITION BY {trunc_fn}({field}, {partitioning_period})"
|
|
835
906
|
|
|
836
907
|
def _process_range_partitioning(
|
|
837
908
|
self, table: Table, range_partitioning: RangePartitioning
|
|
@@ -976,6 +1047,7 @@ class BigQueryDialect(DefaultDialect):
|
|
|
976
1047
|
type_compiler = BigQueryTypeCompiler
|
|
977
1048
|
ddl_compiler = BigQueryDDLCompiler
|
|
978
1049
|
execution_ctx_cls = BigQueryExecutionContext
|
|
1050
|
+
cte_follows_insert = True
|
|
979
1051
|
supports_alter = False
|
|
980
1052
|
supports_comments = True
|
|
981
1053
|
inline_comments = True
|
|
@@ -1001,6 +1073,7 @@ class BigQueryDialect(DefaultDialect):
|
|
|
1001
1073
|
sqlalchemy.sql.sqltypes.Time: BQClassTaggedStr,
|
|
1002
1074
|
sqlalchemy.sql.sqltypes.TIMESTAMP: BQTimestamp,
|
|
1003
1075
|
sqlalchemy.sql.sqltypes.ARRAY: BQArray,
|
|
1076
|
+
sqlalchemy.sql.sqltypes.Enum: sqlalchemy.sql.sqltypes.Enum,
|
|
1004
1077
|
}
|
|
1005
1078
|
|
|
1006
1079
|
def __init__(
|
|
@@ -1313,18 +1386,36 @@ except ImportError: # pragma: NO COVER
|
|
|
1313
1386
|
pass
|
|
1314
1387
|
else:
|
|
1315
1388
|
from alembic.ddl import impl
|
|
1316
|
-
from alembic.ddl.base import
|
|
1389
|
+
from alembic.ddl.base import (
|
|
1390
|
+
ColumnName,
|
|
1391
|
+
ColumnType,
|
|
1392
|
+
format_column_name,
|
|
1393
|
+
format_type,
|
|
1394
|
+
alter_table,
|
|
1395
|
+
alter_column,
|
|
1396
|
+
)
|
|
1317
1397
|
|
|
1318
1398
|
class SqlalchemyBigqueryImpl(impl.DefaultImpl):
|
|
1319
1399
|
__dialect__ = "bigquery"
|
|
1320
1400
|
|
|
1401
|
+
@compiles(ColumnName, "bigquery")
|
|
1402
|
+
def visit_column_name(element: ColumnName, compiler: DDLCompiler, **kw) -> str:
|
|
1403
|
+
"""Replaces the visit_column_name() function in alembic/alembic/ddl/base.py.
|
|
1404
|
+
See https://github.com/googleapis/python-bigquery-sqlalchemy/issues/1097"""
|
|
1405
|
+
|
|
1406
|
+
return "%s RENAME COLUMN %s TO %s" % (
|
|
1407
|
+
alter_table(compiler, element.table_name, element.schema),
|
|
1408
|
+
format_column_name(compiler, element.column_name),
|
|
1409
|
+
format_column_name(compiler, element.newname),
|
|
1410
|
+
)
|
|
1411
|
+
|
|
1321
1412
|
@compiles(ColumnType, "bigquery")
|
|
1322
1413
|
def visit_column_type(element: ColumnType, compiler: DDLCompiler, **kw) -> str:
|
|
1323
1414
|
"""Replaces the visit_column_type() function in alembic/alembic/ddl/base.py.
|
|
1324
1415
|
The alembic version ends in TYPE <element type>, but bigquery requires this syntax:
|
|
1325
1416
|
SET DATA TYPE <element type>"""
|
|
1326
1417
|
|
|
1327
|
-
return "%s %s %s" % (
|
|
1418
|
+
return "%s %s %s" % (
|
|
1328
1419
|
alter_table(compiler, element.table_name, element.schema),
|
|
1329
1420
|
alter_column(compiler, element.column_name),
|
|
1330
1421
|
"SET DATA TYPE %s" % format_type(compiler, element.type_),
|
{sqlalchemy-bigquery-1.11.0.dev2 → sqlalchemy_bigquery-1.12.1/sqlalchemy_bigquery.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sqlalchemy-bigquery
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.12.1
|
|
4
4
|
Summary: SQLAlchemy dialect for BigQuery
|
|
5
5
|
Home-page: https://github.com/googleapis/python-bigquery-sqlalchemy
|
|
6
6
|
Author: The Sqlalchemy-Bigquery Authors
|
|
@@ -28,7 +28,7 @@ Requires-Dist: google-api-core!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0,<3.0.0dev,>=1.31.5
|
|
|
28
28
|
Requires-Dist: google-auth<3.0.0dev,>=1.25.0
|
|
29
29
|
Requires-Dist: google-cloud-bigquery<4.0.0dev,>=3.3.6
|
|
30
30
|
Requires-Dist: packaging
|
|
31
|
-
Requires-Dist: sqlalchemy<
|
|
31
|
+
Requires-Dist: sqlalchemy<3.0.0dev,>=1.4.16
|
|
32
32
|
Provides-Extra: geography
|
|
33
33
|
Requires-Dist: GeoAlchemy2; extra == "geography"
|
|
34
34
|
Requires-Dist: shapely; extra == "geography"
|
|
@@ -43,15 +43,15 @@ Requires-Dist: grpcio<2.0dev,>=1.47.0; extra == "bqstorage"
|
|
|
43
43
|
Requires-Dist: grpcio<2.0dev,>=1.49.1; python_version >= "3.11" and extra == "bqstorage"
|
|
44
44
|
Requires-Dist: pyarrow>=3.0.0; extra == "bqstorage"
|
|
45
45
|
Provides-Extra: all
|
|
46
|
-
Requires-Dist: packaging; extra == "all"
|
|
47
|
-
Requires-Dist: pytz; extra == "all"
|
|
48
|
-
Requires-Dist: google-cloud-bigquery-storage<3.0.0dev,>=2.0.0; extra == "all"
|
|
49
|
-
Requires-Dist: grpcio<2.0dev,>=1.49.1; python_version >= "3.11" and extra == "all"
|
|
50
46
|
Requires-Dist: GeoAlchemy2; extra == "all"
|
|
47
|
+
Requires-Dist: shapely; extra == "all"
|
|
51
48
|
Requires-Dist: grpcio<2.0dev,>=1.47.0; extra == "all"
|
|
52
|
-
Requires-Dist:
|
|
49
|
+
Requires-Dist: pytz; extra == "all"
|
|
50
|
+
Requires-Dist: packaging; extra == "all"
|
|
53
51
|
Requires-Dist: pyarrow>=3.0.0; extra == "all"
|
|
54
|
-
Requires-Dist:
|
|
52
|
+
Requires-Dist: google-cloud-bigquery-storage<3.0.0dev,>=2.0.0; extra == "all"
|
|
53
|
+
Requires-Dist: alembic; extra == "all"
|
|
54
|
+
Requires-Dist: grpcio<2.0dev,>=1.49.1; python_version >= "3.11" and extra == "all"
|
|
55
55
|
|
|
56
56
|
SQLAlchemy Dialect for BigQuery
|
|
57
57
|
===============================
|
|
@@ -89,9 +89,6 @@ In order to use this library, you first need to go through the following steps:
|
|
|
89
89
|
.. _Enable the BigQuery Storage API.: https://console.cloud.google.com/apis/library/bigquery.googleapis.com
|
|
90
90
|
.. _Setup Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html
|
|
91
91
|
|
|
92
|
-
.. note::
|
|
93
|
-
This library is a prerelease to gauge compatiblity with SQLAlchemy
|
|
94
|
-
versions >= 1.4.16 and < 2.1
|
|
95
92
|
|
|
96
93
|
Installation
|
|
97
94
|
------------
|
|
@@ -164,7 +161,7 @@ SQLAlchemy
|
|
|
164
161
|
from sqlalchemy.schema import *
|
|
165
162
|
engine = create_engine('bigquery://project')
|
|
166
163
|
table = Table('dataset.table', MetaData(bind=engine), autoload=True)
|
|
167
|
-
print(select([func.count('*')], from_obj=table().scalar())
|
|
164
|
+
print(select([func.count('*')], from_obj=table().scalar()))
|
|
168
165
|
|
|
169
166
|
|
|
170
167
|
Project
|
|
@@ -194,7 +191,7 @@ Alternatively, you can choose either of the following approaches:
|
|
|
194
191
|
credentials_info = {
|
|
195
192
|
"type": "service_account",
|
|
196
193
|
"project_id": "your-service-account-project-id"
|
|
197
|
-
}
|
|
194
|
+
}
|
|
198
195
|
engine = create_engine('bigquery://', credentials_info=credentials_info)
|
|
199
196
|
|
|
200
197
|
Location
|
|
@@ -2,12 +2,14 @@ AUTHORS
|
|
|
2
2
|
LICENSE
|
|
3
3
|
MANIFEST.in
|
|
4
4
|
README.rst
|
|
5
|
+
pyproject.toml
|
|
5
6
|
setup.cfg
|
|
6
7
|
setup.py
|
|
7
8
|
sqlalchemy_bigquery/__init__.py
|
|
8
9
|
sqlalchemy_bigquery/_helpers.py
|
|
9
10
|
sqlalchemy_bigquery/_struct.py
|
|
10
11
|
sqlalchemy_bigquery/_types.py
|
|
12
|
+
sqlalchemy_bigquery/_versions_helpers.py
|
|
11
13
|
sqlalchemy_bigquery/base.py
|
|
12
14
|
sqlalchemy_bigquery/geography.py
|
|
13
15
|
sqlalchemy_bigquery/parse_url.py
|
|
@@ -38,6 +40,7 @@ tests/unit/__init__.py
|
|
|
38
40
|
tests/unit/conftest.py
|
|
39
41
|
tests/unit/fauxdbi.py
|
|
40
42
|
tests/unit/test__struct.py
|
|
43
|
+
tests/unit/test_alembic.py
|
|
41
44
|
tests/unit/test_catalog_functions.py
|
|
42
45
|
tests/unit/test_comments.py
|
|
43
46
|
tests/unit/test_compiler.py
|
|
@@ -52,4 +55,11 @@ tests/unit/test_select.py
|
|
|
52
55
|
tests/unit/test_sqlalchemy_bigquery.py
|
|
53
56
|
tests/unit/test_table_options.py
|
|
54
57
|
tests/unit/test_version.py
|
|
55
|
-
tests/unit/test_view.py
|
|
58
|
+
tests/unit/test_view.py
|
|
59
|
+
third_party/sqlalchemy_bigquery_vendored/__init__.py
|
|
60
|
+
third_party/sqlalchemy_bigquery_vendored/py.typed
|
|
61
|
+
third_party/sqlalchemy_bigquery_vendored/sqlalchemy/AUTHORS
|
|
62
|
+
third_party/sqlalchemy_bigquery_vendored/sqlalchemy/LICENSE
|
|
63
|
+
third_party/sqlalchemy_bigquery_vendored/sqlalchemy/__init__.py
|
|
64
|
+
third_party/sqlalchemy_bigquery_vendored/sqlalchemy/postgresql/__init__.py
|
|
65
|
+
third_party/sqlalchemy_bigquery_vendored/sqlalchemy/postgresql/base.py
|