api-foundry-query-engine 0.8.77__tar.gz → 0.8.79__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.77 → api_foundry_query_engine-0.8.79}/PKG-INFO +1 -1
- api_foundry_query_engine-0.8.79/api_foundry_query_engine/__init__.py +1 -0
- {api_foundry_query_engine-0.8.77 → api_foundry_query_engine-0.8.79}/api_foundry_query_engine/connectors/connection_factory.py +1 -3
- {api_foundry_query_engine-0.8.77 → api_foundry_query_engine-0.8.79}/api_foundry_query_engine/dao/sql_query_handler.py +9 -1
- api_foundry_query_engine-0.8.77/api_foundry_query_engine/__init__.py +0 -1
- {api_foundry_query_engine-0.8.77 → api_foundry_query_engine-0.8.79}/.gitignore +0 -0
- {api_foundry_query_engine-0.8.77 → api_foundry_query_engine-0.8.79}/LICENSE +0 -0
- {api_foundry_query_engine-0.8.77 → api_foundry_query_engine-0.8.79}/api_foundry_query_engine/.pre-commit-config.yaml +0 -0
- {api_foundry_query_engine-0.8.77 → api_foundry_query_engine-0.8.79}/api_foundry_query_engine/adapters/adapter.py +0 -0
- {api_foundry_query_engine-0.8.77 → api_foundry_query_engine-0.8.79}/api_foundry_query_engine/adapters/gateway_adapter.py +0 -0
- {api_foundry_query_engine-0.8.77 → api_foundry_query_engine-0.8.79}/api_foundry_query_engine/connectors/connection.py +0 -0
- {api_foundry_query_engine-0.8.77 → api_foundry_query_engine-0.8.79}/api_foundry_query_engine/connectors/postgres_connection.py +0 -0
- {api_foundry_query_engine-0.8.77 → api_foundry_query_engine-0.8.79}/api_foundry_query_engine/dao/batch_operation_handler.py +0 -0
- {api_foundry_query_engine-0.8.77 → api_foundry_query_engine-0.8.79}/api_foundry_query_engine/dao/dao.py +0 -0
- {api_foundry_query_engine-0.8.77 → api_foundry_query_engine-0.8.79}/api_foundry_query_engine/dao/operation_dao.py +0 -0
- {api_foundry_query_engine-0.8.77 → api_foundry_query_engine-0.8.79}/api_foundry_query_engine/dao/sql_custom_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.77 → api_foundry_query_engine-0.8.79}/api_foundry_query_engine/dao/sql_delete_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.77 → api_foundry_query_engine-0.8.79}/api_foundry_query_engine/dao/sql_insert_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.77 → api_foundry_query_engine-0.8.79}/api_foundry_query_engine/dao/sql_restore_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.77 → api_foundry_query_engine-0.8.79}/api_foundry_query_engine/dao/sql_select_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.77 → api_foundry_query_engine-0.8.79}/api_foundry_query_engine/dao/sql_subselect_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.77 → api_foundry_query_engine-0.8.79}/api_foundry_query_engine/dao/sql_update_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.77 → api_foundry_query_engine-0.8.79}/api_foundry_query_engine/lambda_handler.py +0 -0
- {api_foundry_query_engine-0.8.77 → api_foundry_query_engine-0.8.79}/api_foundry_query_engine/operation.py +0 -0
- {api_foundry_query_engine-0.8.77 → api_foundry_query_engine-0.8.79}/api_foundry_query_engine/services/service.py +0 -0
- {api_foundry_query_engine-0.8.77 → api_foundry_query_engine-0.8.79}/api_foundry_query_engine/services/transactional_service.py +0 -0
- {api_foundry_query_engine-0.8.77 → api_foundry_query_engine-0.8.79}/api_foundry_query_engine/utils/api_model.py +0 -0
- {api_foundry_query_engine-0.8.77 → api_foundry_query_engine-0.8.79}/api_foundry_query_engine/utils/app_exception.py +0 -0
- {api_foundry_query_engine-0.8.77 → api_foundry_query_engine-0.8.79}/api_foundry_query_engine/utils/claims_check.py +0 -0
- {api_foundry_query_engine-0.8.77 → api_foundry_query_engine-0.8.79}/api_foundry_query_engine/utils/dependency_resolver.py +0 -0
- {api_foundry_query_engine-0.8.77 → api_foundry_query_engine-0.8.79}/api_foundry_query_engine/utils/logger.py +0 -0
- {api_foundry_query_engine-0.8.77 → api_foundry_query_engine-0.8.79}/api_foundry_query_engine/utils/reference_resolver.py +0 -0
- {api_foundry_query_engine-0.8.77 → api_foundry_query_engine-0.8.79}/api_foundry_query_engine/utils/token_decoder.py +0 -0
- {api_foundry_query_engine-0.8.77 → api_foundry_query_engine-0.8.79}/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.79
|
|
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.79"
|
|
@@ -59,9 +59,7 @@ class ConnectionFactory:
|
|
|
59
59
|
|
|
60
60
|
engine = db_config.get("engine")
|
|
61
61
|
if not engine:
|
|
62
|
-
raise ApplicationException(
|
|
63
|
-
500, "Database 'engine' is not defined in the secret."
|
|
64
|
-
)
|
|
62
|
+
raise ApplicationException(500, "Database 'engine' is not defined in the secret.")
|
|
65
63
|
|
|
66
64
|
if engine == "postgres":
|
|
67
65
|
from .postgres_connection import PostgresConnection
|
|
@@ -382,6 +382,15 @@ class SQLQueryHandler:
|
|
|
382
382
|
return sql
|
|
383
383
|
|
|
384
384
|
def generate_placeholders(self, property: SchemaObjectProperty, value, prefix: Optional[str] = None) -> dict:
|
|
385
|
+
placeholder_name = f"{prefix}_{property.api_name}" if prefix else property.api_name
|
|
386
|
+
if value is None:
|
|
387
|
+
# An unset optional query parameter must bind an actual SQL
|
|
388
|
+
# NULL, not the string "None" -- str(None) below would
|
|
389
|
+
# otherwise produce a literal 'None' value, silently
|
|
390
|
+
# breaking every `:param IS NULL OR ...`-style optional
|
|
391
|
+
# filter (e.g. date-range parameters on a custom SQL route).
|
|
392
|
+
return {placeholder_name: None}
|
|
393
|
+
|
|
385
394
|
operand = "="
|
|
386
395
|
|
|
387
396
|
if isinstance(value, str):
|
|
@@ -393,7 +402,6 @@ class SQLQueryHandler:
|
|
|
393
402
|
else:
|
|
394
403
|
value_str = str(value)
|
|
395
404
|
|
|
396
|
-
placeholder_name = f"{prefix}_{property.api_name}" if prefix else property.api_name
|
|
397
405
|
placeholders = {}
|
|
398
406
|
|
|
399
407
|
if operand in ["between", "not-between"]:
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.8.77"
|
|
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
|