writer

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: Apache-2.0 Imports: 8 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 opencdc.Record) error

Write writes a opencdc.Record into a Destination.

Jump to

Keyboard shortcuts

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