{"id":28984326,"url":"https://github.com/yindia/xray","last_synced_at":"2026-05-02T17:36:29.871Z","repository":{"id":300921257,"uuid":"1007596973","full_name":"yindia/xray","owner":"yindia","description":"About Xray: Simplify database structure extraction for MySQL, PostgreSQL, BigQuery, Redshift, MsSQL and Snowflake in Go","archived":false,"fork":false,"pushed_at":"2025-06-24T08:36:55.000Z","size":96,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-24T09:43:34.283Z","etag":null,"topics":["bigquery","mssql","mysql","postgressql","rds","redshift","snowflake"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/thesaas-company/xray","language":"Go","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/yindia.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,"zenodo":null}},"created_at":"2025-06-24T08:34:27.000Z","updated_at":"2025-06-24T08:38:57.000Z","dependencies_parsed_at":"2025-06-24T09:45:01.687Z","dependency_job_id":"7de98ce3-6c26-4924-9766-80dc9920aa4f","html_url":"https://github.com/yindia/xray","commit_stats":null,"previous_names":["yindia/xray"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yindia/xray","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yindia%2Fxray","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yindia%2Fxray/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yindia%2Fxray/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yindia%2Fxray/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yindia","download_url":"https://codeload.github.com/yindia/xray/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yindia%2Fxray/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280723930,"owners_count":26380108,"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","status":"online","status_checked_at":"2025-10-23T02:00:06.710Z","response_time":142,"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":["bigquery","mssql","mysql","postgressql","rds","redshift","snowflake"],"created_at":"2025-06-24T17:03:23.534Z","updated_at":"2025-10-24T01:55:16.775Z","avatar_url":"https://github.com/yindia.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XRay\n\n**XRay** is an open-source Go library and CLI tool for database schema extraction and query execution. It supports multiple databases and provides a unified interface for developers and data engineers.\n\n---\n\n## Features\n\n- Extracts schema metadata from popular databases.\n- Executes SQL queries across different engines.\n- Unified API for multiple backends.\n- Easy integration into Go projects.\n- CLI for quick inspection and automation.\n\n---\n\n## Installation\n\n### Library\n\n```bash\ngo get github.com/yindia/xray@latest\n```\n\n### CLI\n\n#### MacOS\n\n```bash\nbrew install yindia/homebrew-tap/xray\n```\n\n#### Linux\n\n```bash\ncurl -sL https://raw.githubusercontent.com/yindia/xray/main/install.sh | sudo bash -s -- -b /usr/local/bin\n```\n\n---\n\n## Quick Start\n\n### Go Library Example\n\n```go\npackage main\n\nimport (\n    \"github.com/yindia/xray\"\n    \"github.com/yindia/xray/config\"\n)\n\nfunc main() {\n    cfg := config.Config{\n        // Fill in your database config here\n    }\n    client, err := xray.NewClient(cfg)\n    if err != nil {\n        panic(err)\n    }\n\n    schema, err := client.ExtractSchema()\n    if err != nil {\n        panic(err)\n    }\n\n    // Use schema metadata\n    fmt.Println(schema)\n}\n```\n\nSee [example/{database}/main.go](./example/) for full working examples for each supported database.\n\n---\n\n## Supported Databases\n\n- MySQL\n- PostgreSQL\n- Redshift\n- BigQuery\n- Snowflake\n- MSSQL\n\n---\n\n## Integration Guides\n\n- [MySQL Integration](./example/mysql/integration.md)\n- [Postgres Integration](./example/postgres/integration.md)\n- [Redshift Integration](./example/redshift/integration.md)\n- [BigQuery Integration](./example/bigquery/integration.md)\n- [Snowflake Integration](./example/snowflake/integration.md)\n- [MSSQL Integration](./example/mssql/integration.md)\n\n## Example Projects\n\n- [MySQL Example](./example/mysql/README.md)\n- [Postgres Example](./example/postgres/README.md)\n- [Redshift Example](./example/redshift/README.md)\n- [BigQuery Example](./example/bigquery/README.md)\n- [Snowflake Example](./example/snowflake/README.md)\n- [MSSQL Example](./example/mssql/README.md)\n\n---\n\n## CLI Usage\n\nSee [CLI Getting Started](./cli/README.md) for full documentation.\n\n---\n\n## Documentation\n\n- [GoDoc Reference](https://pkg.go.dev/github.com/yindia/xray)\n\n---\n\n## Contributing\n\nContributions are welcome! Please open issues or pull requests.\n\n---\n\n## License\n\n[MIT](./LICENSE)\n\n---\n\n## Show Your Support\n\nIf you find XRay useful, please consider starring the repository on GitHub!\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyindia%2Fxray","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyindia%2Fxray","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyindia%2Fxray/lists"}