ecto icon indicating copy to clipboard operation
ecto copied to clipboard

A toolkit for data mapping and language integrated query.

Results 19 ecto issues
Sort by recently updated
recently updated
newest added

This PR introduces support for associations on composite foreign keys. ### Motivation It's possible to define composite foreign keys in migrations using `refences(..., with: [...])`, but Ecto doesn't currently support...

I'm writing a blog post about ExDoc cheatsheets and noticed there aren't many projects using it yet. So, José Valim gave me the idea of writing ExDoc cheatsheets for Ecto....

### Elixir version 1.13.4 ### Database and Version MySQL 5.7.38 ### Ecto Versions 3.8.4 ### Database Adapter and Versions (postgrex, myxql, etc) MyXQL 0.6.2 ### Current behavior Disclaimer: code snippets...

Kind:Bug
Note:Needs more info

To support values lists in select from, joins, update from and delete from, I added a `values(list_of_maps, schema)` function that can be used in `in` expressions like ```elixir query =...

### Elixir version 1.15.6 ### Database and Version PostgreSQL 15.4 ### Ecto Versions 3.10.3 ### Database Adapter and Versions (postgrex, myxql, etc) Postgrex ### Current behavior For a few months...

Kind:Bug
Note:Needs more info

Now you can create a custom Ecto.Association that uses lateral joins: ```elixir defmodule MyAssoc do @behaviour Ecto.Association def joins_query(%{owner: owner, owner_key: owner_key, related: related} = assoc, join_parent) do import Ecto.Query...

### Elixir version 1.14.0 ### Database and Version PostgreSQL 14 ### Ecto Versions 3.10.2 ### Database Adapter and Versions (postgrex, myxql, etc) 0.17.1 ### Current behavior There is no way...

Kind:Bug

The current behaviour of `Ecto.Enum.cast/2` is that only an `:error` atom is returned in case of error: ```elixir params = Ecto.Enum.init(values: [foo: 1, bar: 2, baz: 5]) assert :error =...

I'm worried I'm missing something obvious. But I think with these 2 simple changes to the schema functions we can allow string names in `field/2`. The `__schema__(:type, field)__` functions will...

The question is if we should. WDYT? Wrote this while answering a question on slack.