druidsqldriver

package
v0.89.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithQueryConfig added in v0.55.3

func WithQueryConfig(ctx context.Context, cfg *QueryConfig) context.Context

Types

type DruidParameter

type DruidParameter struct {
	Type  string `json:"type"`
	Value any    `json:"value"`
}

type DruidRequest

type DruidRequest struct {
	Query          string           `json:"query"`
	Header         bool             `json:"header"`
	SQLTypesHeader bool             `json:"sqlTypesHeader"`
	ResultFormat   string           `json:"resultFormat"`
	Parameters     []DruidParameter `json:"parameters"`
	Context        map[string]any   `json:"context"`
}

type QueryConfig added in v0.55.3

type QueryConfig struct {
	UseCache      *bool
	PopulateCache *bool
	Priority      int
	// Attributes are passed through to the Druid query context as-is,
	// e.g. for attributing queries to callers in Druid's query logs.
	// Empty keys and keys that collide with the driver's own context keys are skipped.
	Attributes map[string]string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL