{"id":41270203,"url":"https://github.com/xuanbo/ohmydata","last_synced_at":"2026-01-23T02:23:29.077Z","repository":{"id":50309150,"uuid":"330156634","full_name":"xuanbo/ohmydata","owner":"xuanbo","description":"数据服务 —— 写个 SQL 即可发布成 API","archived":false,"fork":false,"pushed_at":"2021-03-08T13:51:00.000Z","size":4224,"stargazers_count":12,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-06-19T10:05:33.147Z","etag":null,"topics":["api-service","dataservice","driver","golang","sql"],"latest_commit_sha":null,"homepage":"http://47.111.102.84:8080/project/ohmydata/#/login","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/xuanbo.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}},"created_at":"2021-01-16T12:22:23.000Z","updated_at":"2024-05-31T00:51:42.000Z","dependencies_parsed_at":"2022-09-08T02:02:33.616Z","dependency_job_id":null,"html_url":"https://github.com/xuanbo/ohmydata","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xuanbo/ohmydata","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuanbo%2Fohmydata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuanbo%2Fohmydata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuanbo%2Fohmydata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuanbo%2Fohmydata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xuanbo","download_url":"https://codeload.github.com/xuanbo/ohmydata/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuanbo%2Fohmydata/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28678200,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T01:00:35.747Z","status":"online","status_checked_at":"2026-01-23T02:00:08.296Z","response_time":59,"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":["api-service","dataservice","driver","golang","sql"],"created_at":"2026-01-23T02:23:28.525Z","updated_at":"2026-01-23T02:23:29.068Z","avatar_url":"https://github.com/xuanbo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# oh-my-data\n\n\u003e 数据服务 —— 写个 SQL 即可发布成 API\n\n## 前端\n\n[ohmydata-web](https://github.com/sjhleo/ohmydata-web)\n\n## 演示地址\n\n```\nhttp://47.111.102.84:8080/project/ohmydata/#/login\n\nadmin/123456\n```\n\n## 界面\n\n### 数据源\n\n- 管理数据库连接\n- 查看表数据\n\n![datasource-list](docs/datasource-list.png)\n\n### 数据集\n\n- 创建数据集\n- 发布 API\n\n![dataset-create](docs/dataset-create.png)\n\n## 数据源\n\n采用接口抽象数据层访问，可扩展。\n\n已实现：\n\n- MySQL\n- PostgreSQL\n- ElasticSearch\n\n待实现：\n\n- Oracle\n- ...\n\n## 文档\n\n待完善。\n\n## 运行\n\n配置文件 `config/config.yaml`\n\n运行：\n\n```shell\ngo run cmd/ohmydata/main.go\n```\n\n## Docker\n\n```shell\ndocker build -t ohmydata .\n\ndocker run -it --name ohmydata \\\n -e MYSQL_URL=YOUR_MYSQL_URL \\\n -e REDIS_ADDR=YOUR_REDIS_ADDR \\\n -e REDIS_DB=YOUR_REDIS_DB \\\n -e REDIS_PASSWORD=YOUR_REDIS_PASSWORD \\\n -p 9090:9090 -d ohmydata\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxuanbo%2Fohmydata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxuanbo%2Fohmydata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxuanbo%2Fohmydata/lists"}