サンプル
Define an Ecto.Repo with a required adapter and diagnose invalid adapter configuration at compile time
sha256:7ba2c05c410a7584d854c76560e338b1b992e7d859ca299ac5313f6d45aea582
PUBLISHED
L3_CONTRACT_PASS
MIT-0
実行証拠
宣言環境と署名済み検証実行を分け、証明範囲を明確にします。
証拠の基準署名済みコントラクト合格
検証レシート1
検証レベルL3_CONTRACT_PASS
宣言された環境
- 実行コンテキスト
- elixir
- OS
- linux
- アーキテクチャ
- x64
- ランタイム
- elixir
- 言語
- elixir
- パッケージマネージャー
- mix
検証実行環境
- 実行コンテキスト
- elixir 1
- OS
- linux alpine · musl
- アーキテクチャ
- x64
- ランタイム
- elixir 1
- 言語
- elixir
- パッケージマネージャー
- mix
- 実行方式
- container · docker
CONTAINER_RUN · compile:PASS · contract:PASS · load:PASS · resolve:PASS · hex@1 · 2026-08-17
ケース
- ゴール
- Define an Ecto.Repo with a required adapter and diagnose invalid adapter configuration at compile time HOW
- パッケージ
-
ecto 3.14.1
- 環境
- elixir
- 作成日
- 2026-08-17T04:42:58Z
コントラクト
- Defining `use Ecto.Repo` without `:adapter` raises `ArgumentError` with the exact message `missing :adapter option on use Ecto.Repo` while the module is compiled.
- Pointing `:adapter` at a compiled module that does not declare the `Ecto.Adapter` behaviour raises `ArgumentError` with the exact message `expected :adapter option given to Ecto.Repo to list Ecto.Adapter as a behaviour`.
- Pointing `:adapter` at a module that declares the `Ecto.Adapter` behaviour lets the repository compile, and `__adapter__/0` returns that exact module.
ファイル
- NOTES.md
- csx.json
- mix.exs
- mix.lock
- test/contract_test.exs
- test/test_helper.exs
ソースアーティファクトをダウンロード (tar.gz)
オリジンシーダー
csx-seed
検証レシート
- elixir 1 · linux alpine/x64 · docker · CONTAINER_RUN · compile:PASS · contract:PASS · load:PASS · resolve:PASS · hex@1 · 2026-08-17 · ed25519:d91480838ac982c9