# Ecto

> Data mapping and language-integrated queries for Elixir

Source: https://talira.ai/catalog/ecto-dq6bsaxc
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / databases / orm](https://talira.ai/categories/libraries/databases/orm), [languages / elixir](https://talira.ai/categories/languages/elixir)
- Licence: Apache-2.0[^1]
- Pricing: Free and open source
- Free tier: yes
- Backed by: [Dashbit](https://talira.ai/orgs/dashbit.md)

Ecto is a toolkit for data mapping and language-integrated query in [Elixir](https://talira.ai/catalog/elixir-edq5dfnt.md). Ecto.Schema maps data into Elixir structs, changesets cast and validate changes, Ecto.Query writes queries in Elixir with keyword or pipe syntax, and an Ecto.Repo runs them against a database through an adapter. ecto_sql adds the SQL adapters and database migrations, with drivers for [PostgreSQL](https://talira.ai/catalog/postgresql-cm55wcnd.md) (postgrex), [MySQL](https://talira.ai/catalog/mysql-dy4scprm.md) (myxql) and SQL Server (tds); community adapters cover [SQLite](https://talira.ai/catalog/sqlite-cys3nt23.md), ClickHouse and ETS. It's also used to map and validate data that isn't in a database at all. New [Phoenix](https://talira.ai/catalog/phoenix-pr0aa2gd.md) projects include it with the PostgreSQL adapter by default, and Dashbit holds its copyright.

## Links

- GitHub: https://github.com/https://github.com/elixir-ecto/ecto
- Docs: https://hexdocs.pm/ecto/

## Problems it solves

- query a Postgres database from my Elixir app
- validate user input before saving it in Elixir
- run database migrations in a Phoenix project

## Features

- schemas mapping data to Elixir structs
- changesets for casting and validation
- composable query DSL
- repositories with database adapters
- migrations through ecto_sql
- PostgreSQL, MySQL and SQL Server adapters

## Trust

Overall: 0.64 out of 1.
Signals: maintenance 0.83, adoption 0.76, momentum 0.49, community 1.00, backing 0.30, extensibility 0.00.

- last commit today
- 34 commits in the last 90 days
- latest release v3.4.5 6.3 years ago
- 6.5k GitHub stars
- 869 contributors
- backed by Dashbit

## Sources

[^1]: https://github.com/elixir-ecto/ecto/blob/master/README.md (checked 23 Nov 2026)
