db

package
v0.0.0-...-0b358fe Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectToMongo

func ConnectToMongo(dbName string, connectURL string) *mongo.Database

ConnectToMongo helper to connect and setup mongo DB

func EnablePrePostImages

func EnablePrePostImages(mongoInstance *mongo.Database, colName string) error

EnablePrePostImages enables pre/post images for a collection for MongoDB >= 6

func RecordPreImages

func RecordPreImages(mongoInstance *mongo.Database, colName string) error

RecordPreImages enables pre/post images for a collection for MongoDB < 6

func Truncate

func Truncate(col *mongo.Collection, dropIndexes bool) error

Truncate collection records and indexes

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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