{"id":37211549,"url":"https://github.com/seek4self/sql2md","last_synced_at":"2026-01-15T00:05:18.736Z","repository":{"id":64307262,"uuid":"401546601","full_name":"seek4self/sql2md","owner":"seek4self","description":"a tool to export sql table schema to markdown table","archived":false,"fork":false,"pushed_at":"2022-04-22T05:33:36.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-20T17:45:14.278Z","etag":null,"topics":["markdown","mysql","sqlite"],"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/seek4self.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-08-31T02:20:40.000Z","updated_at":"2024-06-20T17:45:14.278Z","dependencies_parsed_at":"2023-01-15T11:00:34.209Z","dependency_job_id":null,"html_url":"https://github.com/seek4self/sql2md","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/seek4self/sql2md","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seek4self%2Fsql2md","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seek4self%2Fsql2md/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seek4self%2Fsql2md/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seek4self%2Fsql2md/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seek4self","download_url":"https://codeload.github.com/seek4self/sql2md/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seek4self%2Fsql2md/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28439610,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T22:37:52.437Z","status":"ssl_error","status_checked_at":"2026-01-14T22:37:31.496Z","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":["markdown","mysql","sqlite"],"created_at":"2026-01-15T00:05:16.971Z","updated_at":"2026-01-15T00:05:18.149Z","avatar_url":"https://github.com/seek4self.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sql2md\n\na tool to export sql table schema to markdown table\n\n## Install\n\n[release pkg](https://github.com/seek4self/sql2md/releases)\n\n## Usage\n\n```bash\nUsage of ./sql2md:\n  -P int\n        mysql port (default 3306)\n  -h string\n        mysql host (default \"127.0.0.1\")\n  -n string\n        mysql database name (default \"mysql\")\n  -o string\n        markdown output location (default \".\")\n  -p string\n        mysql password (default \"root\")\n  -s string\n        sqlite database path\n  -t string\n        mysql tables, support ',' separator for filter, default all tables\n  -u string\n        mysql username (default \"root\")\n  -d    show sql debug log\n  -v    show version and exit\n```\n\nexample:\n\n```bash\n$ ./sql2md -p 123456 -n bmi_vdms \nconnect to mysql ok\nopen markdown file ...\nwrite markdown header ...\n1/5 creating table authorization ...\n2/5 creating table casbin_rule ...\n3/5 creating table d_video ...\n4/5 creating table s_video ...\n5/5 creating table video ...\nwrite ./bmi_vdms.md done.\n```\n\nmarkdown output:\n\n```markdown\n# bmi_vdms 数据库表结构\n\n## authorization\n\n| 序号 | 列名          | 类型        | 主键 | 为空 | 默认值 | 额外信息       | 注释              |\n| ---- | ------------- | ----------- | ---- | ---- | ------ | -------------- | ----------------- |\n| 1    | `id`          | bigint(20)  | PRI  | NO   |        | auto_increment |                   |\n| 2    | `code`        | varchar(32) |      | YES  |        |                | 授权码            |\n| 3    | `is_use`      | tinyint(4)  |      | YES  | 0      |                | 1:注册，0：未注册 |\n| 4    | `location_id` | bigint(20)  | UNI  | YES  |        |                |                   |\n\n## casbin_rule\n\n| 序号 | 列名    | 类型         | 主键 | 为空 | 默认值 | 额外信息       | 注释                   |\n| ---- | ------- | ------------ | ---- | ---- | ------ | -------------- | ---------------------- |\n| 1    | `id`    | int(11)      | PRI  | NO   |        | auto_increment |                        |\n| 2    | `ptype` | varchar(100) | MUL  | YES  |        |                |                        |\n| 3    | `v0`    | varchar(100) |      | YES  |        |                | 角色(id)               |\n| 4    | `v1`    | varchar(100) |      | YES  |        |                | p:请求 path / g:父角色 |\n| 5    | `v2`    | varchar(100) |      | YES  |        |                | 请求 method            |\n| 6    | `v3`    | varchar(100) |      | YES  |        |                | 注释                   |\n| 7    | `v4`    | varchar(100) |      | YES  |        |                |                        |\n| 8    | `v5`    | varchar(100) |      | YES  |        |                |                        |\n```\n\ntable preview:\n\n\u003e ## authorization\n\u003e\n\u003e| 序号 | 列名 | 类型 | 主键 | 为空 | 默认值 | 额外信息 | 注释 |\n\u003e| -- | -- | -- | -- | -- | -- | -- | -- |\n\u003e| 1 | `id` | bigint(20) | PRI | NO |  | auto_increment |  |\n\u003e| 2 | `code` | varchar(32) |  | YES |  |  | 授权码 |\n\u003e| 3 | `is_use` | tinyint(4) |  | YES | 0 |  | 1:注册，0：未注册 |\n\u003e| 4 | `location_id` | bigint(20) | UNI | YES |  |  |  |\n\n## Todo list\n\n- [x] add sqlite support  \n- [ ] add mongodb support\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseek4self%2Fsql2md","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseek4self%2Fsql2md","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseek4self%2Fsql2md/lists"}