Ecto is the official Elixir library that serves as a database wrapper and integrated query system, enabling developers to define schemas, construct and execute type-safe queries, manage database migrations, and validate data via changesets; it is the foundational tool for working with relational databases in Elixir. Note that mix test does not run the tests in the integration_test folder. To run integration tests, you can clone ecto_sql in a sibling directory and then run its integration tests with the ECTO_PATH environment variable pointing to your Ecto checkout. Support for database migrations (version-controlled schema changes).

Features

  • Repository abstraction to handle data access and persistence via adapters such as PostgreSQL, MySQL, SQLite
  • Schema definitions mapping database tables to Elixir structs
  • Composable, secure query DSL in native Elixir syntax
  • Changeset support for data validation and transformation before persistence
  • Support for database migrations (version-controlled schema changes)
  • Explicit, type-safe data handling avoiding hidden state

Project Samples

Project Activity

See All Activity >

Categories

Database

License

Apache License V2.0

Follow Ecto

Ecto Web Site

Other Useful Business Software
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Ecto!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Elixir

Related Categories

Elixir Database Software

Registered

2025-08-29