Skip to content

Conversation

@106-
Copy link
Owner

@106- 106- commented Jun 14, 2025

SQLAlchemy 1.4.54 → 2.0.41へのメジャーバージョンアップグレードなのだ。

主な変更

  • pyproject.tomlのSQLAlchemy依存を^2.0.41に更新
  • sqlalchemy-stubs依存を削除(2.0で不要)
  • connection.execute()の戻り値処理を修正
  • ._asdict()を._mappingに置き換え
  • insert文のパラメータ渡しを修正

解決した問題

  • RemovedIn20Warning警告の解決
  • セキュリティーとパフォーマンスの改善
  • 将来のメンテナンス性向上

Resolves #38

Generated with Claude Code

- Update pyproject.toml SQLAlchemy dependency to ^2.0.41
- Remove sqlalchemy-stubs dependency (not needed in 2.0)
- Fix connection.execute() return value handling with .fetchall()
- Replace ._asdict() with ._mapping for 2.0 compatibility
- Update insert statement parameter passing to use .values(**data)
- Fix all analytics functions to use proper result fetching

Resolves #38

Co-authored-by: Tomu Katsumata <106-@users.noreply.github.com>
@106- 106- self-assigned this Jun 14, 2025
@106-
Copy link
Owner Author

106- commented Jun 14, 2025

テストも実機での確認もうまく行っているので信用しない理由がない

@106- 106- merged commit a2e3b05 into main Jun 14, 2025
2 checks passed
@106- 106- deleted the claude/issue-38-20250614_141405 branch June 14, 2025 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SQLAlchemy 2.0へのアップグレード

2 participants