https://hexdocs.pm/ecto/Ecto.Schema.html#many_to_many/3-options
:preload_order was just now discovered by me and it solved my issue perfectly.
All hail the king.
https://hexdocs.pm/ecto/Ecto.Schema.html#many_to_many/3-options
:preload_order was just now discovered by me and it solved my issue perfectly.
All hail the king.
@ThinkingElixir I urgently need stickers! #Elixir #Phoenix #Ecto at least
Leanpub book LAUNCH! Northwind Elixir Traders: Learn Elixir and database modeling with Ecto and SQLite, all in one project by Isaak Tsalicoglou https://youtu.be/LtzBS9hb1Go #books #leanpublishing #selfpublishing #booklaunch #ElixirLang #FunctionalProgramming #IndieHacker #Ecto #SQLite #SoftwareDevelopment #OpenSource #FullStackDev #LearnToCode #LeanpubPodcast
Rebuilding everything in order to apply a migration to a database is so '90s when you already have #Ecto in mind...
#Microsoft #EfCore
Is it me having a blond moment of the day or do these two buttons (Page and Modules) do nothing for anyone on the Phoenix_ecto page?
Sentry tracing for Elixir/Phoenix/Ecto update:
Live view traces
Ecto db statements in traces
Getting there!
Needle also comes with two other homegrown libraries: needle_ulid which provides a ULID datatype for Ecto (using ex_ulid) and related helpers, and exto which enables extending Ecto schema definitions in config (especially useful for adding Mixin associations to different schemas)…
---
Camp! expedition: We have some open bounties to improve bonfire performance :
Read more: https://indieweb.social/@bonfire/112943944096656953
Repository: https://github.com/bonfire-networks/bounties
#ecto #myElixirStatus #elixir
6/6
Besides regular schemas with universal foreign keys (Pointable), Needle provides Virtual for schemas that don’t have any fields on their own, and Mixin for storing common fields that can be re-used by multiple Pointables or Virtuals (eg. if you have multiple types that all have a name/description/body, they can share those and optionally the associated changesets and other logic).
5/6
But what if you don’t just have posts that can be liked, but also videos, images, polls, etc, each with their own table, but probably do not want to have to add liked_video_id, liked_image_id, ad infinitum?
We needed the flexibility to have a foreign key that can reference any referenceable object. We call our system Needle.
A simple example would be a blogging app, which might have a post table with author field that references the user table.
A social network, by contrast, usually requires a graph of objects, meaning objects need to be able to refer to other objects by their ID without knowing their type.
A simple example would be likes, you might have a likes table with liked_post_id field that references the post table.
Needle is an #elixir library that we have developed to provide universal foreign keys, shared data fields, and virtual & configurable schemas for Ecto.
Read the docs: https://hexdocs.pm/needle/readme.html
Join the discussion on Elixir Forum: https://elixirforum.com/t/needle-universal-foreign-keys-shared-data-fields-virtual-and-configurable-schemas-for-ecto/65644
I need someone to point me to a proper guide of ECTO, the online official guides are complete but too terse, too few examples.
#ghostbusters #movies #ecto-1 #car #paranormal #ghosts Just scrolling through my phone, and found a fab memory of last summer. Parked on Scarborough seafront for everyone to see, and one of my favourite movie cars. Apologies for posting it again, but I love it!