dec

package
v0.0.0-...-def43f6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StdinToMapsDefault IO[iter.
	Seq2[map[string]any, error]] = ConfigToStdinToMaps(
	as.InputConfigDefault,
)

Functions

func ConfigToOptions

func ConfigToOptions(cfg as.InputConfig) []ho.DecoderFunc

func ConfigToStdinToMaps

func ConfigToStdinToMaps(
	cfg as.InputConfig,
) IO[iter.Seq2[map[string]any, error]]

func ConvertType

func ConvertType(t ha.Type) as.PrimitiveType

func FieldsToNameToType

func FieldsToNameToType(fields []*ha.Field) func(string) as.PrimitiveType

func FieldsToNameToTypeMap

func FieldsToNameToTypeMap(fields []*ha.Field) map[string]as.PrimitiveType

func ReaderToMaps

func ReaderToMaps(
	rdr io.Reader,
	cfg as.InputConfig,
) iter.Seq2[map[string]any, error]

func ReaderToMapsHamba

func ReaderToMapsHamba(
	rdr io.Reader,
	opts ...ho.DecoderFunc,
) iter.Seq2[map[string]any, error]

func RecordToNameToType

func RecordToNameToType(r *ha.RecordSchema) func(string) as.PrimitiveType

func SchemaToNameToType

func SchemaToNameToType(schema string) func(string) as.PrimitiveType

func SchemaToNameToTypeHamba

func SchemaToNameToTypeHamba(s ha.Schema) func(string) as.PrimitiveType

func StdinToMaps

func StdinToMaps(
	cfg as.InputConfig,
) iter.Seq2[map[string]any, error]

Types

This section is empty.

Jump to

Keyboard shortcuts

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