mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
- Migrate Postgres query editor to react - Add support for field aliasing in SELECT clauses to SQL based datasources Co-authored-by: Kyle Cunningham <kyle@codeincarnate.com> Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com>
14 lines
545 B
TypeScript
14 lines
545 B
TypeScript
import { DataSourcePlugin } from '@grafana/data';
|
|
import { SQLQuery } from 'app/features/plugins/sql/types';
|
|
|
|
import { QueryEditor } from './QueryEditor';
|
|
import { PostgresConfigEditor } from './configuration/ConfigurationEditor';
|
|
import { PostgresDatasource } from './datasource';
|
|
import { PostgresOptions, SecureJsonData } from './types';
|
|
|
|
export const plugin = new DataSourcePlugin<PostgresDatasource, SQLQuery, PostgresOptions, SecureJsonData>(
|
|
PostgresDatasource
|
|
)
|
|
.setQueryEditor(QueryEditor)
|
|
.setConfigEditor(PostgresConfigEditor);
|