2025-04-01 10:38:02 +09:00

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} />;
}