athenaconv

package module
v0.0.0-...-2b9813e Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

README

athenaconv

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataMapper

type DataMapper interface {
	FromAthenaResultSetV2(ctx context.Context, input *types.ResultSet) ([]interface{}, error)
}

DataMapper provides abstraction to convert athena ResultSet object to arbitrary user-defined struct

func NewMapperFor

func NewMapperFor(modelType reflect.Type) (DataMapper, error)

NewMapperFor creates new DataMapper for given reflect.Type reflect.Type should be of struct value type, not pointer to struct.

Example:

mapper, err := athenaconv.NewMapperFor(reflect.TypeOf(MyStruct{}))

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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