mirror of
https://github.com/miloira/wxhook.git
synced 2024-11-22 10:29:25 +08:00
version 0.0.8
This commit is contained in:
parent
f0a9340a51
commit
a9c01a3095
2
setup.py
2
setup.py
@ -18,7 +18,7 @@ URL = 'https://github.com/miloira/wxhook'
|
|||||||
EMAIL = '690126048@qq.com'
|
EMAIL = '690126048@qq.com'
|
||||||
AUTHOR = 'Msky'
|
AUTHOR = 'Msky'
|
||||||
REQUIRES_PYTHON = '>=3.8.0'
|
REQUIRES_PYTHON = '>=3.8.0'
|
||||||
VERSION = '0.0.7'
|
VERSION = '0.0.8'
|
||||||
|
|
||||||
# What packages are required for this module to be executed?
|
# What packages are required for this module to be executed?
|
||||||
REQUIRED = [
|
REQUIRED = [
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
from .core import Bot
|
from .core import Bot
|
||||||
|
|
||||||
version = "0.0.7"
|
version = "0.0.8"
|
||||||
|
@ -411,8 +411,13 @@ class Bot:
|
|||||||
|
|
||||||
def get_db_info(self) -> typing.List[DB]:
|
def get_db_info(self) -> typing.List[DB]:
|
||||||
"""获取数据库句柄"""
|
"""获取数据库句柄"""
|
||||||
return [DB(databaseName=item["databaseName"], handle=item["handle"],
|
return [
|
||||||
tables=[Table(**sub_item) for sub_item in item["tables"]]) for item in self.call_api("/api/getDBInfo")]
|
DB(databaseName=item["databaseName"], handle=item["handle"], tables=[
|
||||||
|
Table(**sub_item)
|
||||||
|
for sub_item in item["tables"]
|
||||||
|
])
|
||||||
|
for item in self.call_api("/api/getDBInfo")
|
||||||
|
]
|
||||||
|
|
||||||
def exec_sql(self, db_handle: int, sql: str) -> Response:
|
def exec_sql(self, db_handle: int, sql: str) -> Response:
|
||||||
"""执行SQL命令"""
|
"""执行SQL命令"""
|
||||||
|
Loading…
Reference in New Issue
Block a user