grafana/pkg/services/sqlstore/health.go

16 lines
273 B
Go

package sqlstore
import (
"github.com/grafana/grafana/pkg/bus"
"github.com/grafana/grafana/pkg/models"
)
func init() {
bus.AddHandler("sql", GetDBHealthQuery)
}
func GetDBHealthQuery(query *models.GetDBHealthQuery) error {
_, err := x.Exec("SELECT 1")
return err
}