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) 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 SyncQueryResult ¶
type SyncQueryResult struct { Rows []interface{} ColTypes []*sql.ColumnType Duration time.Duration }
Click to show internal directories.
Click to hide internal directories.