The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
grafana/pkg/expr/sql/dummy_arm.go

36 lines
746 B

//go:build arm
package sql
import (
"context"
"fmt"
"time"
"github.com/grafana/grafana-plugin-sdk-go/data"
"github.com/grafana/grafana/pkg/infra/tracing"
)
type DB struct{}
// Stub out the QueryFrames method for ARM builds
// See github.com/dolthub/go-mysql-server/issues/2837
func (db *DB) QueryFrames(_ context.Context, _ tracing.Tracer, _, _ string, _ []*data.Frame, _ ...QueryOption) (*data.Frame, error) {
return nil, fmt.Errorf("sql expressions not supported in arm")
}
func WithTimeout(_ time.Duration) QueryOption {
return func(_ *QueryOptions) {
// no-op
}
}
func WithMaxOutputCells(_ int64) QueryOption {
return func(_ *QueryOptions) {
// no-op
}
}
type QueryOptions struct{}
type QueryOption func(*QueryOptions)