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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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