Documentation ¶
Index ¶
- type Collection
- func (c *Collection) DeleteMany(ctx context.Context, filter interface{}) error
- func (c *Collection) DeleteOne(ctx context.Context, filter interface{}) error
- func (c *Collection) FindOne(ctx context.Context, filter interface{}) (storage.Decoder, error)
- func (c *Collection) InsertOne(ctx context.Context, doc interface{}) error
- func (c *Collection) UpdateOne(ctx context.Context, filter interface{}, doc interface{}) error
- type Database
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection struct {
// contains filtered or unexported fields
}
func (*Collection) DeleteMany ¶
func (c *Collection) DeleteMany(ctx context.Context, filter interface{}) error
func (*Collection) DeleteOne ¶
func (c *Collection) DeleteOne(ctx context.Context, filter interface{}) error
Click to show internal directories.
Click to hide internal directories.