Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Introduce Ecto.SQLRepo

Open
#637 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
elixir
Domain
databases

Research direction

Start by comparing the functions and generated documentation in Ecto.Adapters.SQL with the callbacks and documentation behavior in Ecto.Repo. Define the scope and design of a new Ecto.SQLRepo for the relevant callbacks, while preserving Ecto.Adapters.SQL for custom adapter implementations; the issue does not identify specific files or tests.

Written by the indexing model from the issue text.

Description

Kind:Enhancement
Elixir version

All

Database and Version

All

Ecto Versions

All

Database Adapter and Versions (postgrex, myxql, etc)

All

Current behavior

Today, we define several functions in Ecto.Adapters.SQL and we generate functions with docs inside the Ecto.Repo. This is a contrast to how Ecto.Repo works, which defines several callbacks in Ecto.Repo and lets the documentation tool tie them together.

Expected behavior

My suggestion is to introduce Ecto.SQLRepo which defines all relevant callbacks for the functions we generate, making them more consistent. The Ecto.Adapters.SQL API can then focus on custom adapter implementations.

There is no rush to implement this. I am documenting this for posteriority.

Dominant language
Elixir
Stars
657
Forks
345
Avg merge
1h 59m
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from elixir-ecto/ecto_sql

All issues in elixir-ecto/ecto_sql

Similar issues

More Elixir issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.