mirror of
https://github.com/grafana/grafana.git
synced 2024-11-28 03:34:15 -06:00
16 lines
273 B
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
|
|
}
|