Releases: nonebot/plugin-orm
Releases ยท nonebot/plugin-orm
๐ Release 0.7.0
ๆญคๆฌก่ฆ็ๆฌๆฏๆๅไธไธชๆฏๆ Python 3.8 ็็ๆฌ
What's Changed
- โฌ๏ธ auto update by pre-commit hooks by @pre-commit-ci in #11
- โก perf(sqla)!: sync function and async dependency of session
- โฌ๏ธ refactor: support Pydantic V2
Full Changelog: v0.6.4...v0.7.0
๐ Release 0.6.4
๐ Release 0.6.3
What's Changed
- ๐ fix(alembic): remove await_fallback() use
- โฌ๏ธ auto update by pre-commit hooks by @pre-commit-ci in #9
Full Changelog: v0.6.2...v0.6.3
๐ Release 0.6.2
๐ Release 0.6.1
What's Changed
- ๐ fix(alembic):
UnicodeDecodeErrorwhenlist_templatesby @BalconyJH in #8 - ๐ fix(sqla): close scoped session by processor
New Contributors
- @BalconyJH made their first contribution in #8
Full Changelog: v0.6.0...v0.6.1
๐ Release 0.6.0
Notable Changes
- ๐ฅ refactor(alembic)!: nested version locations
ๆญค้ๆๆนๅจไบ้ไธญๅผ่ๆฌ็ฎๅฝไธญๅญๆไปถ็่ๆฌ็ฎๅฝไฝ็ฝฎ, ็ฐๅจ่ๆฌ็ฎๅฝไฝ็ฝฎไธๆไปถๅตๅฅๅ ณ็ณปไธ่ด๏ผ่้ๅ จ้จๅจๆ้กถๅฑ็ฎๅฝ:
.
- โโโ ff14_fflogs
- โ โโโ b67acef6a240_migrate_data.py
- โ โโโ c3c52d7c9d07_init_db.py
- โโโ hello
- โ โโโ 5fc001a169eb_migrate_data.py
- โ โโโ e2f882d2c91d_init_db.py
- โโโ morning_greeting
- โ โโโ 3d228011e96b_migrate_data.py
- โ โโโ 65a94a4a643b_init_db.py
+ โโโ ff14
+ โ โโโ ff14_fflogs
+ โ โโโ b67acef6a240_migrate_data.py
+ โ โโโ c3c52d7c9d07_init_db.py
+ โโโ morning
+ โ โโโ hello
+ โ โ โโโ 5fc001a169eb_migrate_data.py
+ โ โ โโโ e2f882d2c91d_init_db.py
+ โ โโโ morning_greeting
+ โ โโโ 3d228011e96b_migrate_data.py
+ โ โโโ 65a94a4a643b_init_db.py่ฏทๅ็ ง็คบไพๆๅจๆดๆนๅทฒๆ็้ไธญๅผ่ๆฌ็ฎๅฝ็ปๆ.
ๆณจๆ:
ORM ๅ
้จไฝฟ็จ็็ฎๅฝ $LOCALSTORE_DATA_DIR/nonebot-plugin-orm/migrations/ ไนๆฏ้ไธญๅผ่ๆฌ็ฎๅฝ, ๅฆๆไฝ ๅจๅ็บงๅ็ฌฌไธๆฌกไฝฟ็จๆถๅบ็ฐ็ฑปไผผ่ฟๆ ท็ๅผๅธธ: alembic.script.revision.RevisionError: Branch name 'morning_greeting' in revision 65a94a4a643b already used by revision 65a94a4a643b, ่ฏทๅฐ่ฏๅ ้คๆญค็ฎๅฝ.
What's Changed
- โฌ๏ธ fix: use typing-extensions for Python < 3.11
- ๐ fix(alembic): suppress warning when inferring version path by brancโฆ
Full Changelog: v0.5.1...v0.6.0
๐ Release 0.5.1
What's Changed
- โฌ๏ธ auto update by pre-commit hooks by @pre-commit-ci in #5
- ๐ fix(alembic): no cmd opts when startup
Full Changelog: v0.5.0...v0.5.1
๐ Release 0.5.0
๐ Release 0.4.1
What's Changed
- ๐ fix: missing default metadata if specify SQLALCHEMY_DATABASE_URL
- ๐ fix(sqla): fail with unusual type annotation
- ๐ fix(alembic): multidb env.py type annotation
- ๐ fix(alembic): sync fail when db is not up to date
- ๐ fix(alembic): more robust editable plugin detect
- ๐ฅ revert(sqla)!: Model as pydantic dataclass
Full Changelog: v0.4.0...v0.4.1
๐ Release 0.4.0
Notable Changes
- โจ feat(sqla): Model as pydantic dataclass
ๅฎ้ชๅ่ฝ:Model็ฐๅจๆฏpydantic.dataclasses.dataclass, ๆไพๅบๆฌ็็ฑปๅๆ็คบๅ้ช่ฏ:
from datetime import datetime
from sqlalchemy.orm import Mapped, mapped_column
from nonebot_plugin_orm import Model
class User(Model):
id: Mapped[int] = mapped_column(primary_key=True)
name: Mapped[str]
signup_ts: Mapped[datetime]
user = User(id="42", name="John Doe", signup_ts="2032-06-21T12:00")
print(
user # User(id=42, name='John Doe', signup_ts=datetime.datetime(2032, 6, 21, 12, 0))
)What's Changed
- ๐ fix(alembic): don't get dist by top-level package
- โจ feat(alembic): sync
- โป๏ธ refactor(sqla): ORMParam
Full Changelog: v0.3.0...v0.4.0