results

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

*

This package is for all interfaces that are imported in multiple packages in the
code base

This package MUST never import any other `steampipe` package

*

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryResult

type QueryResult struct {
	RowChan *chan *RowResult

	ColTypes []*sql.ColumnType
	Duration chan time.Duration
}

func NewQueryResult

func NewQueryResult(colTypes []*sql.ColumnType) *QueryResult

func (QueryResult) Close

func (r QueryResult) Close()

close the channels

func (QueryResult) StreamError

func (r QueryResult) StreamError(err error)

func (QueryResult) StreamRow

func (r QueryResult) StreamRow(rowResult []interface{})

type ResultStreamer

type ResultStreamer struct {
	Results chan *QueryResult
	// contains filtered or unexported fields
}

func NewResultStreamer

func NewResultStreamer() *ResultStreamer

func (*ResultStreamer) Close

func (q *ResultStreamer) Close()

func (*ResultStreamer) Done

func (q *ResultStreamer) Done()

Done :: signals that the next QueryResult has been processed

func (*ResultStreamer) StreamResult

func (q *ResultStreamer) StreamResult(result *QueryResult)

func (*ResultStreamer) StreamSingleResult

func (q *ResultStreamer) StreamSingleResult(result *QueryResult, onComplete func())

func (*ResultStreamer) Wait

func (q *ResultStreamer) Wait()

Wait :: waits for the next QueryResult to get processed

type RowResult

type RowResult struct {
	Data  []interface{}
	Error error
}

type SyncQueryResult

type SyncQueryResult struct {
	Rows     []interface{}
	ColTypes []*sql.ColumnType
	Duration time.Duration
}

Jump to

Keyboard shortcuts

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