Categorygithub.com/ioVN/database
modulepackage
0.0.0-20230630043320-433fd72654f0
Repository: https://github.com/iovn/database.git
Documentation: pkg.go.dev

# README

Database Package Modules


# Functions

MakeMongoIndex - make MongoIndex by keys.
MongoConnect : create a new connection to mongodb Example : db, err := MongoConnect("mongodb://localhost:27017/testDB", "testDB", 30*time.Second) if err != nil { log.Fatal(err) } if _, err := db.ListCollectionSpecifications(ctx, bson.M{}); err != nil { log.Fatal(err) }.
MongoInit : make collection with indexes.
No description provided by the author

# Structs

No description provided by the author