types

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

type Column struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

type DescribeResult added in v1.13.0

type DescribeResult struct {
	ParameterTypes map[string]string `json:"parameter_types"`
	ResultColumns  []struct {
		Name string `json:"name"`
		Type string `json:"type"`
	} `json:"result_columns"`
}

DescribeResult represents the structure of a describe query result

type ErrorDetails

type ErrorDetails struct {
	Code        string   `json:"code"`
	Name        string   `json:"name"`
	Severity    string   `json:"severity"`
	Source      string   `json:"source"`
	Description string   `json:"description"`
	Resolution  string   `json:"resolution"`
	HelpLink    string   `json:"helpLink"`
	Location    Location `json:"location"`
}

type FireboltSettings

type FireboltSettings struct {
	ClientID           string
	ClientSecret       string
	Database           string
	EngineName         string
	AccountName        string
	Url                string
	NewVersion         bool
	DefaultQueryParams map[string]string
}

type JSONLinesRecord

type JSONLinesRecord struct {
	MessageType   RecordMessageType `json:"message_type"`
	ResultColumns *[]Column         `json:"result_columns,omitempty"`
	QueryID       *string           `json:"query_id,omitempty"`
	QueryLabel    *string           `json:"query_label,omitempty"`
	RequestID     *string           `json:"request_id,omitempty"`
	Data          *[][]interface{}  `json:"data,omitempty"`
	Errors        *[]ErrorDetails   `json:"errors,omitempty"`
	Statistics    *interface{}      `json:"statistics,omitempty"`
}

JSONLinesRecord is a struct that represents any of the possible JSONLines records

type Location

type Location struct {
	FailingLine int `json:"failingLine"`
	StartOffset int `json:"startOffset"`
	EndOffset   int `json:"endOffset"`
}

type QueryResponse

type QueryResponse struct {
	Query      interface{}     `json:"query"`
	Meta       []Column        `json:"meta"`
	Data       [][]interface{} `json:"data"`
	Rows       int             `json:"rows"`
	Errors     []ErrorDetails  `json:"errors"`
	Statistics interface{}     `json:"statistics"`
}

type RecordMessageType

type RecordMessageType string
const (
	MessageTypeStart   RecordMessageType = "START"
	MessageTypeData    RecordMessageType = "DATA"
	MessageTypeSuccess RecordMessageType = "FINISH_SUCCESSFULLY"
	MessageTypeError   RecordMessageType = "FINISH_WITH_ERRORS"
)

Jump to

Keyboard shortcuts

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