Versions in this module Expand all Collapse all v0 v0.2.0 Oct 27, 2026 v0.1.0 Oct 16, 2026 Changes in this version + func EnsureIndexes(ctx context.Context, collection *mongo.Collection, ...) + func IsUniqueConstraintError(err error, namedIndex *NamedIndex) bool + func New(ctx context.Context, uri string) (*mongo.Database, func()) + type NamedIndex struct + Collection *mongo.Collection + IndexModel mongo.IndexModel + Name string + type PSMongo struct + Client *mongo.Client + DB *mongo.Database + func (m *PSMongo) Disconnect(ctx context.Context)