mirror of
https://github.com/grafana/grafana.git
synced 2025-09-22 11:03:51 +08:00
detect postgres version for saved datasources
This commit is contained in:
@ -124,6 +124,10 @@ export class PostgresDatasource {
|
||||
.then(data => this.responseParser.parseMetricFindQueryResult(refId, data));
|
||||
}
|
||||
|
||||
getVersion() {
|
||||
return this.metricFindQuery("SELECT current_setting('server_version_num')::int/100", {});
|
||||
}
|
||||
|
||||
testDatasource() {
|
||||
return this.metricFindQuery('SELECT 1', {})
|
||||
.then(res => {
|
||||
|
Reference in New Issue
Block a user