package influxql
import "github.com/influxdata/flux/internal/influxql"
Index ¶
- func NewResultDecoder(a memory.Allocator) flux.MultiResultDecoder
- type Response
- type Result
- type Series
Functions ¶
func NewResultDecoder ¶
func NewResultDecoder(a memory.Allocator) flux.MultiResultDecoder
NewResultDecoder will construct a new result decoder for an influxql response.
Types ¶
type Response ¶
type Response struct { Results []Result `json:"results,omitempty"` Err string `json:"error,omitempty"` }
Response contains the collection of results for a query.
type Result ¶
type Result struct { // StatementID is just the statement's position in the query. It's used // to combine statement results if they're being buffered in memory. StatementID int `json:"statement_id"` Series []*Series `json:"series,omitempty"` Partial bool `json:"partial,omitempty"` Err string `json:"error,omitempty"` }
Result represents a resultset returned from a single statement. Rows represents a list of rows that can be sorted consistently by name/tag.
type Series ¶
type Series struct { Name string `json:"name,omitempty"` Tags map[string]string `json:"tags,omitempty"` Columns []string `json:"columns,omitempty"` Values [][]interface{} `json:"values,omitempty"` Partial bool `json:"partial,omitempty"` }
Series represents a series of rows that share the same group key returned from the execution of a statement.
Source Files ¶
- Version
- v0.196.1 (latest)
- Published
- Feb 19, 2025
- Platform
- linux/amd64
- Imports
- 10 packages
- Last checked
- 1 day ago –
Tools for package owners.