Releases: NightMarcher/fastapi-efficient-sql
Releases · NightMarcher/fastapi-efficient-sql
0.0.14
Added
- Add new parameter
assign_field_dict
to update_json_field
. Here
Improved
- Switch to
CursorHandler.sum_row_cnt
in BaseManager.insert_into_select
. Here
0.0.13
Fixed
- Join on multiple columns in
SQLizer.bulk_update_from_dicts
.Here
0.0.12
Improved
- Wrap table name with backticks.Here
- Enable keyword-only arguments for the main methods.Here
Fixed
- Don't modify params of
BaseManager.create_from_dict
in place.
0.0.11
Added
- Add new parameter
merge_fields
to bulk_update_from_dicts
. Here
- Add new parameter
merge_fields
to upsert_on_duplicate
. Here
Improved
- Allow passing
upsert_fields
with None to upsert_on_duplicate
. Here
0.0.10
Added
- New function
convert_dicts
, and use in CursorHandler
. Here
- Import
escape_string
from Tortoise-ORM
. Here
0.0.9
Added
- New method
select_one_record
of BaseManager
. Here
- New parameter
index
of SQLizer.select_custom_fields
.
Improved
- Switch virtual environment management to
Poetry
. Here
- Fix wrong use of
asynctest
. Here
0.0.8
Added
- Testing supported by
unittest
, asynctest
and pytest
.
- New parameter
offset
of SQLizer.select_custom_fields
. Here
Improved
- Check
model
of managers and table of model.Meta
first. Here
- Decorator
timing
supports both sync and async functions. Here
0.0.7
Added
- Singleton metaclass. Here
- Import
Q
from Tortoise-ORM
. Here
Changed
- Rename to
SQLizer.sqlize_value
.
- Make SQL more compact.
0.0.6
fix: Q.resolve compatibility problem
0.0.5
style: rename to bulk_update_from_dicts