Documentation ¶
Index ¶
- type Client
- func (c *Client) Count(database string, collection string, filter interface{}, limit int64, ...) int64
- func (c *Client) DeleteMany(database string, collection string, filter map[string]any) error
- func (c *Client) DeleteOne(database string, collection string, filter map[string]any) error
- func (c *Client) DropCollection(database string, collection string) error
- func (c *Client) Find(database string, collection string, filter interface{}, limit int64, ...) []bson.M
- func (c *Client) FindOne(database string, collection string, filter map[string]any, skip int64) error
- func (c *Client) IncrementUpdateTime(database string, collection string, filter interface{}) int64
- func (c *Client) Insert(database string, collection string, doc map[string]any) interface{}
- func (c *Client) InsertMany(database string, collection string, docs []any) []interface{}
- func (c *Client) UpdateOne(database string, collection string, filter interface{}, data map[string]any) int64
- type Mongo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the Mongo client wrapper.
func (*Client) DeleteMany ¶
func (*Client) DropCollection ¶
func (*Client) IncrementUpdateTime ¶
func (*Client) InsertMany ¶
InsertMany returns []primitive.ObjectID
Click to show internal directories.
Click to hide internal directories.