샘플
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
- 운영체제
- linux
- 아키텍처
- x64
- 런타임
- elixir
- 언어
- elixir
- 패키지 매니저
- mix
검증 실행 환경
- 실행 컨텍스트
- elixir 1
- 운영체제
- 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