feat: add Ecto patterns extracted from elixir-ecto/ecto source #1

Merged
rodin merged 5 commits from feat/ecto-patterns into master 2026-05-02 05:48:17 +00:00

5 Commits

Author SHA1 Message Date
aweiker 10218813d3 docs: backfill TOC + decision trees, fix review findings
- Add ## Contents and ## Decision Tree to all 10 existing pattern files
- Fix embed_as/1 semantics inversion in types.md (:self → :dump)
- Fix fabricated __meta__.changes reference in changesets.md
- Fix default primary key type (:integer → :id) in schemas.md
- Combine @impl subsections into single "Minimal Callback Annotation"
2026-05-01 22:13:35 -07:00
aweiker b33accf37c docs: extend @impl pattern with multi-clause and @spec guidance 2026-05-01 21:29:47 -07:00
aweiker 49a006dd18 docs: add table of contents to all Ecto pattern files 2026-05-01 20:55:15 -07:00
aweiker d28b9c8844 fix: use Repo.transaction instead of non-existent Repo.transact 2026-05-01 20:41:06 -07:00
aweiker 7b38ac9b2a feat: add Ecto patterns extracted from elixir-ecto/ecto source
Adds 5 new pattern files covering the core Ecto APIs, each with real
source citations at commit fd2ec52b, before/after examples, anti-patterns,
and decision trees.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-01 19:22:39 -07:00