mongo

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteDocuments

func DeleteDocuments(client *mongo.Client, dbName, collName string, docs map[string]Document) deleteDocumentsRes

func DeleteIndexes

func DeleteIndexes(client *mongo.Client, dbName, collName string, idxs map[string]mongo.IndexModel) deleteIndexesRes

func DeleteViews

func DeleteViews(client *mongo.Client, dbName string, views map[string]primitive.D) viewsResult

func InsertDocuments

func InsertDocuments(client *mongo.Client, dbName, collName string, docs map[string]Document) insertDocumentsRes

func InsertIndexes

func InsertIndexes(client *mongo.Client, dbName, collName string, idxs map[string]mongo.IndexModel) insertIndexesRes

func InsertViews

func InsertViews(client *mongo.Client, dbName string, views map[string]primitive.D) viewsResult

func ParseViewToBsonD

func ParseViewToBsonD(name string, view []byte) (primitive.D, error)

func UpdateDocuments

func UpdateDocuments(client *mongo.Client, dbName, collName string, docs map[string]Document) modifyDocumentsRes

func UpdateIndexes

func UpdateIndexes(client *mongo.Client, dbName, collName string, idxs map[string]mongo.IndexModel) updateIndexesRes

func UpdateViews

func UpdateViews(client *mongo.Client, dbName string, views map[string]primitive.D) viewsResult

Types

type Document

type Document map[string]interface{}

Jump to

Keyboard shortcuts

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