mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 08:22:20 +08:00
16 lines
628 B
TypeScript
16 lines
628 B
TypeScript
import { DataSourcePlugin } from '@grafana/data';
|
|
import { SQLQuery } from '@grafana/sql';
|
|
|
|
import { CheatSheet } from './CheatSheet';
|
|
import { PostgresQueryEditor } from './PostgresQueryEditor';
|
|
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(PostgresQueryEditor)
|
|
.setQueryEditorHelp(CheatSheet)
|
|
.setConfigEditor(PostgresConfigEditor);
|