{"id":37560856,"url":"https://github.com/z0ne-dev/mgx","last_synced_at":"2026-01-16T09:05:54.258Z","repository":{"id":65898030,"uuid":"600718435","full_name":"z0ne-dev/mgx","owner":"z0ne-dev","description":"pgx native migration system","archived":false,"fork":false,"pushed_at":"2023-08-07T20:11:05.000Z","size":48,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"trunk","last_synced_at":"2024-06-21T12:58:50.794Z","etag":null,"topics":["database-migrations","golang","pgx"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/z0ne-dev.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-02-12T11:34:12.000Z","updated_at":"2023-12-11T07:34:53.000Z","dependencies_parsed_at":"2024-06-21T11:57:54.023Z","dependency_job_id":null,"html_url":"https://github.com/z0ne-dev/mgx","commit_stats":{"total_commits":26,"total_committers":4,"mean_commits":6.5,"dds":0.3076923076923077,"last_synced_commit":"4110d24c033e2b55121cbd494b2e541e09311570"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/z0ne-dev/mgx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z0ne-dev%2Fmgx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z0ne-dev%2Fmgx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z0ne-dev%2Fmgx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z0ne-dev%2Fmgx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/z0ne-dev","download_url":"https://codeload.github.com/z0ne-dev/mgx/tar.gz/refs/heads/trunk","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z0ne-dev%2Fmgx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478049,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["database-migrations","golang","pgx"],"created_at":"2026-01-16T09:05:53.604Z","updated_at":"2026-01-16T09:05:54.250Z","avatar_url":"https://github.com/z0ne-dev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Contributors][contributors-shield]][contributors-url]\n[![Forks][forks-shield]][forks-url]\n[![Stargazers][stars-shield]][stars-url]\n[![Issues][issues-shield]][issues-url]\n[![Apache 2.0][license-shield]][license-url]\n\n[![Go Reference][reference-shield]][reference-url]\n[![Build][build-shield]][build-url]\n[![Coverage][coverage-shield]][coverage-url]\n[![Go Report Card][report-shield]][report-url]\n\n[contributors-shield]: https://img.shields.io/github/contributors/z0ne-dev/mgx.svg?\n[contributors-url]: https://github.com/z0ne-dev/mgx/graphs/contributors\n[forks-shield]: https://img.shields.io/github/forks/z0ne-dev/mgx.svg?\n[forks-url]: https://github.com/z0ne-dev/mgx/network/members\n[stars-shield]: https://img.shields.io/github/stars/z0ne-dev/mgx.svg?\n[stars-url]: https://github.com/z0ne-dev/mgx/stargazers\n[issues-shield]: https://img.shields.io/github/issues/z0ne-dev/mgx.svg?\n[issues-url]: https://github.com/z0ne-dev/mgx/issues\n[coverage-shield]: https://codecov.io/gh/z0ne-dev/mgx/branch/trunk/graph/badge.svg\n[coverage-url]: https://codecov.io/gh/z0ne-dev/mgx\n[license-shield]: https://img.shields.io/github/license/z0ne-dev/mgx.svg?\n[license-url]: https://github.com/z0ne-dev/mgx/blob/master/LICENSE.txt\n[report-shield]: https://goreportcard.com/badge/github.com/z0ne-dev/mgx?\n[report-url]: https://goreportcard.com/report/github.com/z0ne-dev/mgx\n[reference-shield]: https://pkg.go.dev/badge/github.com/z0ne-dev/mgx.svg\n[reference-url]: https://pkg.go.dev/github.com/z0ne-dev/mgx\n[build-shield]: https://github.com/z0ne-dev/mgx/actions/workflows/push-pull.yml/badge.svg\n[build-url]: https://github.com/z0ne-dev/mgx/actions/workflows/push-pull.yml\n\n# mgx\n\nSimple migration system for [pgx](https://github.com/jackc/pgx).\n\nMigrations are defined in code and are executed in order.\nThe migration system keeps track of which migrations have been executed and which have not.\n\n\n## Getting Started\n\n1. Install the dependency\n```sh\ngo get -u github.com/z0ne-dev/mgx/v2\n```\n2. Import the package and create a new migrator\n```go\npackage main\n\nimport \"github.com/z0ne-dev/mgx\"\n\nfunc main() {\n    migrator, _ := mgx.New(mgx.Migrations(\n\t\t// insert migrations here \n    ))\n}\n```\n\n3. Run the `Migrate(context.TODO(), pgx)` method to execute the migrations\n\n\n## Contributing\n\nContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\nIf you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag \"enhancement\".\nDon't forget to give the project a star! Thanks again!\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n\n## License\n\nDistributed under the Apache-2.0 License. See `LICENSE` for more information.\n\n\n## Acknowledgments\n\n* [lopezator/migrator](https://github.com/lopezator/migrator) for inspiration for this package. Lots of inspiration was taken from this package, but it was not used directly. The API was designed to be similar, to reduce refactoring when switching between the two packages.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fz0ne-dev%2Fmgx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fz0ne-dev%2Fmgx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fz0ne-dev%2Fmgx/lists"}