DB PlaygroundA VS Code extension for describing database schemas, editing their structure and building queries from local files. It generates Markdown, SQL and MongoDB scripts. It does not connect to databases or run the generated code. InstallationRequires VS Code 1.80 or later. To install a Input files
SQL import does not cover all SQL syntax. CSV and JSON schemas are inferred
from data. JSON profiling examines the first 100,000 documents and the first
20 elements of each array; regular UsageRight-click a supported file and choose DB Playground, or use the commands in the Command Palette. Describe a database schemaOpens a Markdown description in an unsaved editor tab. Choose Save in the
notification to write The description includes tables or collections, their fields and available metadata. Foreign-key relations and nested document structures include Mermaid diagrams. Schema designer (changes and queries)
Changing the output database does not convert existing field types. Some changes require manual edits to the script. For MongoDB, full CREATE creates empty collections without indexes or validation rules. The designer automatically saves edits and queries to
Compare schema with the tree version (impact report)Compares the source file with The report covers added, removed or renamed tables and columns, changed types and whether fields are required. It does not compare indexes, keys, defaults or relations. Suggested renames need confirmation. The stored schema is updated only after you choose Save. Saving filesIn the designer, Open as file saves schema scripts and updates
Paths are relative to the workspace folder; For sources outside the workspace, descriptions are saved beside the source; designer scripts use the first open workspace folder. With no folder open, scripts open as unsaved files. Privacy and linksNo telemetry or network requests. Generated descriptions may contain example values from your data. |