DE-Lib 0.0.36__py3-none-any.whl → 0.0.36.1__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/OracleDDL.py +6 -5
- {de_lib-0.0.36.dist-info → de_lib-0.0.36.1.dist-info}/METADATA +1 -1
- {de_lib-0.0.36.dist-info → de_lib-0.0.36.1.dist-info}/RECORD +6 -6
- {de_lib-0.0.36.dist-info → de_lib-0.0.36.1.dist-info}/WHEEL +0 -0
- {de_lib-0.0.36.dist-info → de_lib-0.0.36.1.dist-info}/licenses/LICENCE +0 -0
- {de_lib-0.0.36.dist-info → de_lib-0.0.36.1.dist-info}/top_level.txt +0 -0
DE_Lib/DataBase/OracleDDL.py
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
from logging import exception
|
2
|
+
|
1
3
|
import pandas as pd
|
2
4
|
|
3
5
|
class OracleDDL:
|
@@ -27,6 +29,7 @@ class OracleDDL:
|
|
27
29
|
result = "DATE"
|
28
30
|
else:
|
29
31
|
result = "VARCHAR2(4000)"
|
32
|
+
result = "VARCHAR2(4000)"
|
30
33
|
except Exception as error:
|
31
34
|
msg = error
|
32
35
|
result = msg
|
@@ -67,12 +70,10 @@ class OracleDDL:
|
|
67
70
|
try:
|
68
71
|
cur = conn.cursor()
|
69
72
|
try:
|
70
|
-
|
73
|
+
create_sql = self.generate_create_table_sql(table_name, df)
|
74
|
+
cur.execute(create_sql)
|
71
75
|
except:
|
72
|
-
pass #
|
73
|
-
|
74
|
-
create_sql = self.generate_create_table_sql(table_name, df)
|
75
|
-
cur.execute(create_sql)
|
76
|
+
pass #cur.execute(f"DROP TABLE {table_name}")
|
76
77
|
|
77
78
|
placeholders = ', '.join([f":{i+1}" for i in range(len(df.columns))])
|
78
79
|
insert_sql = f"INSERT INTO {table_name} VALUES({placeholders})"
|
@@ -8,7 +8,7 @@ DE_Lib/DataBase/Metadata.py,sha256=j0iJm26Sf0QvsYpN61hfwkllyW2EOA2XoFnSzEo9plE,3
|
|
8
8
|
DE_Lib/DataBase/MsSql.py,sha256=tVx7fdFkw1ZNhfjqw-KuyHtT-hqJ9ZNCR2iU_ogSUVk,1640
|
9
9
|
DE_Lib/DataBase/MySql.py,sha256=SWLJMaB30EBqaz32xwMBbc3lnemDPpF2kkkf5umlL3k,2534
|
10
10
|
DE_Lib/DataBase/Oracle.py,sha256=n9ub6J6zNX4z62pUWjut3PGxXzLDZQ9jVhZ6eGzFPEw,9704
|
11
|
-
DE_Lib/DataBase/OracleDDL.py,sha256
|
11
|
+
DE_Lib/DataBase/OracleDDL.py,sha256=5uGtaQ_r-GSfO6Vk9YRBs-7tq_myavxHm9ee7-tG1tY,3074
|
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
|
@@ -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.36.dist-info/licenses/LICENCE,sha256=Qv2ilebwoUtMJnRsZwRy729xS5JZQzLauJ0tQzkAkTA,1088
|
46
|
-
de_lib-0.0.36.dist-info/METADATA,sha256=
|
47
|
-
de_lib-0.0.36.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
48
|
-
de_lib-0.0.36.dist-info/top_level.txt,sha256=yI9fdM_jkhCz_sykPZQbfeUbQ1FRMt-xjv9fJ6YZVLE,7
|
49
|
-
de_lib-0.0.36.dist-info/RECORD,,
|
45
|
+
de_lib-0.0.36.1.dist-info/licenses/LICENCE,sha256=Qv2ilebwoUtMJnRsZwRy729xS5JZQzLauJ0tQzkAkTA,1088
|
46
|
+
de_lib-0.0.36.1.dist-info/METADATA,sha256=S0gd_5_jostVHyEYtv5aKlp0whjM9x9g8IApFXtBw9k,2289
|
47
|
+
de_lib-0.0.36.1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
48
|
+
de_lib-0.0.36.1.dist-info/top_level.txt,sha256=yI9fdM_jkhCz_sykPZQbfeUbQ1FRMt-xjv9fJ6YZVLE,7
|
49
|
+
de_lib-0.0.36.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|