linkarchivetools 0.1.14__tar.gz → 0.1.15__tar.gz
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-0.1.14 → linkarchivetools-0.1.15}/PKG-INFO +1 -1
- {linkarchivetools-0.1.14 → linkarchivetools-0.1.15}/linkarchivetools/utils/reflected.py +7 -2
- {linkarchivetools-0.1.14 → linkarchivetools-0.1.15}/pyproject.toml +1 -1
- {linkarchivetools-0.1.14 → linkarchivetools-0.1.15}/LICENSE +0 -0
- {linkarchivetools-0.1.14 → linkarchivetools-0.1.15}/README.md +0 -0
- {linkarchivetools-0.1.14 → linkarchivetools-0.1.15}/linkarchivetools/LICENSE +0 -0
- {linkarchivetools-0.1.14 → linkarchivetools-0.1.15}/linkarchivetools/README.md +0 -0
- {linkarchivetools-0.1.14 → linkarchivetools-0.1.15}/linkarchivetools/__init__.py +0 -0
- {linkarchivetools-0.1.14 → linkarchivetools-0.1.15}/linkarchivetools/backup.py +0 -0
- {linkarchivetools-0.1.14 → linkarchivetools-0.1.15}/linkarchivetools/db2feeds.py +0 -0
- {linkarchivetools-0.1.14 → linkarchivetools-0.1.15}/linkarchivetools/db2json.py +0 -0
- {linkarchivetools-0.1.14 → linkarchivetools-0.1.15}/linkarchivetools/dbanalyzer.py +0 -0
- {linkarchivetools-0.1.14 → linkarchivetools-0.1.15}/linkarchivetools/dbfilter.py +0 -0
- {linkarchivetools-0.1.14 → linkarchivetools-0.1.15}/linkarchivetools/dbmerge.py +0 -0
- {linkarchivetools-0.1.14 → linkarchivetools-0.1.15}/linkarchivetools/json2db.py +0 -0
- {linkarchivetools-0.1.14 → linkarchivetools-0.1.15}/linkarchivetools/tableconfig.py +0 -0
- {linkarchivetools-0.1.14 → linkarchivetools-0.1.15}/linkarchivetools/utils/alchemysearch.py +0 -0
- {linkarchivetools-0.1.14 → linkarchivetools-0.1.15}/linkarchivetools/utils/omnisearch.py +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};"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|