Peter Solnica πŸ‡ΊπŸ‡¦ πŸ‡΅πŸ‡± πŸ‡ͺπŸ‡Ί @solnic.dev Β· Jul 8

Ecto.Relation sneak preview πŸ‘€ ...it freaking works in my Phoenix app! πŸŽ‰ One line of code and you get so much functionality OOTB πŸš€ Still in a PoC state but I will release it eventually! #ElixirLang

18 likes 1 replies

?

Replies

Wojtek Mach Β· Jul 9

Looks cool! Consider calling it EctoRelation, Ecto.* is by convention reserved for the Ecto project. "Dynamically" defined get_by_* and find_by_* are interesting, does get_by_this_and_that also works for a compound index? Have you considered find_by(fields) and warn (not error!) on missing index?