bulkwriteopt

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BulkWrite

type BulkWrite interface {
	// contains filtered or unexported methods
}

BulkWrite represents all passable params for the bulkWrite() function.

func BypassDocumentValidation

func BypassDocumentValidation(b bool) BulkWrite

BypassDocumentValidation allows the write to opt-out of document-level validation.

func Ordered

func Ordered(b bool) BulkWrite

Ordered allows the write to opt-out of document-level validation.

type BulkWriteBundle

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

BulkWriteBundle is a bundle of BulkWrite options.

func BundleBulkWrite

func BundleBulkWrite(opts ...BulkWrite) *BulkWriteBundle

BundleBulkWrite bundles BulkWrite options

func (*BulkWriteBundle) BypassDocumentValidation

func (bwb *BulkWriteBundle) BypassDocumentValidation(b bool) *BulkWriteBundle

BypassDocumentValidation adds an option to allow the write to opt-out of document-level validation.

func (*BulkWriteBundle) Ordered

func (bwb *BulkWriteBundle) Ordered(b bool) *BulkWriteBundle

Ordered specifies whether later writes should be attempted if an earlier one fails. If false, when a write fails, the operation attempts later writes.

func (*BulkWriteBundle) String

func (bwb *BulkWriteBundle) String() string

String implements the Stringer interface.

func (*BulkWriteBundle) Unbundle

func (bwb *BulkWriteBundle) Unbundle() (*BulkWriteOptions, *session.Client, error)

Unbundle transforms a bundle into a BulkWriteOptions object.

type BulkWriteOptions

type BulkWriteOptions struct {
	Ordered                     bool
	OrderedSet                  bool
	BypassDocumentValidation    bool
	BypassDocumentValidationSet bool
}

BulkWriteOptions represents all the bulk write options.

type BulkWriteSession

type BulkWriteSession interface {
	BulkWrite
	ConvertBulkWriteSession() *session.Client
}

BulkWriteSession is the session for the bulkWrite() function.

type BulkWriteSessionOpt

type BulkWriteSessionOpt struct{}

BulkWriteSessionOpt is an aggregate session option.

func (BulkWriteSessionOpt) ConvertBulkWriteSession

func (BulkWriteSessionOpt) ConvertBulkWriteSession() *session.Client

ConvertBulkWriteSession implements the BulkWriteSession interface.

Jump to

Keyboard shortcuts

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