Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColumnDef ¶ added in v0.17.0
type ColumnDef struct {
Name string `json:"name"`
DataType string `json:"data_type"`
// contains filtered or unexported fields
}
ColumnDef is a struct used to store column information from query results
type Result ¶
type Result struct {
RowChan *chan *RowResult
Cols []*ColumnDef
TimingResult chan *TimingResult
}
func (*Result) IsExportSourceData ¶ added in v0.17.0
func (*Result) IsExportSourceData()
IsExportSourceData implements ExportSourceData
func (*Result) StreamError ¶
type ResultStreamer ¶
type ResultStreamer struct {
Results chan *Result
// contains filtered or unexported fields
}
func NewResultStreamer ¶
func NewResultStreamer() *ResultStreamer
func (*ResultStreamer) AllResultsRead ¶
func (q *ResultStreamer) AllResultsRead()
AllResultsRead is a signal that indicates the all results have been read from the stream
func (*ResultStreamer) StreamResult ¶
func (q *ResultStreamer) StreamResult(result *Result)
StreamResult streams result on the Results channel, then waits for them to be read
type SyncQueryResult ¶
type SyncQueryResult struct {
Rows []interface{}
Cols []*ColumnDef
TimingResult *TimingResult
}
type TimingMetadata ¶
type TimingResult ¶
type TimingResult struct {
Duration time.Duration
Metadata *TimingMetadata
}
Click to show internal directories.
Click to hide internal directories.