{"repo":"DimonSmart/DbSketch","free":true,"listed":false,"github":"https://github.com/DimonSmart/DbSketch","clone":"git clone https://github.com/DimonSmart/DbSketch.git","description":"Generate compact database schema diagrams and Markdown docs from live SQL Server, PostgreSQL, and MySQL databases — useful for docs, CI, and LLM context.","language":"C#","stars":22,"topics":["ai-tools","database","database-diagram","database-schema","diagram-as-code","documentation-generator","dot","dotnet-tool","er-diagram","graphviz"],"license":"MIT","category":"databases-storage","readme_excerpt":"DbSketch DbSketch turns a live database into version-controlled schema documentation. It reads tables, columns, primary keys, and foreign keys directly from SQL Server, PostgreSQL, MySQL, or SQLite. It can include native comments where providers support them, apply YAML comment overrides, and generate diagram-as-code files you can commit, review, render, reuse as LLM context, and refresh from CI. DbSketch is useful when both humans and AI coding assistants need a compact, reviewable schema snapshot. Instead of asking an agent to inspect the database with ad-hoc commands or parse creation scripts and migrations, you can give it generated schema documentation that already contains the relevant tables, columns, keys, relationships, and comments. What it produces DbSketch is a CLI documentation generator, not a visual database designer. Its primary output is text-based, Markdown-friendly documentation: - .dot : Graphviz DOT, best for precise technical diagrams and column-to-column foreign key edges. - .mmd : Mermaid ER, convenient for Markdown renderers that support Mermaid diagrams. - .md : Markdown documentation that wraps DOT or Mermaid in a fenced code block. These files can often be used directly in repositories, wikis, issue trackers, documentation sites, and other tools that understand diagram-as-code or Markdown-like formats. What it looks like Compact schema diagram: Detailed schema diagram with comments and column metadata: Why DbSketch? - Reads live SQL Server, Postgre","default_branch":null,"files":null,"tree":[],"storefront":"/r/DimonSmart","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/DimonSmart/DbSketch/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}