Open-Source Wikis

/

Grafana

/

Packages

/

@grafana/sql

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

External SQL-style datasource plugins also depend on this package (e.g. ClickHouse, BigQuery).

See also

Built by Factory AutoWiki from public repository content. It is a generated preview for codebase exploration, not source-maintained documentation.

@grafana/sql – Grafana wiki | Factory