Versions in this module Expand all Collapse all v3 v3.0.0 Jun 10, 2022 Changes in this version + var Client *mongo.Client + var Collection *mongo.Collection + var Database *mongo.Database + func AllItems(collection *mongo.Collection) ([]bson.M, error) + func CheckConnection(client *mongo.Client) bool + func CreateEntries(collection *mongo.Collection, docs []interface{}) ([]interface{}, error) + func CreateEntry(collection *mongo.Collection, doc bson.D) (interface{}, error) + func FindManyItems(collection *mongo.Collection, filter interface{}) ([]bson.M, error) + func RemoveMany(collection *mongo.Collection, filter interface{}) (*mongo.DeleteResult, error) + func RemoveOne(collection *mongo.Collection, filter interface{}) (*mongo.DeleteResult, error) + func SingleItem(collection *mongo.Collection, filter bson.D) (bson.D, error) + type DBCreate interface + CreateEntries func(dbs *mongo.Database, collection string, docs []interface{}) ([]interface{}, error) + CreateEntry func(dbs *mongo.Database, collection string, doc bson.D) (interface{}, error) + type DBInteract interface + AllItems func(collection *mongo.Collection) ([]bson.M, error) + FindManyItems func(collection *mongo.Collection, filter interface{}) ([]bson.M, error) + RemoveMany func(collection *mongo.Collection, filter interface{}) (*mongo.DeleteResult, error) + RemoveOne func(collection *mongo.Collection, filter interface{}) (*mongo.DeleteResult, error) + SingleItem func(collection *mongo.Collection, filter bson.D) (bson.D, error) Other modules containing this package github.com/pienaahj/mongoconnect