client

package
v0.0.0-...-ccb566b Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(ctx context.Context, logger zerolog.Logger, spec []byte, opts plugin.NewClientOptions) (plugin.Client, error)

func GetValue

func GetValue(arr arrow.Array, i int) (any, error)

func Identifier

func Identifier(name string) string

func SQLType

func SQLType(t arrow.DataType) string

func SchemaType

func SchemaType(dataType string, columnType string) arrow.DataType

func TransformRecord

func TransformRecord(record arrow.Record) ([][]any, error)

used in the tests to insert the arrow.Record

Types

type Client

type Client struct {
	plugin.UnimplementedDestination
	// contains filtered or unexported fields
}

func (Client) Close

func (c Client) Close(_ context.Context) error

func (*Client) ID

func (*Client) ID() string

func (Client) Sync

func (c Client) Sync(ctx context.Context, options plugin.SyncOptions, res chan<- message.SyncMessage) error

func (Client) Tables

func (c Client) Tables(ctx context.Context, opts plugin.TableOptions) (schema.Tables, error)

type Spec

type Spec struct {
	ConnectionString string `json:"connection_string,omitempty"`
}

func (*Spec) SetDefaults

func (*Spec) SetDefaults()

func (*Spec) Validate

func (s *Spec) Validate() error

Jump to

Keyboard shortcuts

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