deleteopt

package
v0.0.0-...-ec4aec1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Delete

type Delete interface {
	ConvertDeleteOption() option.DeleteOptioner
	// contains filtered or unexported methods
}

Delete is options for the delete() function.

type DeleteBundle

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

DeleteBundle is a bundle of Delete options

func BundleDelete

func BundleDelete(opts ...Delete) *DeleteBundle

BundleDelete bundles Delete options.

func (*DeleteBundle) Collation

func (db *DeleteBundle) Collation(c *mongoopt.Collation) *DeleteBundle

Collation adds an option to specify a collation.

func (*DeleteBundle) ConvertDeleteOption

func (db *DeleteBundle) ConvertDeleteOption() option.DeleteOptioner

ConvertDeleteOption implements the Delete interface.

func (*DeleteBundle) String

func (db *DeleteBundle) String() string

String implements the Stringer interface

func (*DeleteBundle) Unbundle

func (db *DeleteBundle) Unbundle(deduplicate bool) ([]option.DeleteOptioner, error)

Unbundle transforms a bundle into a slice of options, optionally deduplicating

type OptCollation

type OptCollation option.OptCollation

OptCollation specifies a collation.

func Collation

func Collation(c *mongoopt.Collation) OptCollation

Collation specifies a collation.

func (OptCollation) ConvertDeleteOption

func (opt OptCollation) ConvertDeleteOption() option.DeleteOptioner

ConvertDeleteOption implements the Delete interface.

Jump to

Keyboard shortcuts

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