thoth-dbmanager 0.4.9__tar.gz → 0.4.10__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.
- {thoth_dbmanager-0.4.9/thoth_dbmanager.egg-info → thoth_dbmanager-0.4.10}/PKG-INFO +1 -1
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/pyproject.toml +1 -1
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager/plugins/sqlite.py +13 -12
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10/thoth_dbmanager.egg-info}/PKG-INFO +1 -1
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/LICENSE +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/MANIFEST.in +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/README.md +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/setup.cfg +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/tests/test_integration_new_architecture.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/tests/test_lsh_query.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/tests/test_new_architecture.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/tests/test_parameter_validation.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/tests/test_thoth_db_manager_base.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/tests/test_thoth_informix_manager.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/tests/test_thoth_mariadb_manager.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/tests/test_thoth_mysql_manager.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/tests/test_thoth_oracle_manager.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/tests/test_thoth_pg_manager.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/tests/test_thoth_sqlite_manager.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/tests/test_thoth_sqlserver_manager.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/tests/test_thoth_supabase_manager.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager/ThothDbManager.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager/__init__.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager/adapters/__init__.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager/adapters/mariadb.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager/adapters/mysql.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager/adapters/oracle.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager/adapters/postgresql.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager/adapters/sqlite.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager/adapters/sqlserver.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager/adapters/supabase.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager/core/__init__.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager/core/factory.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager/core/interfaces.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager/core/registry.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager/documents.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager/dynamic_imports.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager/helpers/__init__.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager/helpers/multi_db_generator.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager/helpers/preprocess_values.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager/helpers/schema.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager/helpers/search.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager/lsh/__init__.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager/lsh/core.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager/lsh/factory.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager/lsh/manager.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager/lsh/storage.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager/plugins/__init__.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager/plugins/mariadb.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager/plugins/mysql.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager/plugins/oracle.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager/plugins/postgresql.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager/plugins/sqlserver.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager/plugins/supabase.py +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager.egg-info/SOURCES.txt +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager.egg-info/dependency_links.txt +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager.egg-info/requires.txt +0 -0
- {thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: thoth_dbmanager
|
3
|
-
Version: 0.4.
|
3
|
+
Version: 0.4.10
|
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
|
@@ -75,7 +75,7 @@ class SQLitePlugin(DbPlugin):
|
|
75
75
|
# Handle database path resolution
|
76
76
|
database_path = kwargs.get('database_path')
|
77
77
|
database_name = kwargs.get('database_name')
|
78
|
-
|
78
|
+
|
79
79
|
if not database_path and database_name:
|
80
80
|
# Create database path from name and root path
|
81
81
|
db_root = Path(self.db_root_path)
|
@@ -83,22 +83,23 @@ class SQLitePlugin(DbPlugin):
|
|
83
83
|
db_dir.mkdir(parents=True, exist_ok=True)
|
84
84
|
database_path = str(db_dir / f"{database_name}.db")
|
85
85
|
kwargs['database_path'] = database_path
|
86
|
-
|
87
|
-
# Set database path for adapter
|
86
|
+
|
87
|
+
# Set database path for adapter - ensure we use the provided database_path
|
88
88
|
self.database_path = database_path
|
89
|
-
|
90
|
-
#
|
91
|
-
super().initialize(**kwargs)
|
92
|
-
|
93
|
-
# Set up database directory path and ID
|
89
|
+
|
90
|
+
# Set up database directory path and ID before calling super().initialize()
|
94
91
|
if database_name:
|
95
92
|
self.db_id = database_name
|
96
93
|
else:
|
97
94
|
# Extract database name from path
|
98
|
-
self.db_id = Path(database_path).stem
|
99
|
-
|
100
|
-
self.
|
101
|
-
|
95
|
+
self.db_id = Path(database_path).stem if database_path else None
|
96
|
+
|
97
|
+
if self.db_id:
|
98
|
+
self._setup_directory_path(self.db_id)
|
99
|
+
|
100
|
+
# Initialize with updated kwargs - this will create and connect the adapter
|
101
|
+
super().initialize(**kwargs)
|
102
|
+
|
102
103
|
logger.info(f"SQLite plugin initialized for database: {self.db_id} at {self.database_path}")
|
103
104
|
|
104
105
|
def _setup_directory_path(self, db_id: str) -> None:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: thoth_dbmanager
|
3
|
-
Version: 0.4.
|
3
|
+
Version: 0.4.10
|
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
|
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
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager/helpers/multi_db_generator.py
RENAMED
File without changes
|
{thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager/helpers/preprocess_values.py
RENAMED
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
|
File without changes
|
{thoth_dbmanager-0.4.9 → thoth_dbmanager-0.4.10}/thoth_dbmanager.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|