2022-04-22 08:33:13 -05:00
|
|
|
import { DataSourcePlugin } from '@grafana/data';
|
2022-07-15 15:49:24 -05:00
|
|
|
import { SqlQueryEditor } from 'app/features/plugins/sql/components/QueryEditor';
|
|
|
|
import { SQLQuery } from 'app/features/plugins/sql/types';
|
2022-04-22 08:33:13 -05:00
|
|
|
|
2022-07-15 15:49:24 -05:00
|
|
|
import { MySqlDatasource } from './MySqlDatasource';
|
2022-07-14 06:29:08 -05:00
|
|
|
import { ConfigurationEditor } from './configuration/ConfigurationEditor';
|
2022-07-15 15:49:24 -05:00
|
|
|
import { MySQLOptions } from './types';
|
2017-03-29 13:43:20 -05:00
|
|
|
|
2022-07-15 15:49:24 -05:00
|
|
|
export const plugin = new DataSourcePlugin<MySqlDatasource, SQLQuery, MySQLOptions>(MySqlDatasource)
|
|
|
|
.setQueryEditor(SqlQueryEditor)
|
|
|
|
.setConfigEditor(ConfigurationEditor);
|