xbot.plugins.pgsql 0.1.0__py3-none-any.whl → 0.2.0__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.
@@ -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:
@@ -2,4 +2,4 @@
2
2
  Package version.
3
3
  """
4
4
 
5
- __version__: str = '0.1.0'
5
+ __version__: str = '0.2.0'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xbot.plugins.pgsql
3
- Version: 0.1.0
3
+ Version: 0.2.0
4
4
  Summary: PostgreSQL library for xbot.framework
5
5
  Author-email: zhaowcheng <zhaowcheng@163.com>
6
6
  License-Expression: BSD-2-Clause
@@ -21,14 +21,10 @@ Requires-Dist: cli_helpers
21
21
  Provides-Extra: dev
22
22
  Requires-Dist: build; extra == "dev"
23
23
  Requires-Dist: mypy; extra == "dev"
24
+ Dynamic: description
25
+ Dynamic: description-content-type
24
26
  Dynamic: license-file
25
27
 
26
- <p align="center">
27
- <br>English | <a href="README.zh.md">中文</a>
28
- </p>
29
-
30
- ---
31
-
32
28
  # xbot.plugins.pgsql
33
29
 
34
30
  PostgreSQL library for xbot.framework.
@@ -78,11 +74,11 @@ with db.transaction():
78
74
  db.disconnect()
79
75
  ```
80
76
 
81
- <p align="center">
82
- <br>中文 | <a href="README.md">English</a>
83
- </p>
77
+ ## Demo Project
78
+
79
+ Here is a [demo](https://github.com/zhaowcheng/xbot.plugins.pgsql/tree/v0.2.0/demo) project showing how to use `xbot.plugins.pgsql` in a test project.
84
80
 
85
- ---
81
+ ***
86
82
 
87
83
  # xbot.plugins.pgsql
88
84
 
@@ -132,3 +128,7 @@ with db.transaction():
132
128
 
133
129
  db.disconnect()
134
130
  ```
131
+
132
+ ## 示例项目
133
+
134
+ 展示如何在一个测试项目中使用本插件的示例:[demo](https://github.com/zhaowcheng/xbot.plugins.pgsql/tree/v0.2.0/demo)
@@ -4,11 +4,11 @@ tests/test_pgsql.py,sha256=3k6r5qb0cNQIjsH8ev1CpVVJ3LFdcw7W65g3d-HL6UA,8947
4
4
  xbot/plugins/pgsql/__init__.py,sha256=nSbwueWFzdbcmcENLAsnQiSqEbQ1yzvIG_jxJCrC27g,439
5
5
  xbot/plugins/pgsql/codes.py,sha256=5OEIs0YNHbZYGm9jIWczMVuQvu3TTQCn_GD04IAypyg,12400
6
6
  xbot/plugins/pgsql/errors.py,sha256=9SRtFCc5ee9r2OMS8SFd8ml8H1LcSlvO8O2WqjLh3WU,1103
7
- xbot/plugins/pgsql/pgsql.py,sha256=D31ULKlzwHLb2vdGenhPNnmItxpXeIok0ZLeNsQjCig,6877
7
+ xbot/plugins/pgsql/pgsql.py,sha256=NYigtbnEPj07AH8FUx7OzVknwY-qmcmxZ17VZH_M2NE,6882
8
8
  xbot/plugins/pgsql/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
- xbot/plugins/pgsql/version.py,sha256=yUaeFX3keaqxK7DotElYbBSr-vs68q_f61nlL3WZisw,53
10
- xbot_plugins_pgsql-0.1.0.dist-info/licenses/LICENSE,sha256=QQgf5JlcyKhtVWQcDwDfv7aU_8RZ5qZKxLnpp3NEXos,1325
11
- xbot_plugins_pgsql-0.1.0.dist-info/METADATA,sha256=yOpUjIHYUG4J9DrwJ24w_C3ioX3bjj9kFWa5clI4KvQ,3235
12
- xbot_plugins_pgsql-0.1.0.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
13
- xbot_plugins_pgsql-0.1.0.dist-info/top_level.txt,sha256=4uDSWEEQ4RLxZEPAyhoF4SDnil_CTMm2yOv0bRpEBNU,11
14
- xbot_plugins_pgsql-0.1.0.dist-info/RECORD,,
9
+ xbot/plugins/pgsql/version.py,sha256=DvXqlq6wA1D0YYjuzkoXyizoNHR8vfvVYbsJPpVU8sc,53
10
+ xbot_plugins_pgsql-0.2.0.dist-info/licenses/LICENSE,sha256=QQgf5JlcyKhtVWQcDwDfv7aU_8RZ5qZKxLnpp3NEXos,1325
11
+ xbot_plugins_pgsql-0.2.0.dist-info/METADATA,sha256=BSD7ttIZwxtg_ZjNZZp6c73Ps8R6BuJfGXU4TEUM99w,3462
12
+ xbot_plugins_pgsql-0.2.0.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
13
+ xbot_plugins_pgsql-0.2.0.dist-info/top_level.txt,sha256=4uDSWEEQ4RLxZEPAyhoF4SDnil_CTMm2yOv0bRpEBNU,11
14
+ xbot_plugins_pgsql-0.2.0.dist-info/RECORD,,