Hacker ApprovedDepartments

Ecto (Elixir)

Hacker Approved

Ranked 2 of 8 SQL query builders by recommenders

Elixir database library that follows SQL closely, makes queries explicit and avoids hidden magic. Main caveat: defining large schemas is repetitive compared with Django.

Elixir database library that follows SQL closely, makes queries explicit and avoids hidden magic. Main caveat: defining large schemas is repetitive compared with Django.

22 people gave an opinion

recommend it
17
criticize it
5
approval share
77%
Each figure is one person. RecommendsCriticizes

Recommended in 8 of 13 months

  1. November 2025: recommended
  2. December 2025: not recommended
  3. January 2026: recommended
  4. February 2026: recommended
  5. March 2026: recommended
  6. April 2026: not recommended
  7. May 2026: recommended
  8. June 2026: recommended
  9. July 2026: recommended
  10. August 2026: not recommended
  11. September 2026: not recommended
  12. October 2026: recommended
  13. November 2026: not recommended (month in progress)

Why it carries the badge

  • 17 people recommend itNeeds 10 or more, met.
  • 3.4 recommenders for every criticNeeds 2 to 1 or better, met.
  • Recommended in 8 of 13 monthsNeeds 4 or more, met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • Follows SQL closely for query building

    “Ecto is closely follows SQL logic and allows to translate weird sql queries into code directly.”

    Comment from 16 May 2026 in “Erlang/OTP 29.0”

    “it has a pretty good query building type solution”

    Comment from 20 Mar 2026 in “Java Is Fast. Your Code Might Not Be”

    “it just makes sql so ergonomic”

    Comment from 5 Jul 2026 in “What ORMs have taught me: just learn SQL (2014)”
  • Standard database layer in Elixir

    “which many Elixir libraries (such as Phoenix and Ecto) uses to great effect”

    Comment from 3 Jun 2026 in “Elixir v1.20 released: now a gradually typed language”

    “Erlang/Elixir abstracts most db use-cases with ecto”

    Comment from 7 Nov 2025 in “From web developer to database developer in 10 years”

    “Phoenix and Ecto, really.”

    Comment from 3 Jun 2026 in “Elixir v1.20 released: now a gradually typed language”
  • Less magic than other ORMs

    “i would say it has less magic than django”

    Comment from 28 Jan 2026 in “Notes on Starting to Use Django”

    “as little magic as possible”

    Comment from 5 Jul 2026 in “What ORMs have taught me: just learn SQL (2014)”
  • Clean schema and migration workflow

    “i really prefer writing out schemas and migrations like in elixir/ecto”

    Comment from 28 Jan 2026 in “Notes on Starting to Use Django”

    “i use elixir/ecto. just write a migration!”

    Comment from 27 Jul 2026 in “Some more things about Django I've been enjoying”

What people warn about

Each mark is one comment

  • Repetitive to define large schemas

    “it was super repetitive to define make large database strucutres compared to Django”

    Comment from 28 Jan 2026 in “Notes on Starting to Use Django”

    “it was super repetitive to define make large database strucutres”

    Comment from 28 Jan 2026 in “Notes on Starting to Use Django”
  • Shared schema reuse criticized

    “using the same schemas everywhere is a sign of immaturity as a developer”

    Comment from 4 Jun 2026 in “Elixir v1.20 released: now a gradually typed language”

    “it encourages composition in situations where duplication is the right choice”

    Comment from 5 Jul 2026 in “What ORMs have taught me: just learn SQL (2014)”

Other SQL query builders people recommend

The four most recommended other SQL query builders, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

Ecto (Elixir) compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
sqlc20483%9—Approved
Ecto (Elixir)This page17577%8—Approved
sqlx13476%8—Approved
jOOQ13381%6—Approved
Kysely12192%6—Approved
See all 8 SQL query builders, ranked

What people said

23 of the 25 comments that mention it, newest first. Each links to the original comment.

“the agent got stuck at something and then it started writing elixir within the repl and doing something related to ecto”

MixedComment from 10 Oct 2026 in “Next.js 16.4”

“i use elixir/ecto. just write a migration!”

RecommendsComment from 27 Jul 2026 in “Some more things about Django I've been enjoying”

“it encourages composition in situations where duplication is the right choice”

CriticizesComment from 5 Jul 2026 in “What ORMs have taught me: just learn SQL (2014)”

“it just makes sql so ergonomic”

RecommendsComment from 5 Jul 2026 in “What ORMs have taught me: just learn SQL (2014)”

“It's well-designed and I've never had a problem with it.”

RecommendsComment from 5 Jul 2026 in “What ORMs have taught me: just learn SQL (2014)”

“That's a problem with ecto and not ORMs.”

CriticizesComment from 5 Jul 2026 in “What ORMs have taught me: just learn SQL (2014)”

“has a decent balance and is nice to use though Elixir doesn't have objects”

RecommendsComment from 5 Jul 2026 in “What ORMs have taught me: just learn SQL (2014)”

“That avoids accidental and n+1 problems because you can plan your queries more.”

RecommendsComment from 5 Jul 2026 in “What ORMs have taught me: just learn SQL (2014)”

“as little magic as possible”

RecommendsComment from 5 Jul 2026 in “What ORMs have taught me: just learn SQL (2014)”

“In my opinion Elixir Ecto is ORM done right”

RecommendsComment from 4 Jul 2026 in “What ORMs have taught me: just learn SQL (2014)”

“using the same schemas everywhere is a sign of immaturity as a developer”

MixedComment from 4 Jun 2026 in “Elixir v1.20 released: now a gradually typed language”

“Phoenix and Ecto, really.”

RecommendsComment from 3 Jun 2026 in “Elixir v1.20 released: now a gradually typed language”

“which many Elixir libraries (such as Phoenix and Ecto) uses to great effect”

RecommendsComment from 3 Jun 2026 in “Elixir v1.20 released: now a gradually typed language”

“Ecto is closely follows SQL logic and allows to translate weird sql queries into code directly.”

RecommendsComment from 16 May 2026 in “Erlang/OTP 29.0”

“it has a pretty good query building type solution”

MixedComment from 20 Mar 2026 in “Java Is Fast. Your Code Might Not Be”

“that handles all of this for you”

RecommendsComment from 2 Mar 2026 in “Process-Based Concurrency: Why Beam and OTP Keep Being Right”

“Its not like you have some lens into the overall chain of all the migrations together.”

CriticizesComment from 10 Feb 2026 in “What Functional Programmers Get Wrong About Systems”

“it was super repetitive to define make large database strucutres compared to Django”

CriticizesComment from 28 Jan 2026 in “Notes on Starting to Use Django”

“i would say it has less magic than django”

RecommendsComment from 28 Jan 2026 in “Notes on Starting to Use Django”

“i really prefer writing out schemas and migrations like in elixir/ecto”

RecommendsComment from 28 Jan 2026 in “Notes on Starting to Use Django”

“it was super repetitive to define make large database strucutres”

CriticizesComment from 28 Jan 2026 in “Notes on Starting to Use Django”

“I've never once run into the ecto issues mentioned”

RecommendsComment from 25 Jan 2026 in “150k lines of vibe coded Elixir: The Good, the Bad and the Ugly”

“Erlang/Elixir abstracts most db use-cases with ecto”

RecommendsComment from 7 Nov 2025 in “From web developer to database developer in 10 years”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.