mongo

package
v0.0.0-...-6f463b7 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2021 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func NewCursor

func NewCursor(cursor api.CursorAPI) database.Cursor

Types

type Cursor

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

func (Cursor) All

func (c Cursor) All(dest interface{}) error

func (Cursor) Close

func (c Cursor) Close() error

func (Cursor) Decode

func (c Cursor) Decode(dest interface{}) error

func (Cursor) Next

func (c Cursor) Next() bool

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, filter interface{}) (database.Cursor, error)

func (*Mongo) FindAll

func (d *Mongo) FindAll(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