{"id":38382224,"url":"https://github.com/kanjih/ratchet","last_synced_at":"2026-01-17T03:38:51.072Z","repository":{"id":45432850,"uuid":"336655596","full_name":"kanjih/ratchet","owner":"kanjih","description":"A schema migration tool for Cloud Spanner.","archived":false,"fork":false,"pushed_at":"2021-12-14T09:57:25.000Z","size":38,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-14T23:34:40.615Z","etag":null,"topics":["golang","migration","ratchet","schema","schema-migrations","spanner"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kanjih.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-06T23:08:20.000Z","updated_at":"2022-06-04T17:28:16.000Z","dependencies_parsed_at":"2022-09-26T20:21:40.513Z","dependency_job_id":null,"html_url":"https://github.com/kanjih/ratchet","commit_stats":null,"previous_names":["hiracchy/ratchet"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/kanjih/ratchet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanjih%2Fratchet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanjih%2Fratchet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanjih%2Fratchet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanjih%2Fratchet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kanjih","download_url":"https://codeload.github.com/kanjih/ratchet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanjih%2Fratchet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28493333,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T02:39:23.645Z","status":"ssl_error","status_checked_at":"2026-01-17T02:34:19.649Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["golang","migration","ratchet","schema","schema-migrations","spanner"],"created_at":"2026-01-17T03:38:51.012Z","updated_at":"2026-01-17T03:38:51.064Z","avatar_url":"https://github.com/kanjih.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"ratchet\n========\nratchet is a schema migration tool for Cloud Spanner.\n\n## Installation\n\nDownload the binary from [GitHub Releases][release] and drop it in your `$PATH`.\n\n- [Darwin / Mac][release]\n- [Linux][release]\n\n[release]: https://github.com/hiracchy/ratchet/releases/latest\n\n## Usage\nYou can use by following steps.\n\n### 1. Initialize the schema for migration\n```console\n$ ratchet init -p {your-project-id} -i {spanner-instance} -d {spanner-database}\n\nCreating migration table...\nMigration table has been created!!\n```\nThis will create a table to manage migration.\n\n### 2. Create migration files\n```console\n$ ratchet new\n\nNew migration file has been created in migrations/2021-02-07_07-38-03_23229.sql\n```\nThe above command makes a migration file for DDL.\nIf you want to make files for DML or Partitioned-DML, please add `--dml` or `--pdml` opition.\n\n### 3. Run migrations\n```console\n$ ratchet run -p {your-project-id} -i {spanner-instance} -d {spanner-database}\n\nMigration started.\nrunning 2021-02-07_07-38-03_23229 ... done.\nMigration completed!\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkanjih%2Fratchet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkanjih%2Fratchet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkanjih%2Fratchet/lists"}