mbu-dev-shared-components 0.0.42__tar.gz → 0.0.43__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.
- {mbu_dev_shared_components-0.0.42/mbu_dev_shared_components.egg-info → mbu_dev_shared_components-0.0.43}/PKG-INFO +1 -1
- {mbu_dev_shared_components-0.0.42 → mbu_dev_shared_components-0.0.43}/mbu_dev_shared_components/utils/db_stored_procedure_executor.py +3 -13
- {mbu_dev_shared_components-0.0.42 → mbu_dev_shared_components-0.0.43/mbu_dev_shared_components.egg-info}/PKG-INFO +1 -1
- {mbu_dev_shared_components-0.0.42 → mbu_dev_shared_components-0.0.43}/.gitignore +0 -0
- {mbu_dev_shared_components-0.0.42 → mbu_dev_shared_components-0.0.43}/LICENSE +0 -0
- {mbu_dev_shared_components-0.0.42 → mbu_dev_shared_components-0.0.43}/README.md +0 -0
- {mbu_dev_shared_components-0.0.42 → mbu_dev_shared_components-0.0.43}/mbu_dev_shared_components/getorganized/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.42 → mbu_dev_shared_components-0.0.43}/mbu_dev_shared_components/getorganized/auth.py +0 -0
- {mbu_dev_shared_components-0.0.42 → mbu_dev_shared_components-0.0.43}/mbu_dev_shared_components/getorganized/cases.py +0 -0
- {mbu_dev_shared_components-0.0.42 → mbu_dev_shared_components-0.0.43}/mbu_dev_shared_components/getorganized/contacts.py +0 -0
- {mbu_dev_shared_components-0.0.42 → mbu_dev_shared_components-0.0.43}/mbu_dev_shared_components/getorganized/documents.py +0 -0
- {mbu_dev_shared_components-0.0.42 → mbu_dev_shared_components-0.0.43}/mbu_dev_shared_components/getorganized/objects.py +0 -0
- {mbu_dev_shared_components-0.0.42 → mbu_dev_shared_components-0.0.43}/mbu_dev_shared_components/google/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.42 → mbu_dev_shared_components-0.0.43}/mbu_dev_shared_components/google/api/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.42 → mbu_dev_shared_components-0.0.43}/mbu_dev_shared_components/google/api/auth.py +0 -0
- {mbu_dev_shared_components-0.0.42 → mbu_dev_shared_components-0.0.43}/mbu_dev_shared_components/google/workspace/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.42 → mbu_dev_shared_components-0.0.43}/mbu_dev_shared_components/google/workspace/alerts.py +0 -0
- {mbu_dev_shared_components-0.0.42 → mbu_dev_shared_components-0.0.43}/mbu_dev_shared_components/office365/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.42 → mbu_dev_shared_components-0.0.43}/mbu_dev_shared_components/office365/excel/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.42 → mbu_dev_shared_components-0.0.43}/mbu_dev_shared_components/office365/excel/excel_reader.py +0 -0
- {mbu_dev_shared_components-0.0.42 → mbu_dev_shared_components-0.0.43}/mbu_dev_shared_components/office365/sharepoint_api/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.42 → mbu_dev_shared_components-0.0.43}/mbu_dev_shared_components/office365/sharepoint_api/files.py +0 -0
- {mbu_dev_shared_components-0.0.42 → mbu_dev_shared_components-0.0.43}/mbu_dev_shared_components/os2forms/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.42 → mbu_dev_shared_components-0.0.43}/mbu_dev_shared_components/os2forms/documents.py +0 -0
- {mbu_dev_shared_components-0.0.42 → mbu_dev_shared_components-0.0.43}/mbu_dev_shared_components/sap/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.42 → mbu_dev_shared_components-0.0.43}/mbu_dev_shared_components/sap/create_invoice.py +0 -0
- {mbu_dev_shared_components-0.0.42 → mbu_dev_shared_components-0.0.43}/mbu_dev_shared_components/utils/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.42 → mbu_dev_shared_components-0.0.43}/mbu_dev_shared_components/utils/json_handler.py +0 -0
- {mbu_dev_shared_components-0.0.42 → mbu_dev_shared_components-0.0.43}/mbu_dev_shared_components.egg-info/SOURCES.txt +0 -0
- {mbu_dev_shared_components-0.0.42 → mbu_dev_shared_components-0.0.43}/mbu_dev_shared_components.egg-info/dependency_links.txt +0 -0
- {mbu_dev_shared_components-0.0.42 → mbu_dev_shared_components-0.0.43}/mbu_dev_shared_components.egg-info/requires.txt +0 -0
- {mbu_dev_shared_components-0.0.42 → mbu_dev_shared_components-0.0.43}/mbu_dev_shared_components.egg-info/top_level.txt +0 -0
- {mbu_dev_shared_components-0.0.42 → mbu_dev_shared_components-0.0.43}/pyproject.toml +0 -0
- {mbu_dev_shared_components-0.0.42 → mbu_dev_shared_components-0.0.43}/setup.cfg +0 -0
|
@@ -8,14 +8,7 @@ from dateutil import parser
|
|
|
8
8
|
import pyodbc
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
def
|
|
12
|
-
"""Format datetime object to string if not None"""
|
|
13
|
-
return dt.isoformat() if dt else None
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
def execute_stored_procedure(connection_string: str,
|
|
17
|
-
stored_procedure: str,
|
|
18
|
-
params: Dict[str, Any]) -> Dict[str, Union[bool, str, Any]]:
|
|
11
|
+
def execute_stored_procedure(connection_string: str, stored_procedure: str, params: Dict[str, Any]) -> Dict[str, Union[bool, str, Any]]:
|
|
19
12
|
"""
|
|
20
13
|
Executes a stored procedure with the given parameters.
|
|
21
14
|
|
|
@@ -38,7 +31,7 @@ def execute_stored_procedure(connection_string: str,
|
|
|
38
31
|
"str": str,
|
|
39
32
|
"int": int,
|
|
40
33
|
"float": float,
|
|
41
|
-
"datetime": lambda x:
|
|
34
|
+
"datetime": lambda x: parser.isoparse(x),
|
|
42
35
|
# Add more types if needed
|
|
43
36
|
}
|
|
44
37
|
|
|
@@ -52,10 +45,7 @@ def execute_stored_procedure(connection_string: str,
|
|
|
52
45
|
if isinstance(value, tuple) and len(value) == 2:
|
|
53
46
|
value_type, actual_value = value
|
|
54
47
|
if value_type in type_mapping:
|
|
55
|
-
|
|
56
|
-
param_values.append(type_mapping[value_type](actual_value))
|
|
57
|
-
else:
|
|
58
|
-
param_values.append(None)
|
|
48
|
+
param_values.append(type_mapping[value_type](actual_value))
|
|
59
49
|
else:
|
|
60
50
|
param_values.append(actual_value)
|
|
61
51
|
else:
|
|
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
|