Documentation ¶
Index ¶
- type Client
- type CollectionHandel
- func (c *CollectionHandel) CountDocuments(filter interface{}, opts ...*options.CountOptions) (int64, error)
- func (c *CollectionHandel) DeleteMany(filter interface{}, opts ...*options.DeleteOptions) (*mongo.DeleteResult, error)
- func (c *CollectionHandel) DeleteOne(filter interface{}, opts ...*options.DeleteOptions) (*mongo.DeleteResult, error)
- func (c *CollectionHandel) Find(filter interface{}, opts ...*options.FindOptions) (*mongo.Cursor, error)
- func (c *CollectionHandel) FindOne(filter interface{}, opts ...*options.FindOneOptions) *mongo.SingleResult
- func (c *CollectionHandel) InsertMany(documents []interface{}, opts ...*options.InsertManyOptions) (*mongo.InsertManyResult, error)
- func (c *CollectionHandel) InsertOne(document interface{}, opts ...*options.InsertOneOptions) (*mongo.InsertOneResult, error)
- func (c *CollectionHandel) UpdateMany(filter interface{}, update interface{}, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error)
- func (c *CollectionHandel) UpdateOne(filter interface{}, update interface{}, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error)
- func (c *CollectionHandel) Upsert(data interface{}) (*mongo.UpdateResult, error)
- func (c *CollectionHandel) UpsertMany(data []interface{}) (*mongo.BulkWriteResult, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollectionHandel ¶
type CollectionHandel struct { *mongo.Collection // contains filtered or unexported fields }
func (*CollectionHandel) CountDocuments ¶
func (c *CollectionHandel) CountDocuments(filter interface{}, opts ...*options.CountOptions) (int64, error)
func (*CollectionHandel) DeleteMany ¶
func (c *CollectionHandel) DeleteMany(filter interface{}, opts ...*options.DeleteOptions) (*mongo.DeleteResult, error)
func (*CollectionHandel) DeleteOne ¶
func (c *CollectionHandel) DeleteOne(filter interface{}, opts ...*options.DeleteOptions) (*mongo.DeleteResult, error)
func (*CollectionHandel) Find ¶
func (c *CollectionHandel) Find(filter interface{}, opts ...*options.FindOptions) (*mongo.Cursor, error)
func (*CollectionHandel) FindOne ¶
func (c *CollectionHandel) FindOne(filter interface{}, opts ...*options.FindOneOptions) *mongo.SingleResult
func (*CollectionHandel) InsertMany ¶
func (c *CollectionHandel) InsertMany(documents []interface{}, opts ...*options.InsertManyOptions) (*mongo.InsertManyResult, error)
func (*CollectionHandel) InsertOne ¶
func (c *CollectionHandel) InsertOne(document interface{}, opts ...*options.InsertOneOptions) (*mongo.InsertOneResult, error)
func (*CollectionHandel) UpdateMany ¶
func (c *CollectionHandel) UpdateMany(filter interface{}, update interface{}, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error)
func (*CollectionHandel) UpdateOne ¶
func (c *CollectionHandel) UpdateOne(filter interface{}, update interface{}, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error)
func (*CollectionHandel) Upsert ¶
func (c *CollectionHandel) Upsert(data interface{}) (*mongo.UpdateResult, error)
func (*CollectionHandel) UpsertMany ¶
func (c *CollectionHandel) UpsertMany(data []interface{}) (*mongo.BulkWriteResult, error)
Click to show internal directories.
Click to hide internal directories.