ggsql is a SQL extension for declarative data visualization based on Grammar of Graphics principles. It combines SQL data queries with visualization specifications in a single, composable syntax.
- Complete syntax highlighting for ggsql queries.
.ggsqlfile extension support.- Language runtime integration for Positron IDE.
SELECT date, revenue, region
FROM sales
WHERE year = 2024
VISUALISE date AS x, revenue AS y, region AS color
DRAW line
SCALE x
SETTING breaks => 'month'
LABEL title => 'Sales by Region'You can either install ggsql from the extension marketplace or download and install it manually:
- Download
ggsql.vsixfrom Open VSX extension marketplace - Install via the command line:
# VS Code
code --install-extension ggsql.vsix
# Positron
positron --install-extension ggsql.vsixOr install from within the editor: open the Extensions view, click the ... menu, select "Install from VSIX...", and choose the downloaded file.
Visit ggsql.org to get started with ggsql, explore the documentation, and see more examples.