@dnsbty There is Enum.into/3, which can map too simplifying your query to:
`users_by_id = Enum.into(Repo.all(User), %{}, &(Map.get(:id, &1), &1)`
TIL that @hex_pm is using rebar3 v3.6.1 from June 2018 which leads to some problems for me. Updating to latest with:
`wget -O ~/.mix/rebar3 https://t.co/r41uo3bQiq`
#myelixirstatus
Tomorrow will be part 3 of Ecto deep dive with @narrowtux, this time about "Custom Types". Thanks at @digimondogmbh for hosting the event. Just a few spots left! Check our meetup page: https://t.co/ii3Ngz4yEZ #myelixirstatus
"..., but I think Elixir helps to push you in the right direction, and makes it harder to make mistakes." Thanks for this nice article @SgtPepper43
https://t.co/G320u4SvEt
@elixirlang
Once again Ecto's https://t.co/6dYr6PrANi showed a problem in our code with `Raises if more than one entry.`. Even if its kind of annoying, it really helps! #myelixirstatus
Member News! @zenner_news is now certified for the smart metering environment. Be sure to visit the Zenner team (Booth B.c67) during @EUW_live this week to learn more about #LoRaWAN for smart meters. #EUW18 (Article in German) https://t.co/kd7ekjcNoT
@vodafoneservice Seit Dienstag Zentralstörung in Ahrensburg. Weil eure Support Software das in dem Fall nicht zulässt mir die möglichen 50GB LTE Ersatzvolumen zu buchen sitz ich hier jetzt sprichwörtlich in 1929 fest! #wtf? #nichtmalfernsehengeht#keininternet
Lets meet again! Hamburg @elixirlang Meetup tomorrow at @sumcumo (not @SABIO_GmbH). There will be a advanced talk about Ecto by @narrowtux . We will have pizza 🍕 check it out:
https://t.co/QABdyCvWAW
#myelixirstatus
Smart-Parking wird zum #smartcity Zugpferd. Zusammen mit @Bosch_BCDS realisieren wir gemeinsam mit mehreren Städten, Kommunen und Energieversorgern #LoRaWAN#smartparking Projekte. Mehr Infos hier: https://t.co/G8my0PTEX6