writer

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrEmptyPayload occurs when there's no payload to insert.
	ErrEmptyPayload = errors.New("payload is empty")
)

Functions

This section is empty.

Types

type Params

type Params struct {
	Repo      *repository.Oracle
	Table     string
	KeyColumn string
}

Params is an incoming params for the New function.

type Writer

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

Writer implements a writer logic for Oracle destination.

func New

func New(ctx context.Context, params Params) (*Writer, error)

New creates new instance of the Writer.

func (*Writer) Write

func (w *Writer) Write(ctx context.Context, record sdk.Record) error

Write writes a sdk.Record into a Destination.

Jump to

Keyboard shortcuts

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