{"id":22376810,"url":"https://github.com/ecsx-framework/ecsx_persistence_ecto","last_synced_at":"2025-12-11T23:31:21.722Z","repository":{"id":169906822,"uuid":"645996093","full_name":"ecsx-framework/ecsx_persistence_ecto","owner":"ecsx-framework","description":"An Ecto Persistence Adapter for ECSx","archived":false,"fork":false,"pushed_at":"2024-02-05T22:44:46.000Z","size":22,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-22T13:57:31.922Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ecsx-framework.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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,"publiccode":null,"codemeta":null}},"created_at":"2023-05-27T00:54:54.000Z","updated_at":"2024-07-20T15:21:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"4226d892-47c5-4517-8a41-9825a7b12b0a","html_url":"https://github.com/ecsx-framework/ecsx_persistence_ecto","commit_stats":null,"previous_names":["thefirstavenger/ecsx_persistence_ecto","ecsx-framework/ecsx_persistence_ecto"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ecsx-framework/ecsx_persistence_ecto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecsx-framework%2Fecsx_persistence_ecto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecsx-framework%2Fecsx_persistence_ecto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecsx-framework%2Fecsx_persistence_ecto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecsx-framework%2Fecsx_persistence_ecto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ecsx-framework","download_url":"https://codeload.github.com/ecsx-framework/ecsx_persistence_ecto/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecsx-framework%2Fecsx_persistence_ecto/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266507331,"owners_count":23940054,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-12-04T22:11:31.019Z","updated_at":"2025-12-11T23:31:16.699Z","avatar_url":"https://github.com/ecsx-framework.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EcsxPersistenceEcto\n\n[![Hex Version](https://img.shields.io/hexpm/v/ecsx_persistence_ecto.svg)](https://hex.pm/packages/ecsx_persistence_ecto)\n[![License](https://img.shields.io/hexpm/l/ecsx_persistence_ecto.svg)](https://github.com/ecsx-framework/ecsx_persistence_ecto/blob/master/LICENSE)\n[![Documentation](https://img.shields.io/badge/documentation-gray)](https://hexdocs.pm/ecsx_persistence_ecto)\n\nEcto Persistence Adapter for ECSx\n\n## Installation\n\nEcsxPersistenceEcto can be installed by adding `ecsx_persistence_ecto` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:ecsx_persistence_ecto, \"~\u003e 0.1\"}\n  ]\nend\n```\n\n## Configure\n\nTo configure ECSx in your app with Ecto as the persistence adapter, update `:ecsx` in your `config.exs` file:\n\n```elixir\n    config :ecsx,\n      ...\n      persistence_adapter: ECSx.Persistence.Ecto\n```\n\nand specify your repo:\n\n```elixir\n    config :ecsx_persistence_ecto, repo: MyApp.Repo\n```\n\n## Add the database table\n\nGenerate a migration script:\n\n```\nmix ecto.gen.migration ecto_persistence\n```\n\nand update the change function in the migration:\n\n```elixir\n  def change do\n    create table \"ecsx_components\" do\n      add :module, :string\n      add :data, :string\n\n      timestamps()\n    end\n  end\n```\n\nFinally, run the migration script:\n\n```\nmix ecto.migrate\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecsx-framework%2Fecsx_persistence_ecto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fecsx-framework%2Fecsx_persistence_ecto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecsx-framework%2Fecsx_persistence_ecto/lists"}