Help us shape the future of Go! Take the 2026 Go Developer Survey

result

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StreamRows added in v1.8.0

func StreamRows(w io.Writer, rows *sql.Rows) error

StreamRows writes the same shape FromRows/json.Marshal would ({"columns":...,"data":...}), one row at a time instead of buffering into a Result first.

Types

type Result

type Result struct {
	Columns []*column.Column `yaml:"columns,omitempty" json:"columns,omitempty"`
	Data    [][]any          `yaml:"data,omitempty" json:"data,omitempty"`
}

func FromAvro

func FromAvro(uri string) (*Result, error)

func FromDynamo

func FromDynamo(items []map[string]types.AttributeValue) (*Result, error)

func FromJson

func FromJson(json map[string]any) (*Result, error)

func FromMessage

func FromMessage(message string) (*Result, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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