python-eigen-ingenuity 0.5.13b1__py3-none-any.whl → 0.5.15b1__py3-none-any.whl
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.
- modelbuilder/src/connectors/dbconnectors.py +18 -8
- {python_eigen_ingenuity-0.5.13b1.dist-info → python_eigen_ingenuity-0.5.15b1.dist-info}/METADATA +2 -2
- {python_eigen_ingenuity-0.5.13b1.dist-info → python_eigen_ingenuity-0.5.15b1.dist-info}/RECORD +6 -6
- {python_eigen_ingenuity-0.5.13b1.dist-info → python_eigen_ingenuity-0.5.15b1.dist-info}/WHEEL +1 -1
- {python_eigen_ingenuity-0.5.13b1.dist-info → python_eigen_ingenuity-0.5.15b1.dist-info}/entry_points.txt +0 -0
- {python_eigen_ingenuity-0.5.13b1.dist-info → python_eigen_ingenuity-0.5.15b1.dist-info}/top_level.txt +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
from connectors.httpsconnector import HTTPSConnector
|
|
2
2
|
from connectors.boltconnector import BoltConnector
|
|
3
3
|
|
|
4
|
-
class ConnectionManager:
|
|
5
4
|
|
|
5
|
+
class ConnectionManager:
|
|
6
6
|
def __init__(self, config_manager):
|
|
7
7
|
self.query_output_file = None
|
|
8
8
|
query_file_name = config_manager.get_query_output()
|
|
9
9
|
if query_file_name is not None:
|
|
10
10
|
try:
|
|
11
|
-
self.query_output_file = open(query_file_name,
|
|
11
|
+
self.query_output_file = open(query_file_name, "w", encoding="UTF8")
|
|
12
12
|
except:
|
|
13
13
|
pass
|
|
14
14
|
|
|
@@ -16,17 +16,27 @@ class ConnectionManager:
|
|
|
16
16
|
results_file_name = config_manager.get_results_output()
|
|
17
17
|
if results_file_name is not None:
|
|
18
18
|
try:
|
|
19
|
-
self.results_output_file = open(results_file_name,
|
|
19
|
+
self.results_output_file = open(results_file_name, "w", encoding="UTF8")
|
|
20
20
|
except:
|
|
21
21
|
pass
|
|
22
22
|
|
|
23
23
|
db_connection_details = config_manager.get_db_connection_dict()
|
|
24
|
-
url = db_connection_details[
|
|
25
|
-
|
|
26
|
-
if url.startswith(
|
|
27
|
-
self.db_connection = HTTPSConnector(
|
|
24
|
+
url = db_connection_details["url"]
|
|
25
|
+
|
|
26
|
+
if url.startswith("http"):
|
|
27
|
+
self.db_connection = HTTPSConnector(
|
|
28
|
+
db_connection_details,
|
|
29
|
+
config_manager,
|
|
30
|
+
self.query_output_file,
|
|
31
|
+
self.results_output_file,
|
|
32
|
+
)
|
|
28
33
|
else:
|
|
29
|
-
self.db_connection = BoltConnector(
|
|
34
|
+
self.db_connection = BoltConnector(
|
|
35
|
+
db_connection_details,
|
|
36
|
+
config_manager,
|
|
37
|
+
self.query_output_file,
|
|
38
|
+
self.results_output_file,
|
|
39
|
+
)
|
|
30
40
|
|
|
31
41
|
def get_db_connector(self):
|
|
32
42
|
return self.db_connection
|
{python_eigen_ingenuity-0.5.13b1.dist-info → python_eigen_ingenuity-0.5.15b1.dist-info}/RECORD
RENAMED
|
@@ -25,7 +25,7 @@ modelbuilder/src/property.py,sha256=PN_w8UTObEjHS5GfiHtZRbV1ZM62EB-H44l8-1fKJNI,
|
|
|
25
25
|
modelbuilder/src/versionmanager.py,sha256=B8mrYY5Der0sWi1GQjduyVGZ6BuAb6rTNVAZzQlP4k4,19148
|
|
26
26
|
modelbuilder/src/connectors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
27
27
|
modelbuilder/src/connectors/boltconnector.py,sha256=BDlSh1Ah4iBW363y4tnIb0YPwYM8fBMqd_9QseE4oD4,4813
|
|
28
|
-
modelbuilder/src/connectors/dbconnectors.py,sha256=
|
|
28
|
+
modelbuilder/src/connectors/dbconnectors.py,sha256=rgakGoU2acsMv6N6D6ecqJMld2ZMi1JcIxpoM2ftiqY,1652
|
|
29
29
|
modelbuilder/src/connectors/genericconnector.py,sha256=bMfnbrOWq97BC9oM7RIA58bNdC4kR3q3XDOiOVvYNkU,861
|
|
30
30
|
modelbuilder/src/connectors/httpsconnector.py,sha256=06TrQSEa5bmqXjPPAqz1hXrOEOwzeiV-9v8scyQGRg8,6006
|
|
31
31
|
modelbuilder/src/processors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -38,8 +38,8 @@ modelbuilder/src/processors/relationshipmanager.py,sha256=lDtE_5AdKzL3boq7VD8Gmp
|
|
|
38
38
|
modelbuilder/src/queries/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
39
39
|
modelbuilder/src/queries/cypherbuilder.py,sha256=VpUGuPo-Ba3skjCVBFjmxm4ORQBGgF5cDiQYnK67hLA,10418
|
|
40
40
|
modelbuilder/src/queries/query.py,sha256=SI7RtLOlRxZNcnv0752PL0vxQi2_-WJd9TZrOXyOoqs,2590
|
|
41
|
-
python_eigen_ingenuity-0.5.
|
|
42
|
-
python_eigen_ingenuity-0.5.
|
|
43
|
-
python_eigen_ingenuity-0.5.
|
|
44
|
-
python_eigen_ingenuity-0.5.
|
|
45
|
-
python_eigen_ingenuity-0.5.
|
|
41
|
+
python_eigen_ingenuity-0.5.15b1.dist-info/METADATA,sha256=ya2mEFs4rvlpcoSkfkoBcRh-L2dN0dN9-aggxifY6Wk,38358
|
|
42
|
+
python_eigen_ingenuity-0.5.15b1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
43
|
+
python_eigen_ingenuity-0.5.15b1.dist-info/entry_points.txt,sha256=G3LjFQX5xKaN4mqtqCL8uaC-gRbP5T5x9r0gBTJTXXA,70
|
|
44
|
+
python_eigen_ingenuity-0.5.15b1.dist-info/top_level.txt,sha256=lFiZ43CY_1bmdtRidIXbA6rrY2d92Rs-9tH8pcgI-XU,28
|
|
45
|
+
python_eigen_ingenuity-0.5.15b1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|