{"id":16957899,"url":"https://github.com/joshnuss/ecto_preloader","last_synced_at":"2025-04-11T21:52:36.924Z","repository":{"id":57493617,"uuid":"220397849","full_name":"joshnuss/ecto_preloader","owner":"joshnuss","description":"Preload your data efficiently with joins","archived":false,"fork":false,"pushed_at":"2019-11-08T07:03:33.000Z","size":16,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T21:52:31.240Z","etag":null,"topics":["ecto","elixir"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joshnuss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-08T06:04:04.000Z","updated_at":"2024-06-14T17:46:46.000Z","dependencies_parsed_at":"2022-08-28T15:14:02.033Z","dependency_job_id":null,"html_url":"https://github.com/joshnuss/ecto_preloader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshnuss%2Fecto_preloader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshnuss%2Fecto_preloader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshnuss%2Fecto_preloader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshnuss%2Fecto_preloader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joshnuss","download_url":"https://codeload.github.com/joshnuss/ecto_preloader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248487733,"owners_count":21112188,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ecto","elixir"],"created_at":"2024-10-13T22:20:27.350Z","updated_at":"2025-04-11T21:52:36.897Z","avatar_url":"https://github.com/joshnuss.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ecto.Preloader\n\nPreload your associations efficiently with joins.\n\nYou can do this with Ecto alone, it just requires more code. This package makes it a one liner.\n\nFull documentation: [https://hexdocs.pm/ecto_preloader](https://hexdocs.pm/ecto_preloader).\n\n## Example usage:\n\n```elixir\nimport Ecto.Preloader\n\nInvoice\n|\u003e preload_join(:customer)\n|\u003e preload_join(:lines)\n|\u003e Repo.all()\n```\n\n### Example using Ecto directly:\n\nWithout Ecto.Preloader it gets a bit repetitive:\n\n```elixir\nInvoice\n|\u003e join(:left, [i], assoc(i, :customer), as: :customer)\n|\u003e join(:left, [i], assoc(i, :lines), as: :lines)\n|\u003e preload([lines: l, customers: c], lines: l, customer: c)\n|\u003e Repo.all()\n```\n\n## Installation\n\nThe package can be installed by adding `ecto_preloader` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:ecto_preloader, \"~\u003e 0.1.0\"}\n  ]\nend\n```\n\n## License\n\nWTFPL\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshnuss%2Fecto_preloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoshnuss%2Fecto_preloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshnuss%2Fecto_preloader/lists"}