writer

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyKey = errors.New("empty key")

ErrEmptyKey occurs when a record has an empty key and an operation is update or delete.

Functions

This section is empty.

Types

type Writer

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

Writer implements a writer logic for Mongo destination.

func NewWriter

func NewWriter(collection *mongo.Collection) *Writer

NewWriter 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