apache-airflow-providers-common-sql 1.21.0rc2__py3-none-any.whl → 1.23.0rc1__py3-none-any.whl

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.
@@ -1,256 +0,0 @@
1
- # Licensed to the Apache Software Foundation (ASF) under one
2
- # or more contributor license agreements. See the NOTICE file
3
- # distributed with this work for additional information
4
- # regarding copyright ownership. The ASF licenses this file
5
- # to you under the Apache License, Version 2.0 (the
6
- # "License"); you may not use this file except in compliance
7
- # with the License. You may obtain a copy of the License at
8
- #
9
- # http://www.apache.org/licenses/LICENSE-2.0
10
- #
11
- # Unless required by applicable law or agreed to in writing,
12
- # software distributed under the License is distributed on an
13
- # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- # KIND, either express or implied. See the License for the
15
- # specific language governing permissions and limitations
16
- # under the License.
17
- #
18
- # This is automatically generated stub for the `common.sql` provider
19
- #
20
- # This file is generated automatically by the `update-common-sql-api stubs` pre-commit
21
- # and the .pyi file represents part of the "public" API that the
22
- # `common.sql` provider exposes to other providers.
23
- #
24
- # Any, potentially breaking change in the stubs will require deliberate manual action from the contributor
25
- # making a change to the `common.sql` provider. Those stubs are also used by MyPy automatically when checking
26
- # if only public API of the common.sql provider is used by all the other providers.
27
- #
28
- # You can read more in the README_API.md file
29
- #
30
- """
31
- Definition of the public interface for airflow.providers.common.sql.operators.sql
32
- isort:skip_file
33
- """
34
- from _typeshed import Incomplete as Incomplete
35
- from airflow.models import BaseOperator as BaseOperator, SkipMixin as SkipMixin
36
- from airflow.providers.common.sql.hooks.sql import DbApiHook as DbApiHook
37
- from airflow.providers.openlineage.extractors import OperatorLineage as OperatorLineage
38
- from airflow.utils.context import Context as Context
39
- from typing import Any, Callable, ClassVar, Iterable, Mapping, Sequence, SupportsAbs
40
-
41
- def parse_boolean(val: str) -> str | bool: ...
42
-
43
- class BaseSQLOperator(BaseOperator):
44
- conn_id_field: str
45
- template_fields: Sequence[str]
46
- conn_id: Incomplete
47
- database: Incomplete
48
- hook_params: Incomplete
49
- retry_on_failure: Incomplete
50
- def __init__(
51
- self,
52
- *,
53
- conn_id: str | None = None,
54
- database: str | None = None,
55
- hook_params: dict | None = None,
56
- retry_on_failure: bool = True,
57
- **kwargs,
58
- ) -> None: ...
59
- def get_db_hook(self) -> DbApiHook: ...
60
-
61
- class SQLExecuteQueryOperator(BaseSQLOperator):
62
- def _raise_exception(self, exception_string: str) -> Incomplete: ...
63
- template_fields: Sequence[str]
64
- template_ext: Sequence[str]
65
- template_fields_renderers: ClassVar[dict]
66
- ui_color: str
67
- sql: Incomplete
68
- autocommit: Incomplete
69
- parameters: Incomplete
70
- handler: Incomplete
71
- split_statements: Incomplete
72
- return_last: Incomplete
73
- show_return_value_in_logs: Incomplete
74
- def __init__(
75
- self,
76
- *,
77
- sql: str | list[str],
78
- autocommit: bool = False,
79
- parameters: Mapping | Iterable | None = None,
80
- handler: Callable[[Any], list[tuple] | None] = ...,
81
- output_processor: (
82
- Callable[
83
- [list[Any], list[Sequence[Sequence] | None]],
84
- list[Any] | tuple[list[Sequence[Sequence] | None], list],
85
- ]
86
- | None
87
- ) = None,
88
- conn_id: str | None = None,
89
- database: str | None = None,
90
- split_statements: bool | None = None,
91
- return_last: bool = True,
92
- show_return_value_in_logs: bool = False,
93
- **kwargs,
94
- ) -> None: ...
95
- def execute(self, context) -> None: ...
96
- def prepare_template(self) -> None: ...
97
- def get_openlineage_facets_on_start(self) -> OperatorLineage | None: ...
98
- def get_openlineage_facets_on_complete(self, task_instance) -> OperatorLineage | None: ...
99
-
100
- class SQLColumnCheckOperator(BaseSQLOperator):
101
- template_fields: Sequence[str]
102
- template_fields_renderers: ClassVar[dict]
103
- sql_check_template: str
104
- column_checks: Incomplete
105
- table: Incomplete
106
- column_mapping: Incomplete
107
- partition_clause: Incomplete
108
- accept_none: Incomplete
109
- sql: Incomplete
110
- def __init__(
111
- self,
112
- *,
113
- table: str,
114
- column_mapping: dict[str, dict[str, Any]],
115
- partition_clause: str | None = None,
116
- conn_id: str | None = None,
117
- database: str | None = None,
118
- accept_none: bool = True,
119
- **kwargs,
120
- ) -> None: ...
121
- def execute(self, context: Context): ...
122
-
123
- class SQLTableCheckOperator(BaseSQLOperator):
124
- template_fields: Sequence[str]
125
- template_fields_renderers: ClassVar[dict]
126
- sql_check_template: str
127
- table: Incomplete
128
- checks: Incomplete
129
- partition_clause: Incomplete
130
- sql: Incomplete
131
- def __init__(
132
- self,
133
- *,
134
- table: str,
135
- checks: dict[str, dict[str, Any]],
136
- partition_clause: str | None = None,
137
- conn_id: str | None = None,
138
- database: str | None = None,
139
- **kwargs,
140
- ) -> None: ...
141
- def execute(self, context: Context): ...
142
-
143
- class SQLCheckOperator(BaseSQLOperator):
144
- template_fields: Sequence[str]
145
- template_ext: Sequence[str]
146
- template_fields_renderers: ClassVar[dict]
147
- ui_color: str
148
- sql: Incomplete
149
- parameters: Incomplete
150
- def __init__(
151
- self,
152
- *,
153
- sql: str,
154
- conn_id: str | None = None,
155
- database: str | None = None,
156
- parameters: Iterable | Mapping[str, Any] | None = None,
157
- **kwargs,
158
- ) -> None: ...
159
- def execute(self, context: Context): ...
160
-
161
- class SQLValueCheckOperator(BaseSQLOperator):
162
- __mapper_args__: Incomplete
163
- template_fields: Sequence[str]
164
- template_ext: Sequence[str]
165
- template_fields_renderers: ClassVar[dict]
166
- ui_color: str
167
- sql: Incomplete
168
- pass_value: Incomplete
169
- tol: Incomplete
170
- has_tolerance: Incomplete
171
- def __init__(
172
- self,
173
- *,
174
- sql: str,
175
- pass_value: Any,
176
- tolerance: Any = None,
177
- conn_id: str | None = None,
178
- database: str | None = None,
179
- **kwargs,
180
- ) -> None: ...
181
- def check_value(self, records) -> None: ...
182
- def execute(self, context: Context): ...
183
-
184
- class SQLIntervalCheckOperator(BaseSQLOperator):
185
- __mapper_args__: Incomplete
186
- template_fields: Sequence[str]
187
- template_ext: Sequence[str]
188
- template_fields_renderers: ClassVar[dict]
189
- ui_color: str
190
- ratio_formulas: Incomplete
191
- ratio_formula: Incomplete
192
- ignore_zero: Incomplete
193
- table: Incomplete
194
- metrics_thresholds: Incomplete
195
- metrics_sorted: Incomplete
196
- date_filter_column: Incomplete
197
- days_back: Incomplete
198
- sql1: Incomplete
199
- sql2: Incomplete
200
- def __init__(
201
- self,
202
- *,
203
- table: str,
204
- metrics_thresholds: dict[str, int],
205
- date_filter_column: str | None = "ds",
206
- days_back: SupportsAbs[int] = -7,
207
- ratio_formula: str | None = "max_over_min",
208
- ignore_zero: bool = True,
209
- conn_id: str | None = None,
210
- database: str | None = None,
211
- **kwargs,
212
- ) -> None: ...
213
- def execute(self, context: Context): ...
214
-
215
- class SQLThresholdCheckOperator(BaseSQLOperator):
216
- template_fields: Sequence[str]
217
- template_ext: Sequence[str]
218
- template_fields_renderers: ClassVar[dict]
219
- sql: Incomplete
220
- min_threshold: Incomplete
221
- max_threshold: Incomplete
222
- def __init__(
223
- self,
224
- *,
225
- sql: str,
226
- min_threshold: Any,
227
- max_threshold: Any,
228
- conn_id: str | None = None,
229
- database: str | None = None,
230
- **kwargs,
231
- ) -> None: ...
232
- def execute(self, context: Context): ...
233
- def push(self, meta_data) -> None: ...
234
-
235
- class BranchSQLOperator(BaseSQLOperator, SkipMixin):
236
- template_fields: Sequence[str]
237
- template_ext: Sequence[str]
238
- template_fields_renderers: ClassVar[dict]
239
- ui_color: str
240
- ui_fgcolor: str
241
- sql: Incomplete
242
- parameters: Incomplete
243
- follow_task_ids_if_true: Incomplete
244
- follow_task_ids_if_false: Incomplete
245
- def __init__(
246
- self,
247
- *,
248
- sql: str,
249
- follow_task_ids_if_true: list[str],
250
- follow_task_ids_if_false: list[str],
251
- conn_id: str = "default_conn_id",
252
- database: str | None = None,
253
- parameters: Iterable | Mapping[str, Any] | None = None,
254
- **kwargs,
255
- ) -> None: ...
256
- def execute(self, context: Context): ...
@@ -1,21 +0,0 @@
1
- airflow/providers/common/sql/LICENSE,sha256=FFb4jd2AXnOOf7XLP04pQW6jbdhG49TxlGY6fFpCV1Y,13609
2
- airflow/providers/common/sql/README_API.md,sha256=CxhaS8EedZ4dcbLUPC4-GLCMaY3OH96oHxXttUGU06E,5932
3
- airflow/providers/common/sql/__init__.py,sha256=epCDxgCEfDK8S3SdIHnitpPFOA_Ac4x8u0iDFaxlKdU,1498
4
- airflow/providers/common/sql/get_provider_info.py,sha256=m1EUPSNe446ycNo82p4O5FGUt4awASnsZxRO7LV4CJM,3584
5
- airflow/providers/common/sql/doc/adr/0001-record-architecture-decisions.md,sha256=TfANqrzoFto9PMOMza3MitIkXHGLx2kY_BhhF-N0_ow,1675
6
- airflow/providers/common/sql/doc/adr/0002-return-common-data-structure-from-dbapihook-derived-hooks.md,sha256=ze5w9IVS-HkUwdZvPW8_JaJaVwel7-N6XdEVN4pTuCE,8457
7
- airflow/providers/common/sql/hooks/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
8
- airflow/providers/common/sql/hooks/handlers.py,sha256=pzZg6gDWQa_bIpoFCs3J_o_07Eb9EpbJIiNCk2e07e4,3413
9
- airflow/providers/common/sql/hooks/handlers.pyi,sha256=EKYi9Qonia4T06GHm62BJjOF2D7UR3WG5xfD1r7-JGE,1771
10
- airflow/providers/common/sql/hooks/sql.py,sha256=vIR_HkgWQ0b22Nknu5EKm_v11XM3IPH4ACnSQbqrE_c,30992
11
- airflow/providers/common/sql/hooks/sql.pyi,sha256=OTtj9D5LE8mMHCZnN4yTStWTn8Iz5XpEsTiFpUgt10w,6010
12
- airflow/providers/common/sql/operators/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
13
- airflow/providers/common/sql/operators/sql.py,sha256=Y3yjeYvsPJtz7RCf8rkkispvszbAufIqd8GSrOVqXvo,49124
14
- airflow/providers/common/sql/operators/sql.pyi,sha256=NQD2Q0S0R4L1rmJWvORij9ej6SOBca04oUQZu5Oo6AU,8443
15
- airflow/providers/common/sql/sensors/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
16
- airflow/providers/common/sql/sensors/sql.py,sha256=vJqxvDpwmGbq_6kMMqU4YjhHhcbhDhHYjJ2ufhLDmGc,5519
17
- airflow/providers/common/sql/sensors/sql.pyi,sha256=3agRcNF_FT3_6QnD-sZOI8pV0lBjEalOAIKRINfQ0MI,2467
18
- apache_airflow_providers_common_sql-1.21.0rc2.dist-info/entry_points.txt,sha256=h8UXRp2crPuGmYVYRM5oe168qIh7g-4t2QQbVMizKjI,106
19
- apache_airflow_providers_common_sql-1.21.0rc2.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
20
- apache_airflow_providers_common_sql-1.21.0rc2.dist-info/METADATA,sha256=AjH1HZRdCbRSr1QKXdJXIWApGnCERIOl4CbZgE3opgc,6167
21
- apache_airflow_providers_common_sql-1.21.0rc2.dist-info/RECORD,,