mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 21:19:28 -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
|
|
}
|