result

package
v3.95.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClosableResultSet added in v3.78.0

type ClosableResultSet interface {
	Set
	closer.Closer
}

type Result

type Result interface {
	closer.Closer

	// NextResultSet returns next result set
	NextResultSet(ctx context.Context) (Set, error)

	// ResultSets is experimental API for range iterators available
	// with Go version 1.23+
	ResultSets(ctx context.Context) xiter.Seq2[Set, error]
}

type Row

type Row interface {
	Scan(dst ...interface{}) error
	ScanNamed(dst ...scanner.NamedDestination) error
	ScanStruct(dst interface{}, opts ...scanner.ScanStructOption) error
}

type Set

type Set interface {
	Index() int
	Columns() []string
	ColumnTypes() []types.Type
	NextRow(ctx context.Context) (Row, error)

	// Rows is experimental API for range iterators available with Go version 1.23+
	Rows(ctx context.Context) xiter.Seq2[Row, error]
}

Jump to

Keyboard shortcuts

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