grafana/pkg/services/sqlstore/health.go

16 lines
273 B
Go
Raw Normal View History

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
}