mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 04:02:30 +08:00
37 lines
783 B
TypeScript
37 lines
783 B
TypeScript
///<reference path="../../../headers/common.d.ts" />
|
|
|
|
import angular from 'angular';
|
|
import {MysqlDatasource} from './datasource';
|
|
import {QueryCtrl} from 'app/plugins/sdk';
|
|
|
|
class MysqlQueryCtrl extends QueryCtrl {
|
|
static templateUrl = 'partials/query.editor.html';
|
|
|
|
resultFormats: any;
|
|
target: any;
|
|
|
|
constructor($scope, $injector) {
|
|
super($scope, $injector);
|
|
|
|
this.target.resultFormat = 'time_series';
|
|
this.target.alias = "";
|
|
this.resultFormats = [
|
|
{text: 'Time series', value: 'time_series'},
|
|
{text: 'Table', value: 'table'},
|
|
];
|
|
|
|
}
|
|
}
|
|
|
|
class MysqlConfigCtrl {
|
|
static templateUrl = 'partials/config.html';
|
|
}
|
|
|
|
export {
|
|
MysqlDatasource,
|
|
MysqlDatasource as Datasource,
|
|
MysqlQueryCtrl as QueryCtrl,
|
|
MysqlConfigCtrl as ConfigCtrl,
|
|
};
|
|
|