{"id":13513869,"url":"https://github.com/commanded/commanded-ecto-projections","last_synced_at":"2025-04-04T20:15:52.831Z","repository":{"id":46756892,"uuid":"93785971","full_name":"commanded/commanded-ecto-projections","owner":"commanded","description":"Read model projections for Commanded using Ecto","archived":false,"fork":false,"pushed_at":"2024-03-20T22:59:13.000Z","size":146,"stargazers_count":89,"open_issues_count":14,"forks_count":41,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-10-29T22:37:26.636Z","etag":null,"topics":["cqrs","cqrs-es","cqrs-framework","ecto","event-handler","read-model"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/commanded.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":"slashdotdash","open_collective":"commanded"}},"created_at":"2017-06-08T19:47:07.000Z","updated_at":"2024-10-03T12:21:48.000Z","dependencies_parsed_at":"2024-01-22T19:33:34.699Z","dependency_job_id":"b50f064a-5753-4cd4-8653-a8366c5c166a","html_url":"https://github.com/commanded/commanded-ecto-projections","commit_stats":{"total_commits":99,"total_committers":12,"mean_commits":8.25,"dds":"0.26262626262626265","last_synced_commit":"e2252b86c70b2f123ecc8ec9bea587ec4095dadc"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commanded%2Fcommanded-ecto-projections","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commanded%2Fcommanded-ecto-projections/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commanded%2Fcommanded-ecto-projections/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commanded%2Fcommanded-ecto-projections/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/commanded","download_url":"https://codeload.github.com/commanded/commanded-ecto-projections/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246060380,"owners_count":20717256,"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":["cqrs","cqrs-es","cqrs-framework","ecto","event-handler","read-model"],"created_at":"2024-08-01T05:00:39.215Z","updated_at":"2025-03-28T19:12:03.448Z","avatar_url":"https://github.com/commanded.png","language":"Elixir","readme":"# Commanded Ecto Projections\n\nRead model projections for [Commanded](https://github.com/commanded/commanded) CQRS/ES applications using [Ecto](https://github.com/elixir-ecto/ecto) for persistence.\n\nRead the [Changelog](CHANGELOG.md) for recent changes and the [Hex Docs](https://hexdocs.pm/commanded_ecto_projections/) on API usage.\n\n\u003e This README and the following guides follow the `master` branch which may not be the currently published version.\n\n### Overview\n\n- [Getting started](guides/Getting%20Started.md)\n- [Usage](guides/Usage.md)\n  - [Creating a read model](guides/Usage.md#creating-a-read-model)\n  - [Creating a projector](guides/Usage.md#creating-a-projector)\n  - [Supervision](guides/Usage.md#supervision)\n  - [Error handling](guides/Usage.md#error-handling)\n    - [`error/3` callback](guides/Usage.md#error3-callback)\n    - [Error handling example](guides/Usage.md#error-handling-example)\n  - [`after_update/3` callback](guides/Usage.md#after_update3-callback)\n  - [Schema prefix](guides/Usage.md#schema-prefix)\n  - [Rebuilding a projection](guides/Usage.md#rebuilding-a-projection)\n\n### Example projector\n\n```elixir\ndefmodule MyApp.ExampleProjector do\n  use Commanded.Projections.Ecto,\n    application: MyApp.Application,\n    repo: MyApp.Projections.Repo,\n    name: \"MyApp.ExampleProjector\"\n\n  project %AnEvent{} = event, _metadata, fn multi -\u003e\n    %AnEvent{name: name} = event\n\n    projection = %ExampleProjection{name: name}\n\n    Ecto.Multi.insert(multi, :example_projection, projection)\n  end\nend\n```\n\n### Contributing\n\nPull requests to contribute new or improved features, and extend documentation are most welcome. Please follow the existing coding conventions.\n\nYou should include unit tests to cover any changes. Run `mix test` to execute the test suite:\n\n```console\nmix deps.get\nMIX_ENV=test mix setup\nmix test\n```\n\n### Contributors\n\n- [Andrey Akulov](https://github.com/astery)\n- [Ben Smith](https://github.com/slashdotdash)\n- [CptBreeza](https://github.com/CptBreeza)\n- [Florian Ebeling](https://github.com/febeling)\n- [Sascha Wolf](https://github.com/Zeeker)\n- [Tobiasz Małecki](https://github.com/amatalai)\n\n## Need help?\n\nPlease [open an issue](https://github.com/commanded/commanded-ecto-projections/issues) if you encounter a problem, or need assistance. You can also seek help in the #commanded channel in the [official Elixir Slack](https://elixir-slackin.herokuapp.com/).\n\n## Copyright and License\n\nCopyright (c) 2017 Ben Smith\n\nThis library is released under the MIT License. See the [LICENSE.md](./LICENSE.md) file for further details.\n","funding_links":["https://github.com/sponsors/slashdotdash","https://opencollective.com/commanded"],"categories":["Elixir","Libraries"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommanded%2Fcommanded-ecto-projections","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcommanded%2Fcommanded-ecto-projections","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommanded%2Fcommanded-ecto-projections/lists"}