{"id":13508839,"url":"https://github.com/seaneshbaugh/exseed","last_synced_at":"2025-10-21T18:40:38.595Z","repository":{"id":31673807,"uuid":"35239310","full_name":"seaneshbaugh/exseed","owner":"seaneshbaugh","description":"An Elixir library that provides a simple DSL for seeding databases through Ecto.","archived":false,"fork":false,"pushed_at":"2020-08-26T21:47:46.000Z","size":19,"stargazers_count":17,"open_issues_count":3,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-21T11:17:57.377Z","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":null,"status":"Unmaintained","scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/seaneshbaugh.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":"2015-05-07T19:29:13.000Z","updated_at":"2024-04-16T04:52:12.000Z","dependencies_parsed_at":"2022-09-06T18:00:29.281Z","dependency_job_id":null,"html_url":"https://github.com/seaneshbaugh/exseed","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/seaneshbaugh/exseed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seaneshbaugh%2Fexseed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seaneshbaugh%2Fexseed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seaneshbaugh%2Fexseed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seaneshbaugh%2Fexseed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seaneshbaugh","download_url":"https://codeload.github.com/seaneshbaugh/exseed/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seaneshbaugh%2Fexseed/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280316652,"owners_count":26309993,"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-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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-08-01T02:00:59.256Z","updated_at":"2025-10-21T18:40:38.568Z","avatar_url":"https://github.com/seaneshbaugh.png","language":"Elixir","funding_links":[],"categories":["ORM and Datamapping"],"sub_categories":[],"readme":"# Exseed\n\nAn Elixir library that provides a simple DSL for seeding databases through Ecto.\n\nInspired largely by [seed-fu](https://github.com/mbleigh/seed-fu).\n\n## Installation\n\nIn your project's `mix.exs` add the following:\n\n```elixir\n    defp deps do\n      {:exseed, \"~\u003e 0.0.3\"}\n    end\n```\n\nand then run `mix deps.get`.\n\n## Setup\n\nIn `config/config.exs` add:\n\n```elixir\n    config :exseed, :repo, YourApplication.Repo\n```\n\n## Usage\n\nExseed provides a `seed` macro which expects an Ecto model and a block. Inside the block the fields on your model will be available as functions which will set the value for the field for that record.\n\nBy default Exseed will look in your project's `priv/repo/seeds/` directory for seed files to load. Let's say you have a model named Post, you could put the following in `priv/repo/seeds/posts.exs`:\n\n```elixir\n    import Exseed\n\n    seed YourApplication.Post do\n      id 1\n\n      title \"First Post!\"\n\n      body \"Hello, world!\"\n    end\n\n    seed YourApplication.Post do\n      id 2\n\n      title \"Second Post\"\n\n      {{year, month, day}, {hour, minute, second}} = :calendar.universal_time()\n\n      body \"This entry was seeded at #{year}-#{month}-#{day} #{hour}:#{minute}:#{second}.\"\n    end\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseaneshbaugh%2Fexseed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseaneshbaugh%2Fexseed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseaneshbaugh%2Fexseed/lists"}