2022-04-22 21:33:13 +08:00
|
|
|
import { DataSourcePlugin } from '@grafana/data';
|
2024-01-26 18:38:29 +08:00
|
|
|
import { SQLQuery, SqlQueryEditor } from '@grafana/sql';
|
2022-04-22 21:33:13 +08:00
|
|
|
|
2023-03-30 16:19:30 +08:00
|
|
|
import { CheatSheet } from './CheatSheet';
|
2022-07-16 04:49:24 +08:00
|
|
|
import { MySqlDatasource } from './MySqlDatasource';
|
2022-07-14 19:29:08 +08:00
|
|
|
import { ConfigurationEditor } from './configuration/ConfigurationEditor';
|
2022-07-16 04:49:24 +08:00
|
|
|
import { MySQLOptions } from './types';
|
2017-03-30 02:43:20 +08:00
|
|
|
|
2022-07-16 04:49:24 +08:00
|
|
|
export const plugin = new DataSourcePlugin<MySqlDatasource, SQLQuery, MySQLOptions>(MySqlDatasource)
|
|
|
|
.setQueryEditor(SqlQueryEditor)
|
2023-03-30 16:19:30 +08:00
|
|
|
.setQueryEditorHelp(CheatSheet)
|
2022-07-16 04:49:24 +08:00
|
|
|
.setConfigEditor(ConfigurationEditor);
|