mirror of
https://github.com/grafana/grafana.git
synced 2024-11-23 09:26:43 -06:00
d3ae8939af
* Chore: Remove x from health * Chore: Remove x from dashboard and user * Chore: Remove x from alert notification * Chore: Remove x from stats * Fix: Update func signature in stats test * Refactor: Remove x from GetDashboardTags * Chore: Remove x from dashboard * Chore: Remove x from Stats * Fix: Update refs of HasAdminPermissionInFolders * Fix: Adjust funcs in tests to be sqlStore methods * Fix: Fix database folder test sqlstore methods
17 lines
383 B
Go
17 lines
383 B
Go
package sqlstore
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/grafana/grafana/pkg/models"
|
|
)
|
|
|
|
// GetDBHealthQuery executes a query to check
|
|
// the availability of the database.
|
|
func (ss *SQLStore) GetDBHealthQuery(ctx context.Context, query *models.GetDBHealthQuery) error {
|
|
return ss.WithDbSession(ctx, func(session *DBSession) error {
|
|
_, err := session.Exec("SELECT 1")
|
|
return err
|
|
})
|
|
}
|