{"id":20037547,"url":"https://github.com/nktks/gql-spansql","last_synced_at":"2026-04-27T12:39:28.279Z","repository":{"id":57596616,"uuid":"375260475","full_name":"nktks/gql-spansql","owner":"nktks","description":"Generate Spanner Schema from GraphQL SDL","archived":false,"fork":false,"pushed_at":"2024-06-17T00:24:44.000Z","size":90,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-01T09:52:34.351Z","etag":null,"topics":["google-cloud-spanner","graphql","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/nktks.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-09T07:10:11.000Z","updated_at":"2024-06-17T00:24:47.000Z","dependencies_parsed_at":"2025-01-12T18:46:05.249Z","dependency_job_id":"4700458e-302a-4ee2-8c09-088e6f0fc2e0","html_url":"https://github.com/nktks/gql-spansql","commit_stats":null,"previous_names":["nakatamixi/gql-spansql"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nktks/gql-spansql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nktks%2Fgql-spansql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nktks%2Fgql-spansql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nktks%2Fgql-spansql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nktks%2Fgql-spansql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nktks","download_url":"https://codeload.github.com/nktks/gql-spansql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nktks%2Fgql-spansql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32337274,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["google-cloud-spanner","graphql","spanner"],"created_at":"2024-11-13T10:20:04.280Z","updated_at":"2026-04-27T12:39:28.233Z","avatar_url":"https://github.com/nktks.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gql-spansql\n\n[license]: https://github.com/nktks/gql-spansql/blob/master/LICENSE\n\n`gql-spansql` is a command-line tool to convert GraphQL SDL to Google Cloud Spanner table schemas.\n\n# Install\n```\ngo install github.com/nktks/gql-spansql/cmd/gql-spansql\n```\n\n# Usage\n```\nUsage:\n  -column-case string\n    \tsnake or lowercamel or uppercamel. if empty no convert.\n  -created-column-name string\n    \tif not empty, add this column as created_at Timestamp column.\n  -loose\n    \tloose type check.\n  -s string\n    \tpath to input schama\n  -table-case string\n    \tsnake or lowercamel or uppercamel. if empty no convert.\n  -updated-column-name string\n    \tif not empty, add this column as updated_at Timestamp column.\n```\n\n# Example\n```\ncat internal/converter/testdata/spanner_sql.gql\ntype User {\n  userId: ID!\n  state: State!\n  time: Time!\n}\n\ntype Item {\n  itemId: ID!\n}\n\nenum State {\n  ENABLED\n  DISABLED\n}\n\nscalar Time\n\ntype Query {\n  user(user_id: ID): User\n}\n\ntype Mutation {\n  user(user_id: ID!, state: State): User\n}\n\ntype Subscription {\n  user(user_id: ID): User\n}\ngo run cmd/main.go -s internal/converter/testdata/spanner_sql.gql\nCREATE TABLE Item (\n  itemId STRING(MAX) NOT NULL,\n) PRIMARY KEY(itemId);\nCREATE TABLE User (\n  userId STRING(MAX) NOT NULL,\n  state INT64 NOT NULL,\n  time TIMESTAMP NOT NULL,\n) PRIMARY KEY(userId);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnktks%2Fgql-spansql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnktks%2Fgql-spansql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnktks%2Fgql-spansql/lists"}