berryworld 1.0.0.194581__py3-none-any.whl → 1.0.0.194660__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.
- berryworld/__init__.py +1 -1
- berryworld/sql_connenction.py +6 -6
- {berryworld-1.0.0.194581.dist-info → berryworld-1.0.0.194660.dist-info}/METADATA +1 -1
- {berryworld-1.0.0.194581.dist-info → berryworld-1.0.0.194660.dist-info}/RECORD +7 -7
- {berryworld-1.0.0.194581.dist-info → berryworld-1.0.0.194660.dist-info}/WHEEL +0 -0
- {berryworld-1.0.0.194581.dist-info → berryworld-1.0.0.194660.dist-info}/licenses/LICENSE +0 -0
- {berryworld-1.0.0.194581.dist-info → berryworld-1.0.0.194660.dist-info}/top_level.txt +0 -0
berryworld/__init__.py
CHANGED
|
@@ -9,7 +9,7 @@ from .credentials import SnowflakeCredentials, SQLCredentials, BCCredentials, We
|
|
|
9
9
|
MicrosoftTeamsCredentials
|
|
10
10
|
from .persistent_storage import PersistentStorage
|
|
11
11
|
from .generate_env import EnvVariables
|
|
12
|
-
from .sharepoint_con import SharepointConnection
|
|
12
|
+
from .sharepoint_con import SharepointConnection, SharepointConn
|
|
13
13
|
from .email_con import EmailConnection
|
|
14
14
|
from .app_logs import AppLogs
|
|
15
15
|
from .app_logs_query import AppLogsQuery
|
berryworld/sql_connenction.py
CHANGED
|
@@ -101,17 +101,13 @@ class SQLConnection:
|
|
|
101
101
|
:param commit_as_transaction: Indicate whether the connection will be done using the autocommit option or not
|
|
102
102
|
:return: The opened connection
|
|
103
103
|
"""
|
|
104
|
-
database = self.db_name
|
|
105
|
-
if self.multi_db:
|
|
106
|
-
database = str(self.db_name).lower().replace('primary;', '')
|
|
107
|
-
|
|
108
104
|
if self.master:
|
|
109
105
|
self.con_string = ('mssql+pyodbc://' + self.user_name + ':%s@' + self.server_name + '/master' +
|
|
110
106
|
'?driver=' + self.driver + '&trusted_connection=yes' + self.trusted_certificate +
|
|
111
107
|
self.encrypt)
|
|
112
108
|
self.engine = sa.create_engine(self.con_string % parse.quote_plus(self.password))
|
|
113
109
|
else:
|
|
114
|
-
self.con_string = ('mssql+pyodbc://' + self.user_name + ':%s@' + self.server_name + '/' +
|
|
110
|
+
self.con_string = ('mssql+pyodbc://' + self.user_name + ':%s@' + self.server_name + '/' + self.db_name +
|
|
115
111
|
'?driver=' + self.driver + self.trusted_certificate + self.encrypt)
|
|
116
112
|
self.engine = sa.create_engine(self.con_string % parse.quote_plus(self.password))
|
|
117
113
|
if not commit_as_transaction:
|
|
@@ -124,7 +120,11 @@ class SQLConnection:
|
|
|
124
120
|
:param commit_as_transaction: Indicate whether the connection will be done using the autocommit option or not
|
|
125
121
|
:return: The opened connection
|
|
126
122
|
"""
|
|
127
|
-
|
|
123
|
+
database = self.db_name
|
|
124
|
+
if self.multi_db:
|
|
125
|
+
database = str(self.db_name) + 'Primary'
|
|
126
|
+
|
|
127
|
+
constring = ('mssql+pyodbc://' + self.user_name + ':%s@' + self.server_name + '/' + database +
|
|
128
128
|
'?driver=' + self.driver + self.trusted_certificate + self.encrypt)
|
|
129
129
|
self.engine = sa.create_engine(constring % parse.quote_plus(self.password))
|
|
130
130
|
if not commit_as_transaction:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
berryworld/__init__.py,sha256=
|
|
1
|
+
berryworld/__init__.py,sha256=x0BONOWraAH1SG_BRHWpZNarRMUqoRHKkdASKMtAdhc,1140
|
|
2
2
|
berryworld/aks_logs.py,sha256=Gb2_cokiZbEX01Yoptd0MxpDociaug-GrXdwliyxFBo,2293
|
|
3
3
|
berryworld/allocation_solver.py,sha256=asFtaCAze6-eHUGWXA0kAp67UBS-Upj1KKdrVLj_ttQ,8513
|
|
4
4
|
berryworld/app_logs.py,sha256=MKzKPYd3JuPfOQNAapIgaeZeFHw1z_w2mbn9I6QCADE,4180
|
|
@@ -19,19 +19,19 @@ berryworld/power_automate.py,sha256=V86QEGG9H36DrDvod9Q6yp8OUu307hfYcXJhw06pYrA,
|
|
|
19
19
|
berryworld/sharepoint_con.py,sha256=DSGiS1J_c2PHtGNaC6XkgY8WAFU3KMD6Wx-d723XOHU,44522
|
|
20
20
|
berryworld/snowflake_conn.py,sha256=hhh8pxN3TSg3baJ61olC_oEROSE-yp3MKsG50llLglc,2708
|
|
21
21
|
berryworld/sql_conn.py,sha256=tYKgD8ja7NQuvLB1WBjdsJbPcm3eX1Y76QPTEgx8R8Q,47564
|
|
22
|
-
berryworld/sql_connenction.py,sha256=
|
|
22
|
+
berryworld/sql_connenction.py,sha256=2EaTdh6JL1j1PzLl5MmbkxpZ1OtvdyqX6h0M_G8CuRQ,48391
|
|
23
23
|
berryworld/teams_logging.py,sha256=8NwXyWr4fLj7W6GzAm2nRQCGFDxibQpAHDHHD24FrP8,6997
|
|
24
24
|
berryworld/transportation_solver.py,sha256=tNc1JJk71azIBccdWVHbqcvXWhalOdKffv6HmBD6tG0,5014
|
|
25
25
|
berryworld/verify_keys.py,sha256=X7VUHqYDklWPDO0bGVHIOXeLq5Qi4fZRZbHYw5x7UnA,4356
|
|
26
26
|
berryworld/vivantio.py,sha256=QfZo0UKqkzVRg_LyiwivNd3aEup4TH57x4KxLZkCJwc,10627
|
|
27
27
|
berryworld/vivantio_logging.py,sha256=ciy7gA4u3FrgUIpEBnMgocbNPp6jcu9TPoy-kLcrTZU,5736
|
|
28
28
|
berryworld/xml_parser.py,sha256=HWD71NaTN3DaIOGT6Wzxs4CEsroFhGQwe9iPLIL80Co,957
|
|
29
|
-
berryworld-1.0.0.
|
|
29
|
+
berryworld-1.0.0.194660.dist-info/licenses/LICENSE,sha256=vtkVCJM6E2af2gnsi2XxKPr4WY-uIbvzVLXieFND0UU,1074
|
|
30
30
|
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
31
31
|
tests/test_allocation_config.py,sha256=e12l6fE9U57eSPS35g6ekJ_hol7-RHg89JV60_m1BlE,4633
|
|
32
32
|
tests/test_handy_mix_config.py,sha256=Un56mz9KJmdn4K4OwzHAHLSRzDU1Xv2nFrONNuzOG04,2594
|
|
33
33
|
tests/test_xml_parser.py,sha256=3QTlhFEd6KbK6nRFKZnc35tad6wqukTbe4QrFi8mr_8,859
|
|
34
|
-
berryworld-1.0.0.
|
|
35
|
-
berryworld-1.0.0.
|
|
36
|
-
berryworld-1.0.0.
|
|
37
|
-
berryworld-1.0.0.
|
|
34
|
+
berryworld-1.0.0.194660.dist-info/METADATA,sha256=zVtHqYXJfdwsrKnbtwRafnVIN_RVjIYaLqbcgWWRgok,1445
|
|
35
|
+
berryworld-1.0.0.194660.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
36
|
+
berryworld-1.0.0.194660.dist-info/top_level.txt,sha256=GIZ5qy-P5oxfEH755vA1IMFeTVdX3-40JxMe6nOe5I8,17
|
|
37
|
+
berryworld-1.0.0.194660.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|