mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
16 lines
622 B
TypeScript
16 lines
622 B
TypeScript
import { DataSourcePlugin } from '@grafana/data';
|
|
import { SQLQuery } from 'app/features/plugins/sql/types';
|
|
|
|
import { CheatSheet } from './CheatSheet';
|
|
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)
|
|
.setQueryEditorHelp(CheatSheet)
|
|
.setConfigEditor(PostgresConfigEditor);
|