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 ¶
BypassDocumentValidation 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 ¶
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.