Files
Jack Westbrook 329a4605fb SQL Datasources: Make QueryEditor lazy loaded (#96179)
* feat(grafana-sql): make sqlqueryeditor lazy loaded

* feat(sql-datasources): switch out query editor for lazy query editor

* build(postgresql): put tsconfig jsx prop inside compilerOptions

* chore(sql-queryeditor): move lazy import out of component
2024-11-15 12:28:01 +01:00

13 lines
538 B
TypeScript

import { DataSourcePlugin } from '@grafana/data';
import { SQLQuery, SqlQueryEditorLazy } 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(SqlQueryEditorLazy)
.setQueryEditorHelp(CheatSheet)
.setConfigEditor(ConfigurationEditor);