mongo_utils

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 11 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMongoDbCollection

func GetMongoDbCollection(dbmap utils.Map, collectionName string) (*mongo.Collection, context.Context, error)

GetMongoDbCollection - Collection return

Types

type BaseMongoService

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

func (*BaseMongoService) BeginTransaction

func (p *BaseMongoService) BeginTransaction()

func (*BaseMongoService) CloseDatabaseService

func (p *BaseMongoService) CloseDatabaseService()

func (*BaseMongoService) CommitTransaction

func (p *BaseMongoService) CommitTransaction()

func (*BaseMongoService) GetClient

func (p *BaseMongoService) GetClient() utils.Map

func (*BaseMongoService) OpenDatabaseService

func (p *BaseMongoService) OpenDatabaseService(props utils.Map) error

func (*BaseMongoService) RollbackTransaction

func (p *BaseMongoService) RollbackTransaction()

Jump to

Keyboard shortcuts

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