mongodb

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

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

func (*Collection) DeleteMany

func (c *Collection) DeleteMany(ctx context.Context, filter interface{}) error

func (*Collection) DeleteOne

func (c *Collection) DeleteOne(ctx context.Context, filter interface{}) error

func (*Collection) FindOne

func (c *Collection) FindOne(ctx context.Context, filter interface{}, dst interface{}) error

func (*Collection) InsertOne

func (c *Collection) InsertOne(ctx context.Context, doc interface{}) error

func (*Collection) UpdateOne

func (c *Collection) UpdateOne(ctx context.Context, filter interface{}, doc interface{}) error

type Database

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

func New

func New(db *mongo.Database) *Database

func (*Database) Collection

func (d *Database) Collection(collName string) storage.Collection

Jump to

Keyboard shortcuts

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