{"id":22161272,"url":"https://github.com/violetbuse/storch","last_synced_at":"2025-09-09T15:41:35.276Z","repository":{"id":241775678,"uuid":"807666270","full_name":"VioletBuse/storch","owner":"VioletBuse","description":"A db schema migration library for gleam + sqlight","archived":false,"fork":false,"pushed_at":"2024-06-28T16:50:17.000Z","size":16,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T13:15:23.309Z","etag":null,"topics":["gleam","migrations","sqlight","sqlite"],"latest_commit_sha":null,"homepage":"https://hexdocs.pm/storch/","language":"Gleam","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/VioletBuse.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-29T14:39:12.000Z","updated_at":"2024-06-28T16:50:21.000Z","dependencies_parsed_at":"2024-05-30T03:08:16.315Z","dependency_job_id":"7654b1b6-2767-424a-9114-de235875d550","html_url":"https://github.com/VioletBuse/storch","commit_stats":null,"previous_names":["julianbuse/storch","violetbuse/storch"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VioletBuse%2Fstorch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VioletBuse%2Fstorch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VioletBuse%2Fstorch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VioletBuse%2Fstorch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VioletBuse","download_url":"https://codeload.github.com/VioletBuse/storch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245276175,"owners_count":20588894,"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":["gleam","migrations","sqlight","sqlite"],"created_at":"2024-12-02T04:14:14.064Z","updated_at":"2025-03-24T15:24:42.301Z","avatar_url":"https://github.com/VioletBuse.png","language":"Gleam","funding_links":[],"categories":[],"sub_categories":[],"readme":"# storch\n\n[![Package Version](https://img.shields.io/hexpm/v/storch)](https://hex.pm/packages/storch)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/storch/)\n\n**This package is superceded by the [feather](https://hex.pm/packages/feather) package, which offers a superset of storch's functionality**\n\n```sh\ngleam add storch\n```\n\nAdd the following fields to your gleam.toml file:\n\n```toml\n# this can of course be anything you like\nmigrations_dir = \"./priv/migrations\"\nschemafile = \"./schema.sql\"\n```\n\nThen run the command `gleam run -m storch -- new \"Initial schema migration\"` and make any changes you like.\n\nRunning the command `gleam run -m storch -- schema` will create the file ./schema.sql, (or whatever you set in your gleam.toml) with the schema of your database after all migrations have been applied.\n\n```gleam\nimport storch\nimport gleam/result\nimport gleam/erlang\nimport sqlight\n\npub fn main() {\n  let assert Ok(priv_dir) = erlang.priv_directory(\"my_module_name\")\n  use migrations \u003c- result.try(storch.get_migrations(priv_dir \u003c\u003e \"/migrations\"))\n  use connection \u003c- sqlight.with_connection(\":memory:\")\n  storch.migrate(migrations, on: connection)\n}\n```\n\nFurther documentation can be found at \u003chttps://hexdocs.pm/storch\u003e.\n\n## Development\n\n```sh\ngleam run   # Run the project\ngleam test  # Run the tests\ngleam shell # Run an Erlang shell\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvioletbuse%2Fstorch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvioletbuse%2Fstorch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvioletbuse%2Fstorch/lists"}