Skip to content

docs: transactional() + _in_tx パターンをドキュメント化 (#95)#98

Merged
hideyukiMORI merged 1 commit into
mainfrom
docs/issue-95-transactional-pattern
May 19, 2026
Merged

docs: transactional() + _in_tx パターンをドキュメント化 (#95)#98
hideyukiMORI merged 1 commit into
mainfrom
docs/issue-95-transactional-pattern

Conversation

@hideyukiMORI
Copy link
Copy Markdown
Owner

Summary

  • `docs/reference/framework-modules.md` に `transactional()` + `_in_tx` パターンの詳細説明と送金 UseCase の例を追加(EN)
  • `docs/ja/reference/framework-modules.md` に同内容の日本語版を追加
  • `docs/how-to/sqlalchemy-repository.md` に「Section 6: Atomic multi-write operations」を追加(InMemory テストパターン含む)

背景 (FT5-F2)

FT5(wallet API)で `transactional()` とリポジトリを組み合わせる方法が非自明だった。
「`_in_tx` サフィックスメソッドで executor を受け取る」パターンを発見したが、ドキュメントが存在しなかった。

Test plan

  • ruff / mypy — OK
  • framework-modules.md(EN/JA)更新
  • sqlalchemy-repository.md に新セクション追加

Closes #95

🤖 Generated with Claude Code

FT5(wallet API)で発見した摩擦 F-2。
複数テーブルへの原子的書き込みでリポジトリとの組み合わせ方が非自明だった。
_in_tx サフィックスパターン(executor を引数に取るトランザクション専用メソッド)を
framework-modules.md(EN/JA)と sqlalchemy-repository.md に追記。
InMemory 実装による単体テストパターンも記載。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@hideyukiMORI hideyukiMORI merged commit c3359a1 into main May 19, 2026
@hideyukiMORI hideyukiMORI deleted the docs/issue-95-transactional-pattern branch May 19, 2026 14:40
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.

docs: transactional() とリポジトリを組み合わせる _in_tx パターンをドキュメント化 (FT5-F2)

1 participant