mirror of
https://github.com/grafana/grafana.git
synced 2025-09-19 15:42:52 +08:00
16 lines
643 B
TypeScript
16 lines
643 B
TypeScript
import React from 'react';
|
|
|
|
import { QueryEditorProps } from '@grafana/data';
|
|
import { SqlQueryEditor } from 'app/features/plugins/sql/components/QueryEditor';
|
|
import { SQLOptions, SQLQuery } from 'app/features/plugins/sql/types';
|
|
|
|
import { QueryHeaderProps } from '../../../features/plugins/sql/components/QueryHeader';
|
|
|
|
import { PostgresDatasource } from './datasource';
|
|
|
|
const queryHeaderProps: Pick<QueryHeaderProps, 'dialect'> = { dialect: 'postgres' };
|
|
|
|
export function PostgresQueryEditor(props: QueryEditorProps<PostgresDatasource, SQLQuery, SQLOptions>) {
|
|
return <SqlQueryEditor {...props} queryHeaderProps={queryHeaderProps} />;
|
|
}
|