linkarchivetools 0.1.13__py3-none-any.whl → 0.1.15__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.
Potentially problematic release.
This version of linkarchivetools might be problematic. Click here for more details.
- linkarchivetools/utils/reflected.py +12 -2
- {linkarchivetools-0.1.13.dist-info → linkarchivetools-0.1.15.dist-info}/METADATA +1 -1
- {linkarchivetools-0.1.13.dist-info → linkarchivetools-0.1.15.dist-info}/RECORD +5 -5
- {linkarchivetools-0.1.13.dist-info → linkarchivetools-0.1.15.dist-info}/LICENSE +0 -0
- {linkarchivetools-0.1.13.dist-info → linkarchivetools-0.1.15.dist-info}/WHEEL +0 -0
|
@@ -106,6 +106,8 @@ class ReflectedGenericTable(object):
|
|
|
106
106
|
self.engine = engine
|
|
107
107
|
self.connection = connection
|
|
108
108
|
self.table_name = table_name
|
|
109
|
+
self.table = None
|
|
110
|
+
|
|
109
111
|
if self.table_name is None:
|
|
110
112
|
self.table_name = self.get_table_name()
|
|
111
113
|
|
|
@@ -113,11 +115,14 @@ class ReflectedGenericTable(object):
|
|
|
113
115
|
return self.table_name
|
|
114
116
|
|
|
115
117
|
def get_table(self):
|
|
118
|
+
if self.table is not None:
|
|
119
|
+
return self.table
|
|
120
|
+
|
|
116
121
|
destination_metadata = MetaData()
|
|
117
|
-
|
|
122
|
+
self.table = Table(
|
|
118
123
|
self.table_name, destination_metadata, autoload_with=self.engine
|
|
119
124
|
)
|
|
120
|
-
return
|
|
125
|
+
return self.table
|
|
121
126
|
|
|
122
127
|
def truncate(self):
|
|
123
128
|
sql_text = f"DELETE FROM {self.table_name};"
|
|
@@ -484,6 +489,11 @@ class ReflectedSocialData(ReflectedGenericTable):
|
|
|
484
489
|
return data
|
|
485
490
|
|
|
486
491
|
|
|
492
|
+
class ReflectedEntryRules(ReflectedGenericTable):
|
|
493
|
+
def get_table_name(self):
|
|
494
|
+
return "entryrules"
|
|
495
|
+
|
|
496
|
+
|
|
487
497
|
class EntryCopier(object):
|
|
488
498
|
def __init__(self, src_engine, src_connection, dst_engine, dst_connection):
|
|
489
499
|
self.src_engine = src_engine
|
|
@@ -11,8 +11,8 @@ linkarchivetools/json2db.py,sha256=IF01_KhMmHcdm4jfagU_kuJGCEtRwgwjZDuxLtlT7EQ,7
|
|
|
11
11
|
linkarchivetools/tableconfig.py,sha256=TsYYl2kbAkP035XElHUmeJqH5Kugl7bwi4ClIwJ6MSA,1731
|
|
12
12
|
linkarchivetools/utils/alchemysearch.py,sha256=voUDEBP4RShlGj8E0iHg83jP8JYJQKLOaJjCZNi4LMY,5689
|
|
13
13
|
linkarchivetools/utils/omnisearch.py,sha256=7HVzz8LesS3Yo6exdlPf4WdPbi2DQekPR2CmkJcfBbI,10115
|
|
14
|
-
linkarchivetools/utils/reflected.py,sha256=
|
|
15
|
-
linkarchivetools-0.1.
|
|
16
|
-
linkarchivetools-0.1.
|
|
17
|
-
linkarchivetools-0.1.
|
|
18
|
-
linkarchivetools-0.1.
|
|
14
|
+
linkarchivetools/utils/reflected.py,sha256=bK4hgNmVUUer4BKTQbq732bXSgBJrHlzg11Wa1v0iYI,15740
|
|
15
|
+
linkarchivetools-0.1.15.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
16
|
+
linkarchivetools-0.1.15.dist-info/METADATA,sha256=84HOSBHXeDCG1ZTY1aQWFJa9cwdKJQNw847eX39MLvs,1203
|
|
17
|
+
linkarchivetools-0.1.15.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
18
|
+
linkarchivetools-0.1.15.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|