rowiterator

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: Apache-2.0 Imports: 21 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPGBaseSelectClause

func NewPGBaseSelectClause(table Table) *tree.Select

Types

type Iterator

type Iterator interface {
	Conn() dbconn.Conn
	HasNext(ctx context.Context) bool
	Error() error
	Peek(ctx context.Context) tree.Datums
	Next(ctx context.Context) tree.Datums
}

func NewPointLookupIterator

func NewPointLookupIterator(conn dbconn.Conn, table Table, pks []tree.Datums) Iterator

NewPointLookupIterator returns a row iterator does a point lookup.

func NewScanIterator

func NewScanIterator(
	ctx context.Context,
	conn dbconn.Conn,
	table ScanTable,
	rowBatchSize int,
	rateLimiter *rate.Limiter,
) (Iterator, error)

NewScanIterator returns a row iterator which scans the given table.

type ScanTable

type ScanTable struct {
	Table
	AOST        *time.Time
	StartPKVals []tree.Datum
	EndPKVals   []tree.Datum
}

type Table

type Table struct {
	dbtable.Name
	ColumnNames       []tree.Name
	ColumnOIDs        []oid.Oid
	PrimaryKeyColumns []tree.Name
}

Jump to

Keyboard shortcuts

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