DE-Lib 0.0.39__py3-none-any.whl → 0.0.41__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.
- DE_Lib/DataBase/MsSql.py +3 -2
- DE_Lib/DataBase/SQLite.py +1 -0
- {de_lib-0.0.39.dist-info → de_lib-0.0.41.dist-info}/METADATA +1 -1
- {de_lib-0.0.39.dist-info → de_lib-0.0.41.dist-info}/RECORD +7 -7
- {de_lib-0.0.39.dist-info → de_lib-0.0.41.dist-info}/WHEEL +0 -0
- {de_lib-0.0.39.dist-info → de_lib-0.0.41.dist-info}/licenses/LICENCE +0 -0
- {de_lib-0.0.39.dist-info → de_lib-0.0.41.dist-info}/top_level.txt +0 -0
DE_Lib/DataBase/MsSql.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import pymssql as mssql
|
2
|
+
import json
|
2
3
|
|
3
4
|
from DE_Lib.Utils import Generic
|
4
5
|
|
@@ -12,7 +13,7 @@ class MSSQL:
|
|
12
13
|
self.__database_error = None
|
13
14
|
|
14
15
|
def Connect(self, string_connect: dict):
|
15
|
-
msg, conn = None, None
|
16
|
+
msg, conn, result = None, None, None
|
16
17
|
try:
|
17
18
|
# Efetuando a conexao com a instancia do BANCO
|
18
19
|
conn = mssql.connect(user=string_connect["username"], password=string_connect["password"], database=string_connect["instance"], server=string_connect["host"])
|
@@ -42,4 +43,4 @@ class MSSQL:
|
|
42
43
|
|
43
44
|
@property
|
44
45
|
def DATABASE_ERROR(self):
|
45
|
-
return self.
|
46
|
+
return self.__database_error
|
DE_Lib/DataBase/SQLite.py
CHANGED
@@ -39,6 +39,7 @@ class SQLITE:
|
|
39
39
|
self._nome_database = gen.nvl(conn["database"], "SQLite")
|
40
40
|
self.__database_driver = conn["driver_conexao"]
|
41
41
|
self.__database_error = result
|
42
|
+
result= self._cnn
|
42
43
|
except Exception as error:
|
43
44
|
msg = f"""{json.dumps(conn, indent=4).replace(conn["password"], "******")}\nFalha ao tentar se conectar com o banco de dados SQLite\nException Error: {error} """
|
44
45
|
result = msg
|
@@ -5,14 +5,14 @@ DE_Lib/DataBase/Cache.py,sha256=IpTJCVCrtm8Et4U-_AaWoT_2vf7mBqdzYrWDXbpOORE,3171
|
|
5
5
|
DE_Lib/DataBase/Firebird.py,sha256=dXjt3ImVtdiW99NAHcDIzZhGHF_YIyn4RJbM2QR4g7s,1898
|
6
6
|
DE_Lib/DataBase/Informix.py,sha256=jXqPggYu8PjGrqtxMHwlCsqF5rK03olas5yVMH0Ndkw,1559
|
7
7
|
DE_Lib/DataBase/Metadata.py,sha256=j0iJm26Sf0QvsYpN61hfwkllyW2EOA2XoFnSzEo9plE,3274
|
8
|
-
DE_Lib/DataBase/MsSql.py,sha256=
|
8
|
+
DE_Lib/DataBase/MsSql.py,sha256=eszkLLtRwhZq0IPkApiBTjYqcs1hqwPizC8wfpC6Vrk,1668
|
9
9
|
DE_Lib/DataBase/MySql.py,sha256=SWLJMaB30EBqaz32xwMBbc3lnemDPpF2kkkf5umlL3k,2534
|
10
10
|
DE_Lib/DataBase/Oracle.py,sha256=n9ub6J6zNX4z62pUWjut3PGxXzLDZQ9jVhZ6eGzFPEw,9704
|
11
11
|
DE_Lib/DataBase/OracleDDL.py,sha256=8PDTjR52Igtj-FyPQvFUBRjTlXB7crMNB8Xh5LncB_Q,3785
|
12
12
|
DE_Lib/DataBase/Postgres.py,sha256=lMb6sFGvjjuuq4D4k7zzEo7-NtyrC79VITeKQfoDO6U,1667
|
13
13
|
DE_Lib/DataBase/RedShift.py,sha256=ewPi8hxEhfuekBpMl-P1LWgSGfbqPKRpXfjtduCwOKc,1736
|
14
14
|
DE_Lib/DataBase/SQCipher.py,sha256=Bw7nq4tQdhM7ux0INF9PUymsIIjBEwMKcA1Un8orCE8,1625
|
15
|
-
DE_Lib/DataBase/SQLite.py,sha256=
|
15
|
+
DE_Lib/DataBase/SQLite.py,sha256=PiJ2MgbAjQYzHuuI0LWUGR-ZLntGE8eF1TXHXVXsQXw,2373
|
16
16
|
DE_Lib/DataBase/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
17
17
|
DE_Lib/Files/Avro.py,sha256=hVXwoOSESHzWROBNYSDOu4myIrcRqSiPqGLRA40vJAk,527
|
18
18
|
DE_Lib/Files/Csv.py,sha256=8mpD2g4Ej2RHQvxMODEpBDbxMV5pWJ8dJHyO8YZchuk,2430
|
@@ -42,8 +42,8 @@ DE_Lib/Utils/Cipher/Gcm.py,sha256=fOuCVOyd4sGv389E91yqomujKTtFZu6CyhySrmQKVfY,23
|
|
42
42
|
DE_Lib/Utils/Cipher/Pbkdf2.py,sha256=hRkgf0Fo5hV1gLbWlFGFzhYYUjPEqgpB2R-pPw7N2F8,1210
|
43
43
|
DE_Lib/Utils/Cipher/Rsa.py,sha256=MYG1YsGuq-Q-MoF6pmeMD0TyxMTwt6tuUaLvXcmzQ2k,4126
|
44
44
|
DE_Lib/Utils/Cipher/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
45
|
-
de_lib-0.0.
|
46
|
-
de_lib-0.0.
|
47
|
-
de_lib-0.0.
|
48
|
-
de_lib-0.0.
|
49
|
-
de_lib-0.0.
|
45
|
+
de_lib-0.0.41.dist-info/licenses/LICENCE,sha256=Qv2ilebwoUtMJnRsZwRy729xS5JZQzLauJ0tQzkAkTA,1088
|
46
|
+
de_lib-0.0.41.dist-info/METADATA,sha256=Gdn80trDLi2_jj6puYIj5SOnDoC7hY1QMoFcpUkBumU,2315
|
47
|
+
de_lib-0.0.41.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
48
|
+
de_lib-0.0.41.dist-info/top_level.txt,sha256=yI9fdM_jkhCz_sykPZQbfeUbQ1FRMt-xjv9fJ6YZVLE,7
|
49
|
+
de_lib-0.0.41.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|