Documentation
¶
Index ¶
- func ApplyNative(sql string, params []Parameter, values map[string]any) (string, []any, error)
- func CheckIdent(label, value string) error
- func FilterValues(value any) []any
- func Quote(identName string) string
- func QuotePath(name string) string
- type Aggregation
- type Breakout
- type Compiled
- type DrillRequest
- type Expression
- type Filter
- type Join
- type JoinCondition
- type MappedValue
- type Order
- type Parameter
- type Query
- type Source
- type TableRef
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyNative ¶
func CheckIdent ¶
func FilterValues ¶
Types ¶
type Aggregation ¶
type DrillRequest ¶
type Expression ¶
type Join ¶
type Join struct {
Type string `json:"type"`
Alias string `json:"alias,omitempty"`
Table *TableRef `json:"table,omitempty"`
Conditions []JoinCondition `json:"conditions,omitempty"`
Implicit bool `json:"implicit,omitempty"`
}
type JoinCondition ¶
type MappedValue ¶
type Query ¶
type Query struct {
Version int `json:"version"`
Source Source `json:"source"`
Joins []Join `json:"joins,omitempty"`
Expressions []Expression `json:"expressions,omitempty"`
Fields []string `json:"fields,omitempty"`
Filters []Filter `json:"filters,omitempty"`
Aggregations []Aggregation `json:"aggregations,omitempty"`
GroupBy []Breakout `json:"group_by,omitempty"`
Having []Filter `json:"having,omitempty"`
OrderBy []Order `json:"order_by,omitempty"`
Limit int `json:"limit,omitempty"`
Parameters []Parameter `json:"parameters,omitempty"`
}
func ApplyMappedFilters ¶
ApplyMappedFilters adds dashboard filter values onto a card query.
Click to show internal directories.
Click to hide internal directories.