grafana/grafana
@grafana/sql
Shared SQL datasource frontend. Source under packages/grafana-sql/.
This package factors out the parts of MySQL, MSSQL, and Postgres frontend plugins that are identical: the visual query builder, the schema browser, the macro list, and the response → DataFrame conversion. Each datasource plugin then specializes only the dialect-specific parts.
What's exported
<SqlQueryEditor>— the query editor component (code editor + visual builder split).<SqlMetricsQueryEditor>— the simpler metrics-focused editor.- Schema browser components (
<DatabasePicker>,<TablePicker>,<ColumnPicker>). - Macro list and helper for documentation.
- Common response transformer.
Consumers
public/app/plugins/datasource/mysql/public/app/plugins/datasource/mssql/public/app/plugins/datasource/grafana-postgresql-datasource/public/app/plugins/datasource/influxdb/(for SQL/Flux modes)
External SQL-style datasource plugins also depend on this package (e.g. ClickHouse, BigQuery).
See also
- Built-in plugins / datasources — the consumers above.
Built by Factory AutoWiki from public repository content. It is a generated preview for codebase exploration, not source-maintained documentation.