mongoDummy

package
v0.0.0-...-80164ef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RepositoryDummy

type RepositoryDummy struct{}

func GetRepository

func GetRepository() *RepositoryDummy

func (*RepositoryDummy) Aggregate

func (m *RepositoryDummy) Aggregate(ctx context.Context, collection mongoModel.Collection, pipe mongo.Pipeline) (*mongo.Cursor, error)

func (*RepositoryDummy) CollectionIndexes

func (m *RepositoryDummy) CollectionIndexes(ctx context.Context, collection mongoModel.Collection) (map[string]*mongoModel.DBIndex, error)

func (*RepositoryDummy) Count

func (m *RepositoryDummy) Count(ctx context.Context, collection mongoModel.Collection, find interface{}, opt *options.CountOptions) (int64, error)

func (*RepositoryDummy) CreateIndex

func (m *RepositoryDummy) CreateIndex(ctx context.Context, index *mongoModel.DBIndex) (string, error)

func (*RepositoryDummy) CreateTextIndex

func (m *RepositoryDummy) CreateTextIndex(ctx context.Context, index *mongoModel.DBTextIndex) (string, error)

func (*RepositoryDummy) DeleteMany

func (m *RepositoryDummy) DeleteMany(ctx context.Context, collection mongoModel.Collection, filter interface{}, opt *options.DeleteOptions) (*mongo.DeleteResult, error)

func (*RepositoryDummy) DeleteOne

func (m *RepositoryDummy) DeleteOne(ctx context.Context, collection mongoModel.Collection, filter interface{}, opt *options.DeleteOptions) (*mongo.DeleteResult, error)

func (*RepositoryDummy) Find

func (m *RepositoryDummy) Find(ctx context.Context, collection mongoModel.Collection, results, find interface{}, opt *options.FindOptions) error

func (*RepositoryDummy) FindOne

func (m *RepositoryDummy) FindOne(ctx context.Context, collection mongoModel.Collection, resultModel, findQuery interface{}, findOptions *options.FindOneOptions) error

func (*RepositoryDummy) FindOneAndUpdate

func (m *RepositoryDummy) FindOneAndUpdate(ctx context.Context, collection mongoModel.Collection, resultModel, filter, updateData interface{}, opt *options.FindOneAndUpdateOptions) error

func (*RepositoryDummy) Insert

func (m *RepositoryDummy) Insert(ctx context.Context, collection mongoModel.Collection, data interface{}) (string, error)

func (*RepositoryDummy) InsertMany

func (m *RepositoryDummy) InsertMany(ctx context.Context, collection mongoModel.Collection, data []interface{}) ([]string, error)

func (*RepositoryDummy) ReplaceOne

func (m *RepositoryDummy) ReplaceOne(ctx context.Context, collection mongoModel.Collection, filter, data interface{}) error

func (*RepositoryDummy) TryCreateIndex

func (m *RepositoryDummy) TryCreateIndex(ctx context.Context, index *mongoModel.DBIndex) error

func (*RepositoryDummy) UpdateMany

func (m *RepositoryDummy) UpdateMany(
	ctx context.Context,
	collection mongoModel.Collection,
	filter interface{},
	data interface{},
	opts ...*options.UpdateOptions,
) (int64, error)

func (*RepositoryDummy) UpdateOne

func (m *RepositoryDummy) UpdateOne(ctx context.Context, collection mongoModel.Collection, filter, data interface{}, opts ...*options.UpdateOptions) (int64, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL