Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoDocuments = errors.New("no documents in result")
Functions ¶
func MewMongoClient ¶
Types ¶
type Mapper ¶
type Mapper interface { Aggregate(ctx context.Context, pipeline mongo.Pipeline, results any, opts ...*options.AggregateOptions) (any, error) Count(ctx context.Context, filter any, opts ...*options.CountOptions) (int64, error) Find(ctx context.Context, filter any, results any, opts ...*options.FindOptions) (any, error) FindOne(ctx context.Context, filter any, result any, opts ...*options.FindOneOptions) (any, error) FindOneAndUpdate(ctx context.Context, filter any, update any, result any, opts ...*options.FindOneAndUpdateOptions) (any, error) InsertOne(ctx context.Context, document any, opts ...*options.InsertOneOptions) (*mongo.InsertOneResult, error) UpdateOne(ctx context.Context, filter any, update any, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error) GetNextSequence(ctx context.Context, name string) (*Sequence, error) }
Click to show internal directories.
Click to hide internal directories.