types

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrColumnNotFound = fmt.Errorf("column not found")
View Source
var ErrIndexOutOfRange = fmt.Errorf("index out of range")

Functions

This section is empty.

Types

type ColumnMetadata

type ColumnMetadata struct {
	ColumnName string
	ColumnType sql.ColumnType
	IsNullable bool
}

func (ColumnMetadata) Name

func (c ColumnMetadata) Name() string

func (ColumnMetadata) Nullable

func (c ColumnMetadata) Nullable() bool

func (ColumnMetadata) Type

func (c ColumnMetadata) Type() sql.ColumnType

type Page

type Page struct {
	ColumnTypes []sql.ColumnType
	Columns     [][]driver.Value
	Last        bool
}

type QueryID

type QueryID struct {
	MemberIDHigh int64
	MemberIDLow  int64
	LocalIDHigh  int64
	LocalIDLow   int64
}

func NewQueryIDFromUUID

func NewQueryIDFromUUID(uuid types.UUID) QueryID

type RowMetadata

type RowMetadata struct {
	// contains filtered or unexported fields
}

RowMetadata represents SQL row metadata.

func NewRowMetadata

func NewRowMetadata(columns []sql.ColumnMetadata) RowMetadata

func (RowMetadata) ColumnCount

func (r RowMetadata) ColumnCount() int

func (RowMetadata) Columns

func (r RowMetadata) Columns() []sql.ColumnMetadata

func (RowMetadata) FindColumn

func (r RowMetadata) FindColumn(columnName string) (int, error)

func (RowMetadata) GetColumn

func (r RowMetadata) GetColumn(index int) (sql.ColumnMetadata, error)

Jump to

Keyboard shortcuts

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