D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
share
/
grafana
/
public
/
app
/
plugins
/
datasource
/
postgres
/
Filename :
module.ts
back
Copy
import { DataSourcePlugin } from '@grafana/data'; import { SQLQuery } from 'app/features/plugins/sql/types'; 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);