sql: refactor code, eliminate from-core-grafana import (#77810)

This commit is contained in:
Gábor Farkas 2023-11-08 14:08:20 +01:00 committed by GitHub
parent 88f35fc85f
commit 4a6b209d64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

View File

@ -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"
) )

View File

@ -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) {

View File

@ -0,0 +1,3 @@
package util
func Pointer[T any](v T) *T { return &v }