Documentation
¶
Index ¶
- func New(db api.DatabaseAPI) database.Database
- type Mongo
- func (d *Mongo) ApplyFilter(filter filters.Filter, valueTypeMap filters.ValueTypeMap, ...) (interface{}, error)
- func (d *Mongo) DeleteOne(collectionName string, filter interface{}) error
- func (d *Mongo) Find(collectionName string, dest interface{}, filter interface{}) error
- func (d *Mongo) FindOne(collectionName string, dest, filter interface{}) error
- func (d *Mongo) InsertMany(collectionName string, records ...interface{}) error
- func (d *Mongo) InsertOne(collectionName string, record interface{}) error
- func (d *Mongo) ReplaceOne(collectionName string, record interface{}) error
- func (d *Mongo) UpdateOne(collectionName string, args ...interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.