api-foundry-query-engine 0.8.42__tar.gz → 0.8.44__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.42 → api_foundry_query_engine-0.8.44}/PKG-INFO +1 -1
- api_foundry_query_engine-0.8.44/api_foundry_query_engine/__init__.py +1 -0
- {api_foundry_query_engine-0.8.42 → api_foundry_query_engine-0.8.44}/api_foundry_query_engine/dao/sql_insert_query_handler.py +6 -17
- api_foundry_query_engine-0.8.42/api_foundry_query_engine/__init__.py +0 -1
- {api_foundry_query_engine-0.8.42 → api_foundry_query_engine-0.8.44}/.gitignore +0 -0
- {api_foundry_query_engine-0.8.42 → api_foundry_query_engine-0.8.44}/LICENSE +0 -0
- {api_foundry_query_engine-0.8.42 → api_foundry_query_engine-0.8.44}/api_foundry_query_engine/.pre-commit-config.yaml +0 -0
- {api_foundry_query_engine-0.8.42 → api_foundry_query_engine-0.8.44}/api_foundry_query_engine/adapters/adapter.py +0 -0
- {api_foundry_query_engine-0.8.42 → api_foundry_query_engine-0.8.44}/api_foundry_query_engine/adapters/case_change_adapter.py +0 -0
- {api_foundry_query_engine-0.8.42 → api_foundry_query_engine-0.8.44}/api_foundry_query_engine/adapters/gateway_adapter.py +0 -0
- {api_foundry_query_engine-0.8.42 → api_foundry_query_engine-0.8.44}/api_foundry_query_engine/adapters/security_adapter.py +0 -0
- {api_foundry_query_engine-0.8.42 → api_foundry_query_engine-0.8.44}/api_foundry_query_engine/connectors/connection.py +0 -0
- {api_foundry_query_engine-0.8.42 → api_foundry_query_engine-0.8.44}/api_foundry_query_engine/connectors/connection_factory.py +0 -0
- {api_foundry_query_engine-0.8.42 → api_foundry_query_engine-0.8.44}/api_foundry_query_engine/connectors/oracle_connector.py +0 -0
- {api_foundry_query_engine-0.8.42 → api_foundry_query_engine-0.8.44}/api_foundry_query_engine/connectors/postgres_connection.py +0 -0
- {api_foundry_query_engine-0.8.42 → api_foundry_query_engine-0.8.44}/api_foundry_query_engine/dao/batch_operation_handler.py +0 -0
- {api_foundry_query_engine-0.8.42 → api_foundry_query_engine-0.8.44}/api_foundry_query_engine/dao/dao.py +0 -0
- {api_foundry_query_engine-0.8.42 → api_foundry_query_engine-0.8.44}/api_foundry_query_engine/dao/operation_dao.py +0 -0
- {api_foundry_query_engine-0.8.42 → api_foundry_query_engine-0.8.44}/api_foundry_query_engine/dao/sql_custom_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.42 → api_foundry_query_engine-0.8.44}/api_foundry_query_engine/dao/sql_delete_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.42 → api_foundry_query_engine-0.8.44}/api_foundry_query_engine/dao/sql_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.42 → api_foundry_query_engine-0.8.44}/api_foundry_query_engine/dao/sql_restore_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.42 → api_foundry_query_engine-0.8.44}/api_foundry_query_engine/dao/sql_select_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.42 → api_foundry_query_engine-0.8.44}/api_foundry_query_engine/dao/sql_subselect_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.42 → api_foundry_query_engine-0.8.44}/api_foundry_query_engine/dao/sql_update_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.42 → api_foundry_query_engine-0.8.44}/api_foundry_query_engine/lambda_handler.py +0 -0
- {api_foundry_query_engine-0.8.42 → api_foundry_query_engine-0.8.44}/api_foundry_query_engine/operation.py +0 -0
- {api_foundry_query_engine-0.8.42 → api_foundry_query_engine-0.8.44}/api_foundry_query_engine/services/service.py +0 -0
- {api_foundry_query_engine-0.8.42 → api_foundry_query_engine-0.8.44}/api_foundry_query_engine/services/transactional_service.py +0 -0
- {api_foundry_query_engine-0.8.42 → api_foundry_query_engine-0.8.44}/api_foundry_query_engine/utils/api_model.py +0 -0
- {api_foundry_query_engine-0.8.42 → api_foundry_query_engine-0.8.44}/api_foundry_query_engine/utils/app_exception.py +0 -0
- {api_foundry_query_engine-0.8.42 → api_foundry_query_engine-0.8.44}/api_foundry_query_engine/utils/claims_check.py +0 -0
- {api_foundry_query_engine-0.8.42 → api_foundry_query_engine-0.8.44}/api_foundry_query_engine/utils/dependency_resolver.py +0 -0
- {api_foundry_query_engine-0.8.42 → api_foundry_query_engine-0.8.44}/api_foundry_query_engine/utils/gateway_operation.py +0 -0
- {api_foundry_query_engine-0.8.42 → api_foundry_query_engine-0.8.44}/api_foundry_query_engine/utils/logger.py +0 -0
- {api_foundry_query_engine-0.8.42 → api_foundry_query_engine-0.8.44}/api_foundry_query_engine/utils/reference_resolver.py +0 -0
- {api_foundry_query_engine-0.8.42 → api_foundry_query_engine-0.8.44}/api_foundry_query_engine/utils/token_decoder.py +0 -0
- {api_foundry_query_engine-0.8.42 → api_foundry_query_engine-0.8.44}/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.44
|
|
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.44"
|
|
@@ -41,16 +41,6 @@ class SQLInsertSchemaQueryHandler(SQLSchemaQueryHandler):
|
|
|
41
41
|
+ f"schema_object: {schema_object.api_name}, "
|
|
42
42
|
+ f"property: {self.concurrency_property.api_name}",
|
|
43
43
|
)
|
|
44
|
-
|
|
45
|
-
# Cache selection_results using write permissions for INSERT
|
|
46
|
-
# Set the parent class's private variable to override its behavior
|
|
47
|
-
self._SQLSchemaQueryHandler__selection_results = (
|
|
48
|
-
self.check_permissions(
|
|
49
|
-
"write",
|
|
50
|
-
self.schema_object.permissions,
|
|
51
|
-
self.schema_object.properties,
|
|
52
|
-
)
|
|
53
|
-
)
|
|
54
44
|
|
|
55
45
|
@property
|
|
56
46
|
def sql(self) -> str:
|
|
@@ -80,25 +70,24 @@ class SQLInsertSchemaQueryHandler(SQLSchemaQueryHandler):
|
|
|
80
70
|
|
|
81
71
|
def _get_returning_clause(self) -> str:
|
|
82
72
|
"""
|
|
83
|
-
Get RETURNING clause based on
|
|
84
|
-
Returns all fields the user has
|
|
73
|
+
Get RETURNING clause based on read permissions.
|
|
74
|
+
Returns all fields the user has read access to.
|
|
85
75
|
"""
|
|
86
|
-
# Get properties user has
|
|
76
|
+
# Get properties user has read permissions for
|
|
87
77
|
allowed_properties = self.check_permissions(
|
|
88
|
-
"
|
|
78
|
+
"read",
|
|
89
79
|
self.schema_object.permissions,
|
|
90
80
|
self.schema_object.properties,
|
|
91
81
|
)
|
|
92
82
|
|
|
93
83
|
if allowed_properties:
|
|
94
|
-
# Return all
|
|
84
|
+
# Return all readable columns
|
|
95
85
|
columns = [
|
|
96
86
|
prop.column_name for prop in allowed_properties.values()
|
|
97
87
|
]
|
|
98
88
|
return f"RETURNING {', '.join(columns)}"
|
|
99
89
|
|
|
100
|
-
# Fallback to primary key if no
|
|
101
|
-
# (shouldn't happen if user can INSERT)
|
|
90
|
+
# Fallback to primary key if no read permissions
|
|
102
91
|
pk_property = self.schema_object.primary_key
|
|
103
92
|
if pk_property:
|
|
104
93
|
return f"RETURNING {pk_property.column_name}"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.8.42"
|
|
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
|
|
File without changes
|