linkarchivetools 0.1.13__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.

Files changed (18) hide show
  1. {linkarchivetools-0.1.13 → linkarchivetools-0.1.15}/PKG-INFO +1 -1
  2. {linkarchivetools-0.1.13 → linkarchivetools-0.1.15}/linkarchivetools/utils/reflected.py +12 -2
  3. {linkarchivetools-0.1.13 → linkarchivetools-0.1.15}/pyproject.toml +1 -1
  4. {linkarchivetools-0.1.13 → linkarchivetools-0.1.15}/LICENSE +0 -0
  5. {linkarchivetools-0.1.13 → linkarchivetools-0.1.15}/README.md +0 -0
  6. {linkarchivetools-0.1.13 → linkarchivetools-0.1.15}/linkarchivetools/LICENSE +0 -0
  7. {linkarchivetools-0.1.13 → linkarchivetools-0.1.15}/linkarchivetools/README.md +0 -0
  8. {linkarchivetools-0.1.13 → linkarchivetools-0.1.15}/linkarchivetools/__init__.py +0 -0
  9. {linkarchivetools-0.1.13 → linkarchivetools-0.1.15}/linkarchivetools/backup.py +0 -0
  10. {linkarchivetools-0.1.13 → linkarchivetools-0.1.15}/linkarchivetools/db2feeds.py +0 -0
  11. {linkarchivetools-0.1.13 → linkarchivetools-0.1.15}/linkarchivetools/db2json.py +0 -0
  12. {linkarchivetools-0.1.13 → linkarchivetools-0.1.15}/linkarchivetools/dbanalyzer.py +0 -0
  13. {linkarchivetools-0.1.13 → linkarchivetools-0.1.15}/linkarchivetools/dbfilter.py +0 -0
  14. {linkarchivetools-0.1.13 → linkarchivetools-0.1.15}/linkarchivetools/dbmerge.py +0 -0
  15. {linkarchivetools-0.1.13 → linkarchivetools-0.1.15}/linkarchivetools/json2db.py +0 -0
  16. {linkarchivetools-0.1.13 → linkarchivetools-0.1.15}/linkarchivetools/tableconfig.py +0 -0
  17. {linkarchivetools-0.1.13 → linkarchivetools-0.1.15}/linkarchivetools/utils/alchemysearch.py +0 -0
  18. {linkarchivetools-0.1.13 → linkarchivetools-0.1.15}/linkarchivetools/utils/omnisearch.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: linkarchivetools
3
- Version: 0.1.13
3
+ Version: 0.1.15
4
4
  Summary: Link Archive Tools
5
5
  License: GPL3
6
6
  Author: Iwan Grozny
@@ -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
- destination_table = Table(
122
+ self.table = Table(
118
123
  self.table_name, destination_metadata, autoload_with=self.engine
119
124
  )
120
- return destination_table
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
@@ -3,7 +3,7 @@
3
3
 
4
4
  [tool.poetry]
5
5
  name = "linkarchivetools"
6
- version = "0.1.13"
6
+ version = "0.1.15"
7
7
  description = "Link Archive Tools"
8
8
  authors = ["Iwan Grozny <renegat@renegat0x0.ddns.net>"]
9
9
  license = "GPL3"