mirror of
https://github.com/grafana/grafana.git
synced 2025-02-10 15:45:43 -06:00
sql: refactor code, eliminate from-core-grafana import (#77810)
This commit is contained in:
parent
88f35fc85f
commit
4a6b209d64
@ -7,7 +7,7 @@ import (
|
|||||||
"github.com/google/go-cmp/cmp"
|
"github.com/google/go-cmp/cmp"
|
||||||
"github.com/grafana/grafana-plugin-sdk-go/backend"
|
"github.com/grafana/grafana-plugin-sdk-go/backend"
|
||||||
"github.com/grafana/grafana-plugin-sdk-go/data"
|
"github.com/grafana/grafana-plugin-sdk-go/data"
|
||||||
"github.com/grafana/grafana/pkg/util"
|
"github.com/grafana/grafana/pkg/tsdb/sqleng/util"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ import (
|
|||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"github.com/grafana/grafana/pkg/infra/log"
|
"github.com/grafana/grafana/pkg/infra/log"
|
||||||
"github.com/grafana/grafana/pkg/util"
|
"github.com/grafana/grafana/pkg/tsdb/sqleng/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSQLEngine(t *testing.T) {
|
func TestSQLEngine(t *testing.T) {
|
||||||
|
3
pkg/tsdb/sqleng/util/util.go
Normal file
3
pkg/tsdb/sqleng/util/util.go
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
package util
|
||||||
|
|
||||||
|
func Pointer[T any](v T) *T { return &v }
|
Loading…
Reference in New Issue
Block a user