April 2024
Beginner to intermediate
224 pages
5h 7m
English
Ecto[41] is an Elixir library for data mapping and database queries. Ecto is language-integrated, so queries are written in a way that feels like Elixir and not a third-party syntax. There are other data access libraries in Elixir, but Ecto is by far the most popular. There are Ecto bindings for PostgresQL, MySQL, MSSQL, and SQLite3, but we’ll only use PostgresQL in this book.
ActiveRecord is the most popular data access library in Ruby. ActiveRecord and Ecto have different philosophies, so let’s compare them. After that, we’ll take a high-level pass over Ecto’s concepts.
Both ActiveRecord and Ecto have a significant focus on usability, security, and flexibility. They both feel familiar and powerful ...
Read now
Unlock full access