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{}))
Source Files ¶
Click to show internal directories.
Click to hide internal directories.