thoth-dbmanager 0.4.5__py3-none-any.whl → 0.4.6__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.
- thoth_dbmanager/plugins/mariadb.py +24 -1
- thoth_dbmanager/plugins/mysql.py +24 -1
- thoth_dbmanager/plugins/postgresql.py +24 -1
- thoth_dbmanager/plugins/sqlite.py +24 -1
- {thoth_dbmanager-0.4.5.dist-info → thoth_dbmanager-0.4.6.dist-info}/METADATA +1 -1
- {thoth_dbmanager-0.4.5.dist-info → thoth_dbmanager-0.4.6.dist-info}/RECORD +9 -9
- {thoth_dbmanager-0.4.5.dist-info → thoth_dbmanager-0.4.6.dist-info}/WHEEL +0 -0
- {thoth_dbmanager-0.4.5.dist-info → thoth_dbmanager-0.4.6.dist-info}/licenses/LICENSE +0 -0
- {thoth_dbmanager-0.4.5.dist-info → thoth_dbmanager-0.4.6.dist-info}/top_level.txt +0 -0
@@ -377,7 +377,30 @@ class MariaDBPlugin(DbPlugin):
|
|
377
377
|
"""Lazy load LSH manager for backward compatibility."""
|
378
378
|
if self._lsh_manager is None and self.db_directory_path:
|
379
379
|
from ..lsh.manager import LshManager
|
380
|
-
|
380
|
+
# Try multiple possible paths for LSH data
|
381
|
+
possible_paths = [
|
382
|
+
self.db_directory_path, # Original path
|
383
|
+
Path(self.db_root_path) / "data" / f"{self.db_mode}_databases" / self.db_id, # Data subdirectory
|
384
|
+
]
|
385
|
+
|
386
|
+
lsh_manager = None
|
387
|
+
for path in possible_paths:
|
388
|
+
try:
|
389
|
+
temp_manager = LshManager(path)
|
390
|
+
if temp_manager.is_available():
|
391
|
+
lsh_manager = temp_manager
|
392
|
+
logger.info(f"Found LSH data at: {path}")
|
393
|
+
break
|
394
|
+
except Exception as e:
|
395
|
+
logger.debug(f"LSH not found at {path}: {e}")
|
396
|
+
continue
|
397
|
+
|
398
|
+
if lsh_manager is None:
|
399
|
+
# Create manager with original path as fallback
|
400
|
+
lsh_manager = LshManager(self.db_directory_path)
|
401
|
+
logger.warning(f"No LSH data found, using default path: {self.db_directory_path}")
|
402
|
+
|
403
|
+
self._lsh_manager = lsh_manager
|
381
404
|
return self._lsh_manager
|
382
405
|
|
383
406
|
# LSH integration methods for backward compatibility
|
thoth_dbmanager/plugins/mysql.py
CHANGED
@@ -349,7 +349,30 @@ class MySQLPlugin(DbPlugin):
|
|
349
349
|
"""Lazy load LSH manager for backward compatibility."""
|
350
350
|
if self._lsh_manager is None and self.db_directory_path:
|
351
351
|
from ..lsh.manager import LshManager
|
352
|
-
|
352
|
+
# Try multiple possible paths for LSH data
|
353
|
+
possible_paths = [
|
354
|
+
self.db_directory_path, # Original path
|
355
|
+
Path(self.db_root_path) / "data" / f"{self.db_mode}_databases" / self.db_id, # Data subdirectory
|
356
|
+
]
|
357
|
+
|
358
|
+
lsh_manager = None
|
359
|
+
for path in possible_paths:
|
360
|
+
try:
|
361
|
+
temp_manager = LshManager(path)
|
362
|
+
if temp_manager.is_available():
|
363
|
+
lsh_manager = temp_manager
|
364
|
+
logger.info(f"Found LSH data at: {path}")
|
365
|
+
break
|
366
|
+
except Exception as e:
|
367
|
+
logger.debug(f"LSH not found at {path}: {e}")
|
368
|
+
continue
|
369
|
+
|
370
|
+
if lsh_manager is None:
|
371
|
+
# Create manager with original path as fallback
|
372
|
+
lsh_manager = LshManager(self.db_directory_path)
|
373
|
+
logger.warning(f"No LSH data found, using default path: {self.db_directory_path}")
|
374
|
+
|
375
|
+
self._lsh_manager = lsh_manager
|
353
376
|
return self._lsh_manager
|
354
377
|
|
355
378
|
# LSH integration methods for backward compatibility
|
@@ -93,7 +93,30 @@ class PostgreSQLPlugin(DbPlugin):
|
|
93
93
|
"""Lazy load LSH manager for backward compatibility"""
|
94
94
|
if self._lsh_manager is None and self.db_directory_path:
|
95
95
|
from ..lsh.manager import LshManager
|
96
|
-
|
96
|
+
# Try multiple possible paths for LSH data
|
97
|
+
possible_paths = [
|
98
|
+
self.db_directory_path, # Original path
|
99
|
+
Path(self.db_root_path) / "data" / f"{self.db_mode}_databases" / self.db_id, # Data subdirectory
|
100
|
+
]
|
101
|
+
|
102
|
+
lsh_manager = None
|
103
|
+
for path in possible_paths:
|
104
|
+
try:
|
105
|
+
temp_manager = LshManager(path)
|
106
|
+
if temp_manager.is_available():
|
107
|
+
lsh_manager = temp_manager
|
108
|
+
logger.info(f"Found LSH data at: {path}")
|
109
|
+
break
|
110
|
+
except Exception as e:
|
111
|
+
logger.debug(f"LSH not found at {path}: {e}")
|
112
|
+
continue
|
113
|
+
|
114
|
+
if lsh_manager is None:
|
115
|
+
# Create manager with original path as fallback
|
116
|
+
lsh_manager = LshManager(self.db_directory_path)
|
117
|
+
logger.warning(f"No LSH data found, using default path: {self.db_directory_path}")
|
118
|
+
|
119
|
+
self._lsh_manager = lsh_manager
|
97
120
|
return self._lsh_manager
|
98
121
|
|
99
122
|
# LSH integration methods for backward compatibility
|
@@ -117,7 +117,30 @@ class SQLitePlugin(DbPlugin):
|
|
117
117
|
"""Lazy load LSH manager for backward compatibility"""
|
118
118
|
if self._lsh_manager is None and self.db_directory_path:
|
119
119
|
from ..lsh.manager import LshManager
|
120
|
-
|
120
|
+
# Try multiple possible paths for LSH data
|
121
|
+
possible_paths = [
|
122
|
+
self.db_directory_path, # Original path
|
123
|
+
Path(self.db_root_path) / "data" / f"{self.db_mode}_databases" / self.db_id, # Data subdirectory
|
124
|
+
]
|
125
|
+
|
126
|
+
lsh_manager = None
|
127
|
+
for path in possible_paths:
|
128
|
+
try:
|
129
|
+
temp_manager = LshManager(path)
|
130
|
+
if temp_manager.is_available():
|
131
|
+
lsh_manager = temp_manager
|
132
|
+
logger.info(f"Found LSH data at: {path}")
|
133
|
+
break
|
134
|
+
except Exception as e:
|
135
|
+
logger.debug(f"LSH not found at {path}: {e}")
|
136
|
+
continue
|
137
|
+
|
138
|
+
if lsh_manager is None:
|
139
|
+
# Create manager with original path as fallback
|
140
|
+
lsh_manager = LshManager(self.db_directory_path)
|
141
|
+
logger.warning(f"No LSH data found, using default path: {self.db_directory_path}")
|
142
|
+
|
143
|
+
self._lsh_manager = lsh_manager
|
121
144
|
return self._lsh_manager
|
122
145
|
|
123
146
|
# LSH integration methods for backward compatibility
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: thoth_dbmanager
|
3
|
-
Version: 0.4.
|
3
|
+
Version: 0.4.6
|
4
4
|
Summary: A Python library for managing SQL databases with support for multiple database types, LSH-based similarity search, and a modern plugin architecture.
|
5
5
|
Author-email: Marco Pancotti <mp@tylconsulting.it>
|
6
6
|
Project-URL: Homepage, https://github.com/mptyl/thoth_dbmanager
|
@@ -25,15 +25,15 @@ thoth_dbmanager/lsh/factory.py,sha256=2Bpkk-OygjaptZAw1yysxO1cxG3QTxmJ1yFGcXHqX3
|
|
25
25
|
thoth_dbmanager/lsh/manager.py,sha256=NDKU2re6Xp7cU6pB5EtucZqQgPiT5nyugoUCCIAG29s,5777
|
26
26
|
thoth_dbmanager/lsh/storage.py,sha256=Wp1fjVBVE3inRFTAZCxlc6vwZdlKDwY7wCfwfu7P5Xw,3085
|
27
27
|
thoth_dbmanager/plugins/__init__.py,sha256=98iKwNiKnFFeJfw0qLGVOrP2Mo2wGPAolsx7R2B3emA,592
|
28
|
-
thoth_dbmanager/plugins/mariadb.py,sha256
|
29
|
-
thoth_dbmanager/plugins/mysql.py,sha256=
|
28
|
+
thoth_dbmanager/plugins/mariadb.py,sha256=-tXnYs-5zbx60LPGE95JwCblWu18PrPJXmChXEaZ9uo,18967
|
29
|
+
thoth_dbmanager/plugins/mysql.py,sha256=D15RgPbM59tgrcIxyx26V2_efWWuD1Pm62MB6xcGCAo,17538
|
30
30
|
thoth_dbmanager/plugins/oracle.py,sha256=k4Yxvz5MdsH3Sfty9lxbhr8igSnHvGbGujz3bLpNcHo,5230
|
31
|
-
thoth_dbmanager/plugins/postgresql.py,sha256=
|
32
|
-
thoth_dbmanager/plugins/sqlite.py,sha256=
|
31
|
+
thoth_dbmanager/plugins/postgresql.py,sha256=xtBWBzEnyDQsGSq2bgI-ID6acpnchOLf0XxcBnRz5bw,6510
|
32
|
+
thoth_dbmanager/plugins/sqlite.py,sha256=loWJwir8Sczt5r7PVY2KFNNfGkIGB8SkJ9hdHJOllTM,7496
|
33
33
|
thoth_dbmanager/plugins/sqlserver.py,sha256=mMb3F5FmSWV02FZwj-Ult-2TjuyeVA4Fl1iME1dbgLU,5289
|
34
34
|
thoth_dbmanager/plugins/supabase.py,sha256=mWlaGAdpywx4-pU4Ffpmn24ze8sg0sM5kc6bFDoeYRg,8645
|
35
|
-
thoth_dbmanager-0.4.
|
36
|
-
thoth_dbmanager-0.4.
|
37
|
-
thoth_dbmanager-0.4.
|
38
|
-
thoth_dbmanager-0.4.
|
39
|
-
thoth_dbmanager-0.4.
|
35
|
+
thoth_dbmanager-0.4.6.dist-info/licenses/LICENSE,sha256=81-BOzGgwtY1XdYfkwMQB87AkOGXI9OMq0kjNcZA4UE,1071
|
36
|
+
thoth_dbmanager-0.4.6.dist-info/METADATA,sha256=ErCKl7Y7e_lTcn6EngCacl_HNarVAD7Ww2hujsJHcXQ,12246
|
37
|
+
thoth_dbmanager-0.4.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
38
|
+
thoth_dbmanager-0.4.6.dist-info/top_level.txt,sha256=b9ttxm9RUc0KUCASEKRx6FqoREYJ1-KZWSpNuaM0uQ4,16
|
39
|
+
thoth_dbmanager-0.4.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|