SQL Context Generator VS Code ExtensionThis repository contains a Visual Studio Code extension that can connect to PostgreSQL, MySQL and SQLite databases, extract schema information and generate a Markdown context file for the currently opened workspace. Features
Commands
You can execute commands from the Command Palette (
|
| Provider | Required Keys | Optional Keys |
|---|---|---|
| PostgreSQL/MySQL | DB_TYPE, DB_HOST, DB_PORT, DB_USER, DB_PASSWORD, DB_NAME |
DB_SSL (true/false) |
| SQLite | DB_TYPE, DB_FILE |
– |
DB_TYPE accepts postgres, mysql or sqlite.
Output File Template
The default output path template is context/context-${isoDate}.md. You can change it via the sql-context.outputPathTemplate setting. The following placeholders are available:
${isoDate}/${date}/{{isoDate}}/{{date}}– ISO timestamp (with characters safe for file names).${workspaceFolder}– absolute path to the workspace folder.${workspaceName}– name of the workspace folder.
When running the “Generate Context Markdown” command you can override the final path manually before the file is written.