2022-04-22 21:33:13 +08:00
|
|
|
import { DataSourcePlugin } from '@grafana/data';
|
2022-07-16 04:49:24 +08:00
|
|
|
import { SqlQueryEditor } from 'app/features/plugins/sql/components/QueryEditor';
|
|
|
|
import { SQLQuery } from 'app/features/plugins/sql/types';
|
2022-04-22 21:33:13 +08:00
|
|
|
|
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)
|
|
|
|
.setConfigEditor(ConfigurationEditor);
|