{"id":22161274,"url":"https://github.com/violetbuse/feather","last_synced_at":"2025-04-10T17:44:20.934Z","repository":{"id":246237854,"uuid":"820580584","full_name":"VioletBuse/feather","owner":"VioletBuse","description":"Gleam + Sqlight as a feather","archived":false,"fork":false,"pushed_at":"2024-08-14T10:52:14.000Z","size":11,"stargazers_count":8,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T04:17:24.700Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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-06-26T18:57:13.000Z","updated_at":"2025-03-07T07:43:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"e3ea1cf0-1a95-49d5-84c8-1540dca75965","html_url":"https://github.com/VioletBuse/feather","commit_stats":null,"previous_names":["violetbuse/feather"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VioletBuse%2Ffeather","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VioletBuse%2Ffeather/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VioletBuse%2Ffeather/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VioletBuse%2Ffeather/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VioletBuse","download_url":"https://codeload.github.com/VioletBuse/feather/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248262299,"owners_count":21074283,"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":[],"created_at":"2024-12-02T04:14:14.542Z","updated_at":"2025-04-10T17:44:20.917Z","avatar_url":"https://github.com/VioletBuse.png","language":"Gleam","funding_links":[],"categories":[],"sub_categories":[],"readme":"# feather\n\n[![Package Version](https://img.shields.io/hexpm/v/feather)](https://hex.pm/packages/feather)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/feather/)\n\n```sh\ngleam add feather\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 feather -- new \"Initial schema migration\"` and make any changes you like.\n\nRunning the command `gleam run -m feather -- 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 feather\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(feather.get_migrations(priv_dir \u003c\u003e \"/migrations\"))\n  use connection \u003c- feather.connect(feather.Config(..feather.default_config(), file: \"./database.db\"))\n  feather.migrate(migrations, on: connection)\n}\n```\n\nFurther documentation can be found at \u003chttps://hexdocs.pm/feather\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%2Ffeather","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvioletbuse%2Ffeather","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvioletbuse%2Ffeather/lists"}