josevalim
Creator of Elixir
See the release notes: https://github.com/elixir-ecto/ecto/releases/tag/2.2.0-rc.0
To try it in your projects: {:ecto, "~> 2.2.0-rc", override: true}.
Trending in News
Other Trending Topics
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #blog-post
- #elixir-ls
- #elixirconf-us
- #ai
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming











Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
OvermindDL1
Hah, I was just typing up a post!
My post was:
Just wanted to note that an awesome feature has been added to Ecto 2.2.0-rc.0 that was just released.
select_merge(andselect(blah, merge(bloop)).This is a feature that has been wanted a few times here and so just want to point it out (I’ll be rewriting and simplifying a lot of my complex queries soon!).
See the docs for it at: Ecto.Query – Ecto v2.2.0-rc.0
OvermindDL1
Also, is it just me or are the docs showing “Toggle Sidebar” floating on the top sidebar button? It looks like the
sr-onlycss is missing…josevalim
Do a hard refresh on the docs page.
And I would love some feedback on the select_merge feature.
OvermindDL1
Hmm, just did. Also told chrome to ignore the cache and fetch on every request and it still is not getting a css where
.sr-onlyexists. it is currently requestinghttps://hexdocs.pm/ecto/2.2.0-rc.0/dist/app-091c05798a.cssif that helps.Initially it looks awesome! It will so very much simplify a lot of my complex monstrous builders to this old Oracle horror, plus I can return less data in many areas now too instead of dummy data!
OvermindDL1
Also, have you thought about supporting this syntax for merging selects? It seems much more readable to me (
select_mergecan get lost in the keyword lists in my eyes now that I’m using it andmergeseems foreign):law
Yayyyy - Having on_conflict support a constraint name is going to replace a bunch of manual upserting in my codebase, and being about to use associations with put_change is also excellent.
Thank you
sergio
I love this change the most:
Thanks for the hard work!
OvermindDL1
It’s fixed now, probably just had to propagate through the cloudflare CDN or so. ^.^
axelson
[Ecto.Migration] Add reversible execute/2 to migrationsBlew my mind. Is Ecto able to automatically determine if the arbitrary SQL is reversible? Or does it just skip that execution on rollback?
Edit: nevermind. I see that it is
execute/2, the second argument is what you execute on rollback. Makes sense.ijunaidfarooq
while you are rewriting already will you please mention here? one of use case as well? that how and where it helped you?