Skip to content

Commit 81db3bf

Browse files
committed
feat: switch to CursorHandler.sum_row_cnt in BaseManager.insert_into_select
1 parent b75a90f commit 81db3bf

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

fastapi_esql/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
wrap_backticks,
2424
)
2525

26-
__version__ = "0.0.13"
26+
__version__ = "0.0.14"
2727

2828
__all__ = [
2929
"QsParsingError",

fastapi_esql/orm/base_manager.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ async def insert_into_select(
185185
to_table=to_table,
186186
model=cls.model,
187187
)
188-
return await CursorHandler.exec_if_ok(sql, cls.rw_conn, logger)
188+
return await CursorHandler.sum_row_cnt(sql, cls.rw_conn, logger)
189189

190190
@classmethod
191191
async def bulk_update_from_dicts(

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "fastapi-efficient-sql"
3-
version = "0.0.13"
3+
version = "0.0.14"
44
description = "Generate bulk DML SQL and execute them based on Tortoise ORM and mysql8.0+, and integrated with FastAPI."
55
authors = ["BryanLee <[email protected]>"]
66
keywords = ["sql", "fastapi", "tortoise-orm", "mysql8", "bulk-operation"]

0 commit comments

Comments
 (0)