mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 08:52:14 +08:00

* 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
11 lines
467 B
TypeScript
11 lines
467 B
TypeScript
import { QueryEditorProps } from '@grafana/data';
|
|
import { SqlQueryEditorLazy, SQLOptions, SQLQuery, QueryHeaderProps } from '@grafana/sql';
|
|
|
|
import { PostgresDatasource } from './datasource';
|
|
|
|
const queryHeaderProps: Pick<QueryHeaderProps, 'dialect'> = { dialect: 'postgres' };
|
|
|
|
export function PostgresQueryEditor(props: QueryEditorProps<PostgresDatasource, SQLQuery, SQLOptions>) {
|
|
return <SqlQueryEditorLazy {...props} queryHeaderProps={queryHeaderProps} />;
|
|
}
|