thoth-dbmanager 0.4.3__py3-none-any.whl → 0.4.5__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.
@@ -346,6 +346,7 @@ class ThothDbManagerAdapter(ThothDbManager):
346
346
  self.db_type = plugin.supported_db_types[0] if plugin.supported_db_types else "unknown"
347
347
  self.db_id = getattr(plugin, 'db_id', None)
348
348
  self.db_directory_path = getattr(plugin, 'db_directory_path', None)
349
+ self.schema = getattr(plugin, 'schema', "")
349
350
 
350
351
  # Engine and connection (delegated to adapter)
351
352
  self.engine = getattr(plugin.adapter, 'engine', None) if plugin.adapter else None
@@ -27,7 +27,10 @@ class PostgreSQLPlugin(DbPlugin):
27
27
  super().__init__(db_root_path, db_mode, **kwargs)
28
28
  self.db_id = None
29
29
  self.db_directory_path = None
30
-
30
+
31
+ # PostgreSQL default schema is 'public', but can be overridden
32
+ self.schema = kwargs.get('schema', 'public')
33
+
31
34
  # LSH manager integration (for backward compatibility)
32
35
  self._lsh_manager = None
33
36
 
@@ -28,7 +28,10 @@ class SQLitePlugin(DbPlugin):
28
28
  self.db_id = None
29
29
  self.db_directory_path = None
30
30
  self.database_path = None
31
-
31
+
32
+ # SQLite doesn't have named schemas like PostgreSQL, so we use empty string
33
+ self.schema = ""
34
+
32
35
  # LSH manager integration (for backward compatibility)
33
36
  self._lsh_manager = None
34
37
 
@@ -1,9 +1,8 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: thoth_dbmanager
3
- Version: 0.4.3
3
+ Version: 0.4.5
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
- License: MIT
7
6
  Project-URL: Homepage, https://github.com/mptyl/thoth_dbmanager
8
7
  Project-URL: Bug Tracker, https://github.com/mptyl/thoth_dbmanager/issues
9
8
  Project-URL: Documentation, https://github.com/mptyl/thoth_dbmanager#readme
@@ -1,4 +1,4 @@
1
- thoth_dbmanager/ThothDbManager.py,sha256=xyPhB6_3Ao3fGb4LjgCe-MvVI_C-9UXxeazra2dhmkI,17846
1
+ thoth_dbmanager/ThothDbManager.py,sha256=6Ew5Z9paTE2R8SJHW29Tf4bOGrYtKyHipSN4luwUXDI,17898
2
2
  thoth_dbmanager/__init__.py,sha256=zvs3kqKA99s9RJN6JVWTm-8asMeLc1NG5mnEpJTfzNg,3190
3
3
  thoth_dbmanager/documents.py,sha256=z-f7zo_CZHqoGM0qHT8-lSUx4NhnMNZTSajpoFtRxn4,5051
4
4
  thoth_dbmanager/dynamic_imports.py,sha256=nqMmxl2KeczAK-Bi5Fq92f3rPpPsTay-Bq553iHFbWI,7507
@@ -28,12 +28,12 @@ thoth_dbmanager/plugins/__init__.py,sha256=98iKwNiKnFFeJfw0qLGVOrP2Mo2wGPAolsx7R
28
28
  thoth_dbmanager/plugins/mariadb.py,sha256=ElYa4Rexwrofcjcs0UQKan8fZpbU6-n9zghYR9SgRb4,17975
29
29
  thoth_dbmanager/plugins/mysql.py,sha256=mbDsIDV2H_BWYANU4JHMsUkxLQICuGtjKTTPbig2Ngs,16546
30
30
  thoth_dbmanager/plugins/oracle.py,sha256=k4Yxvz5MdsH3Sfty9lxbhr8igSnHvGbGujz3bLpNcHo,5230
31
- thoth_dbmanager/plugins/postgresql.py,sha256=GF6k4K0t7-Y08THWJzS0eWJkrQ1e4GfoKIcanC0Z5Ng,5401
32
- thoth_dbmanager/plugins/sqlite.py,sha256=esgJqDp2aSu4a32WnmynfFyY9JfW5W8VjNTkaA-hZhM,6402
31
+ thoth_dbmanager/plugins/postgresql.py,sha256=pI1W9oHpQty8tHMoEDcsOT-Msv6S4aoFcArOGFxLR7Q,5518
32
+ thoth_dbmanager/plugins/sqlite.py,sha256=iMlOH4XMEY-Ac3yrs1HzjKaR4km1DxLDwAEjGZzM0Cc,6504
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.3.dist-info/licenses/LICENSE,sha256=81-BOzGgwtY1XdYfkwMQB87AkOGXI9OMq0kjNcZA4UE,1071
36
- thoth_dbmanager-0.4.3.dist-info/METADATA,sha256=5cjJw_2qjHE_Ke7gukqF0WrRQLOJGT9PSSn9SegJOoQ,12259
37
- thoth_dbmanager-0.4.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
38
- thoth_dbmanager-0.4.3.dist-info/top_level.txt,sha256=b9ttxm9RUc0KUCASEKRx6FqoREYJ1-KZWSpNuaM0uQ4,16
39
- thoth_dbmanager-0.4.3.dist-info/RECORD,,
35
+ thoth_dbmanager-0.4.5.dist-info/licenses/LICENSE,sha256=81-BOzGgwtY1XdYfkwMQB87AkOGXI9OMq0kjNcZA4UE,1071
36
+ thoth_dbmanager-0.4.5.dist-info/METADATA,sha256=VKNtG9atNqfPg3vcikSogOIcxrCxKk9mLRyPuUqfoKg,12246
37
+ thoth_dbmanager-0.4.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
38
+ thoth_dbmanager-0.4.5.dist-info/top_level.txt,sha256=b9ttxm9RUc0KUCASEKRx6FqoREYJ1-KZWSpNuaM0uQ4,16
39
+ thoth_dbmanager-0.4.5.dist-info/RECORD,,