19 lines
468 B
Go
19 lines
468 B
Go
package influxql
|
|
|
|
// Row represents a single row returned from the execution of a statement.
|
|
type Row 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"`
|
|
}
|
|
|
|
type Rows []*Row
|
|
|
|
func NewRow() *Row {
|
|
return &Row{
|
|
Tags: make(map[string]string),
|
|
}
|
|
}
|