rows

package
v0.0.0-...-b19370d Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Row

type Row struct {
	Fields []fields.Field
	Values []any
}

func CombineRows

func CombineRows(rows ...Row) Row

func NewRow

func NewRow(fields []fields.Field, values []any) (_ Row, err error)

func (Row) DropInternalFields

func (r Row) DropInternalFields() Row

func (Row) IsolateTID

func (r Row) IsolateTID(relationName string) (Row, error)

func (Row) TID

func (r Row) TID() (tid int64, _ error)

type Rows

type Rows struct {
	Fields []fields.Field
	Values [][]any
}

func NewRows

func NewRows(fields []fields.Field) (Rows, error)

func NewRowsWithValues

func NewRowsWithValues(fields []fields.Field, values [][]any) (_ Rows, err error)

func (Rows) AddValues

func (rows Rows) AddValues(values []any) (Rows, error)

func (Rows) Row

func (rows Rows) Row(index int) Row

func (Rows) Size

func (rows Rows) Size() int

Jump to

Keyboard shortcuts

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