mongo

package
v0.0.0-...-55670f9 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

Types

type Mongo

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

func (*Mongo) ApplyFilter

func (d *Mongo) ApplyFilter(filter filters.Filter, valueTypeMap filters.ValueTypeMap, validator filters.Validator) (interface{}, error)

func (*Mongo) DeleteOne

func (d *Mongo) DeleteOne(collectionName string, filter interface{}) error

func (*Mongo) Find

func (d *Mongo) Find(collectionName string, dest interface{}, filter interface{}) error

func (*Mongo) FindOne

func (d *Mongo) FindOne(collectionName string, dest, filter interface{}) error

func (*Mongo) InsertMany

func (d *Mongo) InsertMany(collectionName string, records ...interface{}) error

func (*Mongo) InsertOne

func (d *Mongo) InsertOne(collectionName string, record interface{}) error

func (*Mongo) ReplaceOne

func (d *Mongo) ReplaceOne(collectionName string, record interface{}) error

func (*Mongo) UpdateOne

func (d *Mongo) UpdateOne(collectionName string, args ...interface{}) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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