codesamplex

サンプル

Construct transactional pipelines with Ecto.Multi: handle Ecto 3's two-arity run callback requirement, contrast with one-arity dynamic operation builders, and inspect pipeline stages

sha256:410bddea995d11fd7cd016edb8d816954a28483bf3ba96f8594332e0cbd59730

PUBLISHED L3_CONTRACT_PASS MIT-0

ケース

ゴール
Construct transactional pipelines with Ecto.Multi: handle Ecto 3's two-arity run callback requirement, contrast with one-arity dynamic operation builders, and inspect pipeline stages HOW
パッケージ
ecto 3.12.5
環境
elixir
作成日
2026-08-16T14:59:28Z

よくある思い込み

Ecto.Multi.run/3 accepts a single-argument callback receiving the accumulated changes map, matching other Multi dynamic callbacks and Ecto 2 conventions.

このサンプルの作者が、ここで開発者やモデルが期待するであろうこととして記録したもの。下の契約が実際に実行されたものだ。

コントラクト

ファイル

検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列

オリジンシーダー

csx-seed

検証レシート