mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
13 lines
530 B
TypeScript
13 lines
530 B
TypeScript
import { DataSourcePlugin } from '@grafana/data';
|
|
import { SQLQuery, SqlQueryEditor } from '@grafana/sql';
|
|
|
|
import { CheatSheet } from './CheatSheet';
|
|
import { MySqlDatasource } from './MySqlDatasource';
|
|
import { ConfigurationEditor } from './configuration/ConfigurationEditor';
|
|
import { MySQLOptions } from './types';
|
|
|
|
export const plugin = new DataSourcePlugin<MySqlDatasource, SQLQuery, MySQLOptions>(MySqlDatasource)
|
|
.setQueryEditor(SqlQueryEditor)
|
|
.setQueryEditorHelp(CheatSheet)
|
|
.setConfigEditor(ConfigurationEditor);
|