{"id":26255162,"url":"https://github.com/patlux/bun-sqlite-migrations","last_synced_at":"2025-04-28T12:20:43.883Z","repository":{"id":187739330,"uuid":"677485707","full_name":"patlux/bun-sqlite-migrations","owner":"patlux","description":"Migration management for bun.sh","archived":false,"fork":false,"pushed_at":"2023-08-11T17:58:43.000Z","size":14,"stargazers_count":20,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-20T12:15:04.380Z","etag":null,"topics":["bun","migration","migration-tool","sqlite"],"latest_commit_sha":null,"homepage":"https://patwoz.dev","language":"TypeScript","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/patlux.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}},"created_at":"2023-08-11T17:35:00.000Z","updated_at":"2024-08-24T21:38:54.000Z","dependencies_parsed_at":"2023-08-12T00:57:40.776Z","dependency_job_id":null,"html_url":"https://github.com/patlux/bun-sqlite-migrations","commit_stats":null,"previous_names":["patlux/bun-sqlite-migrations"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patlux%2Fbun-sqlite-migrations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patlux%2Fbun-sqlite-migrations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patlux%2Fbun-sqlite-migrations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patlux%2Fbun-sqlite-migrations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patlux","download_url":"https://codeload.github.com/patlux/bun-sqlite-migrations/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251311338,"owners_count":21569010,"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":["bun","migration","migration-tool","sqlite"],"created_at":"2025-03-13T19:17:40.625Z","updated_at":"2025-04-28T12:20:43.862Z","avatar_url":"https://github.com/patlux.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bun-sqlite-migrations\n\nSimple function for migration management for [bun:sqlite](https://bun.sh/docs/api/sqlite)\n\n## Getting started\n\n```sh\nbun add bun-sqlite-migrations\n```\n\n### Example\n\nAdd your `.sql` files into `./migrations`, e.g.:\n\n- `0001_init.sql`\n- `0002_add_users_table.sql`\n- `0003_add_column_gender_to_users_table.sql`\n\n\u003e Only the sorting matters. The index of the last executed migration will be stored into the database.\n\n```ts\nimport { migrate, getMigrations } from 'bun-sqlite-migrations'\n\nconst db = new Database(`data.db`)\nmigrate(db, getMigrations('./migrations'))\n```\n\n**Verify**:\n\n```sh\nsqlite3 data.db \"PRAGMA user_version;\"\n# should return the number of migrations which were executed\n3\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatlux%2Fbun-sqlite-migrations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatlux%2Fbun-sqlite-migrations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatlux%2Fbun-sqlite-migrations/lists"}