api-foundry-query-engine 0.8.59__tar.gz → 0.8.60__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.
- {api_foundry_query_engine-0.8.59 → api_foundry_query_engine-0.8.60}/PKG-INFO +1 -1
- api_foundry_query_engine-0.8.60/api_foundry_query_engine/__init__.py +1 -0
- {api_foundry_query_engine-0.8.59 → api_foundry_query_engine-0.8.60}/api_foundry_query_engine/adapters/gateway_adapter.py +26 -1
- api_foundry_query_engine-0.8.59/api_foundry_query_engine/__init__.py +0 -1
- {api_foundry_query_engine-0.8.59 → api_foundry_query_engine-0.8.60}/.gitignore +0 -0
- {api_foundry_query_engine-0.8.59 → api_foundry_query_engine-0.8.60}/LICENSE +0 -0
- {api_foundry_query_engine-0.8.59 → api_foundry_query_engine-0.8.60}/api_foundry_query_engine/.pre-commit-config.yaml +0 -0
- {api_foundry_query_engine-0.8.59 → api_foundry_query_engine-0.8.60}/api_foundry_query_engine/adapters/adapter.py +0 -0
- {api_foundry_query_engine-0.8.59 → api_foundry_query_engine-0.8.60}/api_foundry_query_engine/adapters/case_change_adapter.py +0 -0
- {api_foundry_query_engine-0.8.59 → api_foundry_query_engine-0.8.60}/api_foundry_query_engine/adapters/security_adapter.py +0 -0
- {api_foundry_query_engine-0.8.59 → api_foundry_query_engine-0.8.60}/api_foundry_query_engine/connectors/connection.py +0 -0
- {api_foundry_query_engine-0.8.59 → api_foundry_query_engine-0.8.60}/api_foundry_query_engine/connectors/connection_factory.py +0 -0
- {api_foundry_query_engine-0.8.59 → api_foundry_query_engine-0.8.60}/api_foundry_query_engine/connectors/oracle_connector.py +0 -0
- {api_foundry_query_engine-0.8.59 → api_foundry_query_engine-0.8.60}/api_foundry_query_engine/connectors/postgres_connection.py +0 -0
- {api_foundry_query_engine-0.8.59 → api_foundry_query_engine-0.8.60}/api_foundry_query_engine/dao/batch_operation_handler.py +0 -0
- {api_foundry_query_engine-0.8.59 → api_foundry_query_engine-0.8.60}/api_foundry_query_engine/dao/dao.py +0 -0
- {api_foundry_query_engine-0.8.59 → api_foundry_query_engine-0.8.60}/api_foundry_query_engine/dao/operation_dao.py +0 -0
- {api_foundry_query_engine-0.8.59 → api_foundry_query_engine-0.8.60}/api_foundry_query_engine/dao/sql_custom_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.59 → api_foundry_query_engine-0.8.60}/api_foundry_query_engine/dao/sql_delete_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.59 → api_foundry_query_engine-0.8.60}/api_foundry_query_engine/dao/sql_insert_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.59 → api_foundry_query_engine-0.8.60}/api_foundry_query_engine/dao/sql_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.59 → api_foundry_query_engine-0.8.60}/api_foundry_query_engine/dao/sql_restore_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.59 → api_foundry_query_engine-0.8.60}/api_foundry_query_engine/dao/sql_select_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.59 → api_foundry_query_engine-0.8.60}/api_foundry_query_engine/dao/sql_subselect_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.59 → api_foundry_query_engine-0.8.60}/api_foundry_query_engine/dao/sql_update_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.59 → api_foundry_query_engine-0.8.60}/api_foundry_query_engine/lambda_handler.py +0 -0
- {api_foundry_query_engine-0.8.59 → api_foundry_query_engine-0.8.60}/api_foundry_query_engine/operation.py +0 -0
- {api_foundry_query_engine-0.8.59 → api_foundry_query_engine-0.8.60}/api_foundry_query_engine/services/service.py +0 -0
- {api_foundry_query_engine-0.8.59 → api_foundry_query_engine-0.8.60}/api_foundry_query_engine/services/transactional_service.py +0 -0
- {api_foundry_query_engine-0.8.59 → api_foundry_query_engine-0.8.60}/api_foundry_query_engine/utils/api_model.py +0 -0
- {api_foundry_query_engine-0.8.59 → api_foundry_query_engine-0.8.60}/api_foundry_query_engine/utils/app_exception.py +0 -0
- {api_foundry_query_engine-0.8.59 → api_foundry_query_engine-0.8.60}/api_foundry_query_engine/utils/claims_check.py +0 -0
- {api_foundry_query_engine-0.8.59 → api_foundry_query_engine-0.8.60}/api_foundry_query_engine/utils/dependency_resolver.py +0 -0
- {api_foundry_query_engine-0.8.59 → api_foundry_query_engine-0.8.60}/api_foundry_query_engine/utils/logger.py +0 -0
- {api_foundry_query_engine-0.8.59 → api_foundry_query_engine-0.8.60}/api_foundry_query_engine/utils/reference_resolver.py +0 -0
- {api_foundry_query_engine-0.8.59 → api_foundry_query_engine-0.8.60}/api_foundry_query_engine/utils/token_decoder.py +0 -0
- {api_foundry_query_engine-0.8.59 → api_foundry_query_engine-0.8.60}/pyproject.toml +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: api-foundry-query-engine
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.60
|
|
4
4
|
Summary: The AWS lambda service handler use by the `api_foundry` project is a powerful tool designed to automate the deployment of REST APIs on AWS using Lambda services to access and interact with relational databases (RDBMS). This project leverages the OpenAPI specification to define and manage the APIs
|
|
5
5
|
Project-URL: Documentation, https://github.com/DanRepik/api-foundry
|
|
6
6
|
Project-URL: Source, https://github.com/DanRepik/api-foundry
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.8.60"
|
|
@@ -99,7 +99,16 @@ class GatewayAdapter(Adapter):
|
|
|
99
99
|
|
|
100
100
|
event_params = {}
|
|
101
101
|
|
|
102
|
-
|
|
102
|
+
raw_path = event.get("path") or ""
|
|
103
|
+
path_parameters = event.get("pathParameters") or {}
|
|
104
|
+
if "proxy" in path_parameters and not raw_path:
|
|
105
|
+
raw_path = f"/{path_parameters['proxy']}"
|
|
106
|
+
extracted_path_params = self._extract_path_params(resource, raw_path)
|
|
107
|
+
for key, value in extracted_path_params.items():
|
|
108
|
+
if key not in path_parameters or path_parameters.get(key) in (None, "", "None"):
|
|
109
|
+
path_parameters[key] = value
|
|
110
|
+
|
|
111
|
+
path_parameters = self._convert_parameters(path_parameters)
|
|
103
112
|
if path_parameters is not None:
|
|
104
113
|
event_params.update(path_parameters)
|
|
105
114
|
|
|
@@ -148,6 +157,22 @@ class GatewayAdapter(Adapter):
|
|
|
148
157
|
result[parameter] = value
|
|
149
158
|
return result
|
|
150
159
|
|
|
160
|
+
def _extract_path_params(self, resource: Optional[str], path: str) -> Dict[str, str]:
|
|
161
|
+
if not resource or not path:
|
|
162
|
+
return {}
|
|
163
|
+
|
|
164
|
+
resource_parts = [p for p in resource.split("/") if p]
|
|
165
|
+
path_parts = [p for p in path.split("/") if p]
|
|
166
|
+
params: Dict[str, str] = {}
|
|
167
|
+
|
|
168
|
+
for template, actual in zip(resource_parts, path_parts):
|
|
169
|
+
if template.startswith("{") and template.endswith("}"):
|
|
170
|
+
key = template[1:-1]
|
|
171
|
+
if key:
|
|
172
|
+
params[key] = actual
|
|
173
|
+
|
|
174
|
+
return params
|
|
175
|
+
|
|
151
176
|
def split_params(self, parameters: Dict[str, Any]) -> Tuple[Dict[str, Any], Dict[str, Any]]:
|
|
152
177
|
"""
|
|
153
178
|
Split a dictionary into two dictionaries based on keys.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.8.59"
|
|
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
|
|
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
|