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.
Files changed (24) hide show
  1. {xbot_plugins_pgsql-0.1.1/xbot.plugins.pgsql.egg-info → xbot_plugins_pgsql-0.2.1}/PKG-INFO +10 -2
  2. {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/README.md +4 -0
  3. {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/README.zh.md +4 -0
  4. {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/pyproject.toml +1 -1
  5. {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/xbot/plugins/pgsql/pgsql.py +1 -1
  6. xbot_plugins_pgsql-0.2.1/xbot/plugins/pgsql/version.py +5 -0
  7. {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1/xbot.plugins.pgsql.egg-info}/PKG-INFO +10 -2
  8. {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/xbot.plugins.pgsql.egg-info/requires.txt +1 -1
  9. xbot_plugins_pgsql-0.1.1/xbot/plugins/pgsql/version.py +0 -5
  10. {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/LICENSE +0 -0
  11. {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/docs/superpowers/plans/2026-07-24-pgsql-library.md +0 -0
  12. {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/docs/superpowers/specs/2026-07-24-pgsql-library-design.md +0 -0
  13. {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/setup.cfg +0 -0
  14. {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/setup.py +0 -0
  15. {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/tests/__init__.py +0 -0
  16. {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/tests/run.py +0 -0
  17. {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/tests/test_pgsql.py +0 -0
  18. {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/xbot/plugins/pgsql/__init__.py +0 -0
  19. {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/xbot/plugins/pgsql/codes.py +0 -0
  20. {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/xbot/plugins/pgsql/errors.py +0 -0
  21. {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/xbot/plugins/pgsql/py.typed +0 -0
  22. {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/xbot.plugins.pgsql.egg-info/SOURCES.txt +0 -0
  23. {xbot_plugins_pgsql-0.1.1 → xbot_plugins_pgsql-0.2.1}/xbot.plugins.pgsql.egg-info/dependency_links.txt +0 -0
  24. {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.1.1
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.1
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)
@@ -52,3 +52,7 @@ with db.transaction():
52
52
 
53
53
  db.disconnect()
54
54
  ```
55
+
56
+ ## Demo Project
57
+
58
+ Here is a [demo](https://github.com/zhaowcheng/xbot.plugins.pgsql/tree/master/demo) project showing how to use `xbot.plugins.pgsql` in a test project.
@@ -52,3 +52,7 @@ with db.transaction():
52
52
 
53
53
  db.disconnect()
54
54
  ```
55
+
56
+ ## 示例项目
57
+
58
+ 展示如何在一个测试项目中使用本插件的示例:[demo](https://github.com/zhaowcheng/xbot.plugins.pgsql/tree/master/demo)
@@ -12,7 +12,7 @@ license = "BSD-2-Clause"
12
12
  license-files = ["LICENSE"]
13
13
  requires-python = ">=3.10"
14
14
  dependencies = [
15
- "xbot.framework>=0.5.1",
15
+ "xbot.framework>=0.5.2",
16
16
  "psycopg[binary]>=3,<4",
17
17
  "cli_helpers",
18
18
  ]
@@ -195,7 +195,7 @@ class PGSQLConnection(object):
195
195
  rc=getattr(e, 'sqlstate', None),
196
196
  cmd=cmd,
197
197
  )
198
- extra['hook']['more'] = result
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:
@@ -0,0 +1,5 @@
1
+ """
2
+ Package version.
3
+ """
4
+
5
+ __version__: str = '0.2.1'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xbot.plugins.pgsql
3
- Version: 0.1.1
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.1
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)
@@ -1,4 +1,4 @@
1
- xbot.framework>=0.5.1
1
+ xbot.framework>=0.5.2
2
2
  psycopg[binary]<4,>=3
3
3
  cli_helpers
4
4
 
@@ -1,5 +0,0 @@
1
- """
2
- Package version.
3
- """
4
-
5
- __version__: str = '0.1.1'