Versions in this module Expand all Collapse all v0 v0.0.2 Mar 30, 2025 v0.0.1 Mar 28, 2025 Changes in this version + type Mongodb struct + Client *mongo.Client + ClientOptions *options.ClientOptions + Database *mongo.Database + Options *Options + func New(options map[string]any) (mongodbS *Mongodb, err error) + func (mongodbS *Mongodb) C(col string) *mongo.Collection + func (mongodbS *Mongodb) GetCol(col string) *mongo.Collection + func (mongodbS *Mongodb) Ping() error + func (mongodbS *Mongodb) SetConfig(opts map[string]any) (err error) + func (mongodbS *Mongodb) SetDb(db string) + type Options struct + Db string + Limit int + MaxPoolSize int + ReadPrefMode readpref.Mode + Timeout int + Uri string + func (o *Options) String() (data string)