transformer

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transformer

type Transformer struct {
	// contains filtered or unexported fields
}

Transformer This is mainly to encapsulate some of the data format conversion logic

func NewTransformer

func NewTransformer(clientMeta *schema.ClientMeta, typeConvertor schema.ColumnValueConvertor, errorHandlerMeta *schema.ErrorsHandlerMeta) *Transformer

func (*Transformer) TransformResult

func (x *Transformer) TransformResult(ctx context.Context, client any, task *schema.DataSourcePullTask, result any) (*schema.Row, *schema.Diagnostics)

TransformResult Convert the results obtained from the DataSource to the data in the table. Convert only one result ata time. Batch conversion is not supported

Jump to

Keyboard shortcuts

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