client

package
v0.0.0-...-308d61d Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: MPL-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

Types

type Client

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

func (*Client) Close

func (c *Client) Close(ctx context.Context) error

func (*Client) DeleteRecordsBatch

func (c *Client) DeleteRecordsBatch(ctx context.Context, messages message.WriteDeleteRecords) error

func (*Client) DeleteStaleBatch

func (c *Client) DeleteStaleBatch(ctx context.Context, messages message.WriteDeleteStales) error

DeleteStaleBatch deletes stale records from the destination table. It forms part of the writer.MixedBatchWriter interface.

func (*Client) InsertBatch

func (c *Client) InsertBatch(ctx context.Context, messages message.WriteInserts) error

InsertBatch inserts records into the destination table. It forms part of the writer.MixedBatchWriter interface.

func (*Client) MigrateTableBatch

func (c *Client) MigrateTableBatch(ctx context.Context, messages message.WriteMigrateTables) error

MigrateTableBatch migrates a table. It forms part of the writer.MixedBatchWriter interface.

func (*Client) PgToSchemaType

func (c *Client) PgToSchemaType(t string) arrow.DataType

func (*Client) Read

func (c *Client) Read(ctx context.Context, table *schema.Table, res chan<- arrow.Record) error

func (*Client) SchemaTypeToPg

func (c *Client) SchemaTypeToPg(t arrow.DataType) string

func (*Client) Write

func (c *Client) Write(ctx context.Context, res <-chan message.WriteMessage) error

Directories

Path Synopsis
gen

Jump to

Keyboard shortcuts

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