queryresult

package
v0.5.0-rc.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	RowChan  *chan *RowResult
	ColTypes []*sql.ColumnType
	Duration chan time.Duration
}

func NewQueryResult

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

func (Result) Close

func (r Result) Close()

Close closes the row channel

func (Result) StreamError

func (r Result) StreamError(err error)

func (Result) StreamRow

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

type ResultStreamer

type ResultStreamer struct {
	Results chan *Result
	// 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 Result has been processed

func (*ResultStreamer) StreamResult

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

func (*ResultStreamer) StreamSingleResult

func (q *ResultStreamer) StreamSingleResult(result *Result)

func (*ResultStreamer) Wait

func (q *ResultStreamer) Wait()

Wait :: waits for the next Result 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