Notable Changes
- [âĻ feat(sqla): Model as pydantic dataclass](https://github.com/nonebot/plugin-orm/commit/45405ae559fd4c6e1983fb0e102ce2116eb6d5a3)
åŪéŠåč―: `Model` į°åĻæŊ [`pydantic.dataclasses.dataclass`](https://docs.pydantic.dev/dev/concepts/dataclasses/), æäūåšæŽįįąŧåæįĪšåéŠčŊ:
python
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](https://github.com/nonebot/plugin-orm/commit/687b54e94ed031365a1ab3362bdc404c5ba8a6eb)
- [âĻ feat(alembic): sync](https://github.com/nonebot/plugin-orm/commit/95624a6b38a39d903ebc59318eac0c4a3f9a1685)
- [âŧïļ refactor(sqla): ORMParam](https://github.com/nonebot/plugin-orm/commit/d0fd0301e26c865f482d35eff79ef02ffa8ab642)
**Full Changelog**: https://github.com/nonebot/plugin-orm/compare/v0.3.0...v0.4.0