mongodb

package
v0.0.0-...-18de436 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoDatabase

type MongoDatabase struct {
	BatchOps batch_ops.BatchOps
	// contains filtered or unexported fields
}

func NewMongoDBInstance

func NewMongoDBInstance(log logger.Logger, config interface{}) (*MongoDatabase, error)

func (*MongoDatabase) Create

func (rd *MongoDatabase) Create(data interface{}) (interface{}, error)

func (*MongoDatabase) Delete

func (rd *MongoDatabase) Delete(data interface{}) (interface{}, error)

func (*MongoDatabase) Exists

func (md *MongoDatabase) Exists(data interface{}) bool

func (*MongoDatabase) Get

func (rd *MongoDatabase) Get(data interface{}) (interface{}, error)

func (*MongoDatabase) Update

func (rd *MongoDatabase) Update(data interface{}) (interface{}, error)

Jump to

Keyboard shortcuts

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