Skip to content

Commit

Permalink
Merge pull request #12 from Vastxiao/dev
Browse files Browse the repository at this point in the history
update version 1.0.0
  • Loading branch information
Vastxiao authored Oct 19, 2024
2 parents 4c90e4d + 795c4d9 commit eca8c91
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 7 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## [1.0.0] - 2024.10.19

### Features

1. Update the supported Python version range, with a minimum support of 3.9.
2. Update the documentation content.

## [0.2.0] - 2024.10.14

### Features
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG_zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## [1.0.0] - 2024.10.19

### Features

1. 更新Python版本支持范围,最低支持3.9。
2. 更新文档内容。

## [0.2.0] - 2024.10.14

### Features
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class TestAsMysql(AsMysql):
if result.err:
print(result.err_msg)
else:
# result.iterate()是一个异步迭代器,可以获取执行结果的每一行数据
# result.iterate() is an asynchronous iterator that can fetch each row of the execution result.
async for item in result.iterate():
print(item)

Expand Down
4 changes: 2 additions & 2 deletions asmysql/_cursor_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __repr__(self):
f'pool({self.__pool.minsize}, {self.__pool.maxsize})>'

async def execute(self, query: str,
values: tuple | list | dict = None,
values: typing.Union[typing.Sequence, dict] = None,
) -> Result:
try:
async with self.__pool.acquire() as conn:
Expand All @@ -33,7 +33,7 @@ async def execute(self, query: str,
return Result(query, err=err)

async def execute_many(self, query: str,
values: typing.Sequence[tuple | list | dict]
values: typing.Sequence[typing.Union[typing.Sequence, dict]]
) -> Result:
try:
async with self.__pool.acquire() as conn:
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]
name = "asmysql"
version = "0.2.0"
description = "封装aiomysql的异步mysql客户端引擎。"
version = "1.0.0"
description = "An Asynchronous MySQL Client Engine Using Aiomysql."
license = "MIT"
authors = ["vastxiao <vastxiao@gmail.com>"]
homepage = "https://pypi.org/project/asmysql/"
Expand All @@ -20,11 +20,11 @@ include = ["CHANGELOG.md", "CHANGELOG_zh.md", "README_zh.md"]


[tool.poetry.dependencies]
python = "^3.11"
python = "^3.9"
aiomysql = "^0.2.0"

[tool.poetry.group.dev.dependencies]
ipython = "^8.14.0"
ipython = "*"
sqlmodel = "^0.0.14"
sqlalchemy = {extras = ["asyncio"], version = "^2.0.25"}
aiosqlite = "^0.19.0"
Expand Down

0 comments on commit eca8c91

Please sign in to comment.