xbot.plugins.pgsql 0.1.1__tar.gz → 0.2.1__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.
- {xbot_plugins_pgsql-0.1.1/xbot.plugins.pgsql.egg-info → xbot_plugins_pgsql-0.2.1}/PKG-INFO +10 -2
- {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/README.md +4 -0
- {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/README.zh.md +4 -0
- {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/pyproject.toml +1 -1
- {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/xbot/plugins/pgsql/pgsql.py +1 -1
- xbot_plugins_pgsql-0.2.1/xbot/plugins/pgsql/version.py +5 -0
- {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1/xbot.plugins.pgsql.egg-info}/PKG-INFO +10 -2
- {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/xbot.plugins.pgsql.egg-info/requires.txt +1 -1
- xbot_plugins_pgsql-0.1.1/xbot/plugins/pgsql/version.py +0 -5
- {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/LICENSE +0 -0
- {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/docs/superpowers/plans/2026-07-24-pgsql-library.md +0 -0
- {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/docs/superpowers/specs/2026-07-24-pgsql-library-design.md +0 -0
- {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/setup.cfg +0 -0
- {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/setup.py +0 -0
- {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/tests/__init__.py +0 -0
- {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/tests/run.py +0 -0
- {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/tests/test_pgsql.py +0 -0
- {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/xbot/plugins/pgsql/__init__.py +0 -0
- {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/xbot/plugins/pgsql/codes.py +0 -0
- {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/xbot/plugins/pgsql/errors.py +0 -0
- {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/xbot/plugins/pgsql/py.typed +0 -0
- {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/xbot.plugins.pgsql.egg-info/SOURCES.txt +0 -0
- {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/xbot.plugins.pgsql.egg-info/dependency_links.txt +0 -0
- {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/xbot.plugins.pgsql.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: xbot.plugins.pgsql
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: PostgreSQL library for xbot.framework
|
|
5
5
|
Author-email: zhaowcheng <zhaowcheng@163.com>
|
|
6
6
|
License-Expression: BSD-2-Clause
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
15
15
|
Requires-Python: >=3.10
|
|
16
16
|
Description-Content-Type: text/markdown
|
|
17
17
|
License-File: LICENSE
|
|
18
|
-
Requires-Dist: xbot.framework>=0.5.
|
|
18
|
+
Requires-Dist: xbot.framework>=0.5.2
|
|
19
19
|
Requires-Dist: psycopg[binary]<4,>=3
|
|
20
20
|
Requires-Dist: cli_helpers
|
|
21
21
|
Provides-Extra: dev
|
|
@@ -74,6 +74,10 @@ with db.transaction():
|
|
|
74
74
|
db.disconnect()
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
+
## Demo Project
|
|
78
|
+
|
|
79
|
+
Here is a [demo](https://github.com/zhaowcheng/xbot.plugins.pgsql/tree/v0.2.1/demo) project showing how to use `xbot.plugins.pgsql` in a test project.
|
|
80
|
+
|
|
77
81
|
***
|
|
78
82
|
|
|
79
83
|
# xbot.plugins.pgsql
|
|
@@ -124,3 +128,7 @@ with db.transaction():
|
|
|
124
128
|
|
|
125
129
|
db.disconnect()
|
|
126
130
|
```
|
|
131
|
+
|
|
132
|
+
## 示例项目
|
|
133
|
+
|
|
134
|
+
展示如何在一个测试项目中使用本插件的示例:[demo](https://github.com/zhaowcheng/xbot.plugins.pgsql/tree/v0.2.1/demo)
|
|
@@ -195,7 +195,7 @@ class PGSQLConnection(object):
|
|
|
195
195
|
rc=getattr(e, 'sqlstate', None),
|
|
196
196
|
cmd=cmd,
|
|
197
197
|
)
|
|
198
|
-
extra[
|
|
198
|
+
extra["hook"]["more"] = str(result)
|
|
199
199
|
if expect != None and result.rc != expect.value:
|
|
200
200
|
msg = textwrap.dedent(f"""\
|
|
201
201
|
Expections not met:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: xbot.plugins.pgsql
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: PostgreSQL library for xbot.framework
|
|
5
5
|
Author-email: zhaowcheng <zhaowcheng@163.com>
|
|
6
6
|
License-Expression: BSD-2-Clause
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
15
15
|
Requires-Python: >=3.10
|
|
16
16
|
Description-Content-Type: text/markdown
|
|
17
17
|
License-File: LICENSE
|
|
18
|
-
Requires-Dist: xbot.framework>=0.5.
|
|
18
|
+
Requires-Dist: xbot.framework>=0.5.2
|
|
19
19
|
Requires-Dist: psycopg[binary]<4,>=3
|
|
20
20
|
Requires-Dist: cli_helpers
|
|
21
21
|
Provides-Extra: dev
|
|
@@ -74,6 +74,10 @@ with db.transaction():
|
|
|
74
74
|
db.disconnect()
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
+
## Demo Project
|
|
78
|
+
|
|
79
|
+
Here is a [demo](https://github.com/zhaowcheng/xbot.plugins.pgsql/tree/v0.2.1/demo) project showing how to use `xbot.plugins.pgsql` in a test project.
|
|
80
|
+
|
|
77
81
|
***
|
|
78
82
|
|
|
79
83
|
# xbot.plugins.pgsql
|
|
@@ -124,3 +128,7 @@ with db.transaction():
|
|
|
124
128
|
|
|
125
129
|
db.disconnect()
|
|
126
130
|
```
|
|
131
|
+
|
|
132
|
+
## 示例项目
|
|
133
|
+
|
|
134
|
+
展示如何在一个测试项目中使用本插件的示例:[demo](https://github.com/zhaowcheng/xbot.plugins.pgsql/tree/v0.2.1/demo)
|
|
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
|
{xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/xbot.plugins.pgsql.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/xbot.plugins.pgsql.egg-info/top_level.txt
RENAMED
|
File without changes
|