entari-plugin-database 0.2.2__tar.gz → 0.2.4__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.
- {entari_plugin_database-0.2.2 → entari_plugin_database-0.2.4}/PKG-INFO +2 -2
- {entari_plugin_database-0.2.2 → entari_plugin_database-0.2.4}/pyproject.toml +3 -3
- {entari_plugin_database-0.2.2 → entari_plugin_database-0.2.4}/src/entari_plugin_database/__init__.py +2 -1
- {entari_plugin_database-0.2.2 → entari_plugin_database-0.2.4}/src/entari_plugin_database/migration.py +1 -1
- {entari_plugin_database-0.2.2 → entari_plugin_database-0.2.4}/LICENSE +0 -0
- {entari_plugin_database-0.2.2 → entari_plugin_database-0.2.4}/README.md +0 -0
- {entari_plugin_database-0.2.2 → entari_plugin_database-0.2.4}/src/entari_plugin_database/README.md +0 -0
- {entari_plugin_database-0.2.2 → entari_plugin_database-0.2.4}/src/entari_plugin_database/config.py +0 -0
- {entari_plugin_database-0.2.2 → entari_plugin_database-0.2.4}/src/entari_plugin_database/param.py +0 -0
- {entari_plugin_database-0.2.2 → entari_plugin_database-0.2.4}/src/entari_plugin_database/utils.py +0 -0
- {entari_plugin_database-0.2.2 → entari_plugin_database-0.2.4}/tests/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: entari-plugin-database
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
4
4
|
Summary: Entari plugin for SQLAlchemy ORM
|
|
5
5
|
Author-Email: RF-Tar-Railt <rf_tar_railt@qq.com>
|
|
6
6
|
License: MIT
|
|
@@ -11,7 +11,7 @@ Requires-Dist: graia-amnesia>=0.11.4
|
|
|
11
11
|
Requires-Dist: tarina<0.8.0,>=0.7.1
|
|
12
12
|
Requires-Dist: arclet-letoderea>=0.19.5
|
|
13
13
|
Requires-Dist: alembic>=1.16.5
|
|
14
|
-
Requires-Dist: arclet-entari<0.18.0,>=0.17.
|
|
14
|
+
Requires-Dist: arclet-entari<0.18.0,>=0.17.0
|
|
15
15
|
Description-Content-Type: text/markdown
|
|
16
16
|
|
|
17
17
|
# entari-plugin-database
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "entari-plugin-database"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.4"
|
|
4
4
|
description = "Entari plugin for SQLAlchemy ORM"
|
|
5
5
|
authors = [
|
|
6
6
|
{ name = "RF-Tar-Railt", email = "rf_tar_railt@qq.com" },
|
|
@@ -12,7 +12,7 @@ dependencies = [
|
|
|
12
12
|
"tarina<0.8.0,>=0.7.1",
|
|
13
13
|
"arclet-letoderea>=0.19.5",
|
|
14
14
|
"alembic>=1.16.5",
|
|
15
|
-
"arclet-entari<0.18.0,>=0.17.
|
|
15
|
+
"arclet-entari<0.18.0,>=0.17.0",
|
|
16
16
|
]
|
|
17
17
|
requires-python = ">=3.10"
|
|
18
18
|
readme = "README.md"
|
|
@@ -31,7 +31,7 @@ distribution = true
|
|
|
31
31
|
|
|
32
32
|
[tool.pdm.dev-dependencies]
|
|
33
33
|
dev = [
|
|
34
|
-
"arclet-entari[full]>=0.
|
|
34
|
+
"arclet-entari[full]>=0.17.0",
|
|
35
35
|
]
|
|
36
36
|
|
|
37
37
|
[tool.ruff]
|
{entari_plugin_database-0.2.2 → entari_plugin_database-0.2.4}/src/entari_plugin_database/__init__.py
RENAMED
|
@@ -25,12 +25,13 @@ plugin.declare_static()
|
|
|
25
25
|
plugin.metadata(
|
|
26
26
|
"Database 服务",
|
|
27
27
|
[{"name": "RF-Tar-Railt", "email": "rf_tar_railt@qq.com"}],
|
|
28
|
-
"0.2.
|
|
28
|
+
"0.2.4",
|
|
29
29
|
description="基于 SQLAlchemy 的数据库服务插件",
|
|
30
30
|
urls={
|
|
31
31
|
"homepage": "https://github.com/ArcletProject/entari-plugin-database",
|
|
32
32
|
},
|
|
33
33
|
config=Config,
|
|
34
|
+
readme="README.md",
|
|
34
35
|
)
|
|
35
36
|
plugin.collect_disposes(
|
|
36
37
|
lambda: global_propagators.remove(db_supplier),
|
|
@@ -637,7 +637,7 @@ def _group_tables_by_engine(
|
|
|
637
637
|
|
|
638
638
|
for t in tables_to_process:
|
|
639
639
|
table_obj = plan.model_info.get(t, {}).get("table_obj")
|
|
640
|
-
bind_key = table_obj.info.get("bind_key", "") if table_obj else _DEFAULT_BIND_KEY
|
|
640
|
+
bind_key = table_obj.info.get("bind_key", "") if table_obj is not None else _DEFAULT_BIND_KEY
|
|
641
641
|
effective_key = bind_key if bind_key in service.engines else _DEFAULT_BIND_KEY
|
|
642
642
|
tables_by_engine.setdefault(effective_key, set()).add(t)
|
|
643
643
|
|
|
File without changes
|
|
File without changes
|
{entari_plugin_database-0.2.2 → entari_plugin_database-0.2.4}/src/entari_plugin_database/README.md
RENAMED
|
File without changes
|
{entari_plugin_database-0.2.2 → entari_plugin_database-0.2.4}/src/entari_plugin_database/config.py
RENAMED
|
File without changes
|
{entari_plugin_database-0.2.2 → entari_plugin_database-0.2.4}/src/entari_plugin_database/param.py
RENAMED
|
File without changes
|
{entari_plugin_database-0.2.2 → entari_plugin_database-0.2.4}/src/entari_plugin_database/utils.py
RENAMED
|
File without changes
|
|
File without changes
|