capo-redshift-data 0.9.0__tar.gz → 0.11.0__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.
- {capo_redshift_data-0.9.0/src/capo_redshift_data.egg-info → capo_redshift_data-0.11.0}/PKG-INFO +3 -3
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/pyproject.toml +3 -3
- capo_redshift_data-0.11.0/src/capo_redshift_data/types/_unknown.py +50 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/describe_statement_response.py +7 -1
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/field.py +3 -3
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/query_records.py +3 -3
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/sub_statement_data.py +7 -1
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0/src/capo_redshift_data.egg-info}/PKG-INFO +3 -3
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data.egg-info/requires.txt +1 -1
- capo_redshift_data-0.9.0/src/capo_redshift_data/types/_unknown.py +0 -34
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/LICENSE +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/README.md +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/setup.cfg +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/__init__.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_async.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_auth/_identity.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_auth/_providers.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_auth/_signers.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_auth/_sigv4.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_auth/_zapros_handler.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_aws.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_body.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_iter.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_operations/redshift_data/batch_execute_statement.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_operations/redshift_data/cancel_statement.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_operations/redshift_data/describe_statement.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_operations/redshift_data/describe_table.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_operations/redshift_data/execute_statement.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_operations/redshift_data/get_statement_result.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_operations/redshift_data/get_statement_result_v2.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_operations/redshift_data/list_databases.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_operations/redshift_data/list_schemas.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_operations/redshift_data/list_sessions.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_operations/redshift_data/list_statements.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_operations/redshift_data/list_tables.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_pagination.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_protocol/__init__.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_protocol/errors.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_protocol/eventstream.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_protocol/serialize.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_protocol/xml.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_rule_engine/__init__.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_rule_engine/_aws_partition.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_rule_engine/_endpoint_rule_set.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_rule_engine/_endpoint_runtime.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_services/_aws_config.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_services/_pipeline.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_services/async_redshift_data.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_services/redshift_data.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/errors/__init__.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/errors/_base.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/errors/active_sessions_exceeded_exception.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/errors/active_statements_exceeded_exception.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/errors/active_waiting_requests_exceeded_exception.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/errors/batch_execute_statement_exception.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/errors/database_connection_exception.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/errors/execute_statement_exception.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/errors/internal_server_exception.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/errors/query_timeout_exception.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/errors/resource_not_found_exception.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/errors/validation_exception.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/py.typed +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/_prelude/blob.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/_prelude/timestamp.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/batch_execute_statement_input.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/batch_execute_statement_output.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/blob.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/bool.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/boxed_boolean.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/boxed_double.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/boxed_long.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/cancel_statement_request.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/cancel_statement_response.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/client_token.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/cluster_identifier_string.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/column_list.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/column_metadata.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/column_metadata_list.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/database_list.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/db_group_list.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/describe_statement_request.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/describe_table_request.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/describe_table_response.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/execute_statement_input.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/execute_statement_output.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/execution_mode.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/field_list.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/formatted_sql_records.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/get_statement_result_request.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/get_statement_result_response.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/get_statement_result_v2_request.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/get_statement_result_v2_response.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/integer.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/list_databases_request.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/list_databases_response.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/list_schemas_request.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/list_schemas_response.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/list_sessions_request.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/list_sessions_response.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/list_statements_limit.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/list_statements_request.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/list_statements_response.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/list_tables_request.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/list_tables_response.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/long.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/page_size.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/parameter_name.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/parameter_value.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/result_format_string.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/schema_list.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/secret_arn.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/session_alive_seconds.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/session_data.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/session_list.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/session_status_string.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/sql_list.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/sql_parameter.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/sql_parameters_list.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/sql_records.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/statement_data.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/statement_list.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/statement_name_string.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/statement_status_string.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/statement_string.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/statement_string_list.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/status_string.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/string.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/sub_statement_list.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/table_list.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/table_member.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/uuid.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/wait_time_seconds.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/workgroup_name_string.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data.egg-info/SOURCES.txt +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data.egg-info/dependency_links.txt +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data.egg-info/top_level.txt +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/tests/test_body.py +0 -0
- {capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/tests/test_sigv4.py +0 -0
{capo_redshift_data-0.9.0/src/capo_redshift_data.egg-info → capo_redshift_data-0.11.0}/PKG-INFO
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: capo-redshift-data
|
|
3
|
-
Version: 0.
|
|
4
|
-
Summary: Python SDK for AWS Redshift Data.
|
|
3
|
+
Version: 0.11.0
|
|
4
|
+
Summary: Typed, async Python SDK for AWS Redshift Data.
|
|
5
5
|
Project-URL: Homepage, https://capo-sdk.dev/
|
|
6
6
|
Project-URL: Documentation, https://capo-sdk.dev/services/redshift-data/
|
|
7
7
|
Project-URL: Repository, https://github.com/kap-sh/capo/tree/main/services/redshift-data
|
|
@@ -21,7 +21,7 @@ Classifier: Typing :: Typed
|
|
|
21
21
|
Requires-Python: >=3.10
|
|
22
22
|
Description-Content-Type: text/markdown
|
|
23
23
|
License-File: LICENSE
|
|
24
|
-
Requires-Dist: zapros>=0.
|
|
24
|
+
Requires-Dist: zapros>=0.23.0
|
|
25
25
|
Provides-Extra: anyio
|
|
26
26
|
Requires-Dist: anyio>=3.0; extra == "anyio"
|
|
27
27
|
Provides-Extra: sso
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "capo-redshift-data"
|
|
3
|
-
version = "0.
|
|
4
|
-
description = "Python SDK for AWS Redshift Data."
|
|
3
|
+
version = "0.11.0"
|
|
4
|
+
description = "Typed, async Python SDK for AWS Redshift Data."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.10"
|
|
7
7
|
classifiers = [
|
|
@@ -19,7 +19,7 @@ classifiers = [
|
|
|
19
19
|
"Typing :: Typed",
|
|
20
20
|
]
|
|
21
21
|
dependencies = [
|
|
22
|
-
"zapros>=0.
|
|
22
|
+
"zapros>=0.23.0",
|
|
23
23
|
]
|
|
24
24
|
|
|
25
25
|
[project.urls]
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"""Stand-ins for union variants and events this client doesn't know about.
|
|
2
|
+
|
|
3
|
+
A service may add a union member or an event after the client was generated.
|
|
4
|
+
Smithy asks clients not to fail on those, so deserialization returns one of
|
|
5
|
+
these instead of raising.
|
|
6
|
+
|
|
7
|
+
Both are one more variant of the union, keyed by ``$unknown``: a Smithy member
|
|
8
|
+
name can't contain ``$``, so the key never collides with a real member, and
|
|
9
|
+
``"$unknown" in value`` narrows like any other variant check.
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
from __future__ import annotations
|
|
13
|
+
|
|
14
|
+
from typing_extensions import TypedDict
|
|
15
|
+
|
|
16
|
+
from .._protocol.eventstream import Message
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class UnknownUnionMemberValue(TypedDict, closed=True):
|
|
20
|
+
"""What is known about a union variant this client has no member for."""
|
|
21
|
+
|
|
22
|
+
name: str
|
|
23
|
+
"""The variant's name on the wire."""
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class UnknownEventValue(TypedDict, closed=True):
|
|
27
|
+
"""What is known about an event whose ``:event-type`` this client doesn't know."""
|
|
28
|
+
|
|
29
|
+
name: str
|
|
30
|
+
"""The event's ``:event-type`` header."""
|
|
31
|
+
|
|
32
|
+
message: Message
|
|
33
|
+
"""The raw message, headers and undecoded payload."""
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
UnknownUnionMember = TypedDict(
|
|
37
|
+
"UnknownUnionMember", {"$unknown": UnknownUnionMemberValue}, closed=True
|
|
38
|
+
)
|
|
39
|
+
"""A union variant the service sent that this client has no member for."""
|
|
40
|
+
|
|
41
|
+
UnknownEvent = TypedDict("UnknownEvent", {"$unknown": UnknownEventValue}, closed=True)
|
|
42
|
+
"""An event-stream event whose ``:event-type`` this client doesn't know."""
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
__all__ = [
|
|
46
|
+
"UnknownEvent",
|
|
47
|
+
"UnknownEventValue",
|
|
48
|
+
"UnknownUnionMember",
|
|
49
|
+
"UnknownUnionMemberValue",
|
|
50
|
+
]
|
|
@@ -54,7 +54,9 @@ class DescribeStatementResponse(TypedDict, closed=True):
|
|
|
54
54
|
result_size: "capo_redshift_data.types.long.Long"
|
|
55
55
|
"""<p>The size in bytes of the returned results. A <code>-1</code> indicates the value is null.</p>"""
|
|
56
56
|
redshift_query_id: "capo_redshift_data.types.long.Long"
|
|
57
|
-
"""<p>The identifier of the query generated by Amazon Redshift. These identifiers are also available in the <code>
|
|
57
|
+
"""<p>The identifier of the query generated by Amazon Redshift. These identifiers are also available in the <code>query_id</code> column of the <code>SYS_QUERY_HISTORY</code> system view. </p>"""
|
|
58
|
+
redshift_query_uuid: NotRequired["capo_redshift_data.types.string.String"]
|
|
59
|
+
"""<p>The global unique identifier of the query generated by Amazon Redshift. These identifiers are also available in the <code>query_uuid</code> column of the <code>SYS_QUERY_HISTORY</code> system view. </p>"""
|
|
58
60
|
query_parameters: NotRequired[
|
|
59
61
|
"capo_redshift_data.types.sql_parameters_list.SqlParametersList"
|
|
60
62
|
]
|
|
@@ -118,6 +120,8 @@ def serialize_aws_json_1_1(value: DescribeStatementResponse) -> dict:
|
|
|
118
120
|
out["ResultRows"] = value.get("result_rows", 0)
|
|
119
121
|
out["ResultSize"] = value.get("result_size", 0)
|
|
120
122
|
out["RedshiftQueryId"] = value.get("redshift_query_id", 0)
|
|
123
|
+
if "redshift_query_uuid" in value:
|
|
124
|
+
out["RedshiftQueryUuid"] = value["redshift_query_uuid"]
|
|
121
125
|
if "query_parameters" in value:
|
|
122
126
|
import capo_redshift_data.types.sql_parameters_list
|
|
123
127
|
|
|
@@ -203,6 +207,8 @@ def deserialize_aws_json_1_1(data: dict) -> DescribeStatementResponse:
|
|
|
203
207
|
out["redshift_query_id"] = data["RedshiftQueryId"]
|
|
204
208
|
else:
|
|
205
209
|
out["redshift_query_id"] = 0
|
|
210
|
+
if data.get("RedshiftQueryUuid") is not None:
|
|
211
|
+
out["redshift_query_uuid"] = data["RedshiftQueryUuid"]
|
|
206
212
|
if data.get("QueryParameters") is not None:
|
|
207
213
|
import capo_redshift_data.types.sql_parameters_list
|
|
208
214
|
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/field.py
RENAMED
|
@@ -52,9 +52,9 @@ Field: TypeAlias = (
|
|
|
52
52
|
|
|
53
53
|
# --- awsJson1_1 ser/de ---
|
|
54
54
|
def serialize_aws_json_1_1(value: Field) -> dict:
|
|
55
|
-
if
|
|
55
|
+
if "$unknown" in value:
|
|
56
56
|
raise SerializationError(
|
|
57
|
-
f"Field: cannot serialize unknown variant {value
|
|
57
|
+
f"Field: cannot serialize unknown variant {value['$unknown']['name']!r}"
|
|
58
58
|
)
|
|
59
59
|
elif "isNull" in value:
|
|
60
60
|
return {"isNull": value["isNull"]}
|
|
@@ -112,5 +112,5 @@ def deserialize_aws_json_1_1(data: dict) -> Field:
|
|
|
112
112
|
(k for k, v in data.items() if v is not None and k != "__type"), None
|
|
113
113
|
)
|
|
114
114
|
if name is not None:
|
|
115
|
-
return
|
|
115
|
+
return {"$unknown": {"name": name}}
|
|
116
116
|
raise DeserializationError("Field: no recognized variant key")
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/query_records.py
RENAMED
|
@@ -20,9 +20,9 @@ QueryRecords: TypeAlias = _QueryRecords_CSVRecords | UnknownUnionMember
|
|
|
20
20
|
|
|
21
21
|
# --- awsJson1_1 ser/de ---
|
|
22
22
|
def serialize_aws_json_1_1(value: QueryRecords) -> dict:
|
|
23
|
-
if
|
|
23
|
+
if "$unknown" in value:
|
|
24
24
|
raise SerializationError(
|
|
25
|
-
f"QueryRecords: cannot serialize unknown variant {value
|
|
25
|
+
f"QueryRecords: cannot serialize unknown variant {value['$unknown']['name']!r}"
|
|
26
26
|
)
|
|
27
27
|
elif "CSVRecords" in value:
|
|
28
28
|
return {"CSVRecords": value["CSVRecords"]}
|
|
@@ -38,5 +38,5 @@ def deserialize_aws_json_1_1(data: dict) -> QueryRecords:
|
|
|
38
38
|
(k for k, v in data.items() if v is not None and k != "__type"), None
|
|
39
39
|
)
|
|
40
40
|
if name is not None:
|
|
41
|
-
return
|
|
41
|
+
return {"$unknown": {"name": name}}
|
|
42
42
|
raise DeserializationError("QueryRecords: no recognized variant key")
|
|
@@ -38,7 +38,9 @@ class SubStatementData(TypedDict, closed=True):
|
|
|
38
38
|
result_size: "capo_redshift_data.types.long.Long"
|
|
39
39
|
"""<p>The size in bytes of the returned results. A <code>-1</code> indicates the value is null.</p>"""
|
|
40
40
|
redshift_query_id: "capo_redshift_data.types.long.Long"
|
|
41
|
-
"""<p>The
|
|
41
|
+
"""<p>The identifier of the query generated by Amazon Redshift. These identifiers are also available in the <code>query_id</code> column of the <code>SYS_QUERY_HISTORY</code> system view. </p>"""
|
|
42
|
+
redshift_query_uuid: NotRequired["capo_redshift_data.types.string.String"]
|
|
43
|
+
"""<p>The global unique identifier of the query generated by Amazon Redshift. These identifiers are also available in the <code>query_uuid</code> column of the <code>SYS_QUERY_HISTORY</code> system view. </p>"""
|
|
42
44
|
has_result_set: NotRequired["bool"]
|
|
43
45
|
"""<p>A value that indicates whether the statement has a result set. The result set can be empty. The value is true for an empty result set.</p>"""
|
|
44
46
|
|
|
@@ -73,6 +75,8 @@ def serialize_aws_json_1_1(value: SubStatementData) -> dict:
|
|
|
73
75
|
out["ResultRows"] = value.get("result_rows", 0)
|
|
74
76
|
out["ResultSize"] = value.get("result_size", 0)
|
|
75
77
|
out["RedshiftQueryId"] = value.get("redshift_query_id", 0)
|
|
78
|
+
if "redshift_query_uuid" in value:
|
|
79
|
+
out["RedshiftQueryUuid"] = value["redshift_query_uuid"]
|
|
76
80
|
if "has_result_set" in value:
|
|
77
81
|
out["HasResultSet"] = value["has_result_set"]
|
|
78
82
|
return out
|
|
@@ -122,6 +126,8 @@ def deserialize_aws_json_1_1(data: dict) -> SubStatementData:
|
|
|
122
126
|
out["redshift_query_id"] = data["RedshiftQueryId"]
|
|
123
127
|
else:
|
|
124
128
|
out["redshift_query_id"] = 0
|
|
129
|
+
if data.get("RedshiftQueryUuid") is not None:
|
|
130
|
+
out["redshift_query_uuid"] = data["RedshiftQueryUuid"]
|
|
125
131
|
if data.get("HasResultSet") is not None:
|
|
126
132
|
out["has_result_set"] = data["HasResultSet"]
|
|
127
133
|
return out
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0/src/capo_redshift_data.egg-info}/PKG-INFO
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: capo-redshift-data
|
|
3
|
-
Version: 0.
|
|
4
|
-
Summary: Python SDK for AWS Redshift Data.
|
|
3
|
+
Version: 0.11.0
|
|
4
|
+
Summary: Typed, async Python SDK for AWS Redshift Data.
|
|
5
5
|
Project-URL: Homepage, https://capo-sdk.dev/
|
|
6
6
|
Project-URL: Documentation, https://capo-sdk.dev/services/redshift-data/
|
|
7
7
|
Project-URL: Repository, https://github.com/kap-sh/capo/tree/main/services/redshift-data
|
|
@@ -21,7 +21,7 @@ Classifier: Typing :: Typed
|
|
|
21
21
|
Requires-Python: >=3.10
|
|
22
22
|
Description-Content-Type: text/markdown
|
|
23
23
|
License-File: LICENSE
|
|
24
|
-
Requires-Dist: zapros>=0.
|
|
24
|
+
Requires-Dist: zapros>=0.23.0
|
|
25
25
|
Provides-Extra: anyio
|
|
26
26
|
Requires-Dist: anyio>=3.0; extra == "anyio"
|
|
27
27
|
Provides-Extra: sso
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"""Stand-ins for union variants and events this client doesn't know about.
|
|
2
|
-
|
|
3
|
-
A service may add a union member or an event after the client was generated.
|
|
4
|
-
Smithy asks clients not to fail on those, so deserialization returns one of
|
|
5
|
-
these instead of raising.
|
|
6
|
-
"""
|
|
7
|
-
|
|
8
|
-
from __future__ import annotations
|
|
9
|
-
|
|
10
|
-
from dataclasses import dataclass
|
|
11
|
-
|
|
12
|
-
from .._protocol.eventstream import Message
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
@dataclass(frozen=True)
|
|
16
|
-
class UnknownUnionMember:
|
|
17
|
-
"""A union variant the service sent that this client has no member for."""
|
|
18
|
-
|
|
19
|
-
name: str
|
|
20
|
-
"""The variant's name on the wire."""
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
@dataclass(frozen=True)
|
|
24
|
-
class UnknownEvent:
|
|
25
|
-
"""An event-stream event whose ``:event-type`` this client doesn't know."""
|
|
26
|
-
|
|
27
|
-
event_type: str
|
|
28
|
-
"""The event's ``:event-type`` header."""
|
|
29
|
-
|
|
30
|
-
message: Message
|
|
31
|
-
"""The raw message, headers and undecoded payload."""
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
__all__ = ["UnknownEvent", "UnknownUnionMember"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_auth/_identity.py
RENAMED
|
File without changes
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_auth/_providers.py
RENAMED
|
File without changes
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_auth/_signers.py
RENAMED
|
File without changes
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_auth/_sigv4.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_pagination.py
RENAMED
|
File without changes
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_protocol/__init__.py
RENAMED
|
File without changes
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_protocol/errors.py
RENAMED
|
File without changes
|
|
File without changes
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_protocol/serialize.py
RENAMED
|
File without changes
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_protocol/xml.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/_services/_pipeline.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/errors/__init__.py
RENAMED
|
File without changes
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/errors/_base.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/_prelude/blob.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/boxed_boolean.py
RENAMED
|
File without changes
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/boxed_double.py
RENAMED
|
File without changes
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/boxed_long.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/client_token.py
RENAMED
|
File without changes
|
|
File without changes
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/column_list.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/database_list.py
RENAMED
|
File without changes
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/db_group_list.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/field_list.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/integer.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/page_size.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/schema_list.py
RENAMED
|
File without changes
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/secret_arn.py
RENAMED
|
File without changes
|
|
File without changes
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/session_data.py
RENAMED
|
File without changes
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/session_list.py
RENAMED
|
File without changes
|
|
File without changes
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/sql_list.py
RENAMED
|
File without changes
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/sql_parameter.py
RENAMED
|
File without changes
|
|
File without changes
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/sql_records.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/status_string.py
RENAMED
|
File without changes
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/string.py
RENAMED
|
File without changes
|
|
File without changes
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/table_list.py
RENAMED
|
File without changes
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data/types/table_member.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{capo_redshift_data-0.9.0 → capo_redshift_data-0.11.0}/src/capo_redshift_data.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|