query

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteRows

func WriteRows(ctx context.Context, wr QueryWriter, rows *sql.Rows) error

Types

type CSVQueryWriter

type CSVQueryWriter struct {
	QueryWriter
	// contains filtered or unexported fields
}

func (*CSVQueryWriter) WriteRow

func (query_wr *CSVQueryWriter) WriteRow(ctx context.Context, row []string) error

type QueryWriter

type QueryWriter interface {
	WriteRow(context.Context, []string) error
}

func NewCSVQueryWriter

func NewCSVQueryWriter(ctx context.Context, wr io.Writer) (QueryWriter, error)

Jump to

Keyboard shortcuts

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