Documentation
¶
Index ¶
- type Database
- func (db Database) Delete(table string, keys map[string]interface{}) error
- func (db Database) Get(t string, keys map[string]interface{}, out interface{}) error
- func (db Database) List(table string, keys map[string]interface{}, n int64, out interface{}) error
- func (db Database) Put(obj interface{}, table string) error
- func (db Database) RawUpdate(table string, keys, up map[string]interface{}) error
- func (db Database) Replace(table string, keys map[string]interface{}, obj interface{}) error
- func (db Database) Update(table string, keys, obj map[string]interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func (Database) List ¶
List retrieves all objects from a collection The n parameter is the limit of objects returned, use 0 for no limit And the out parameter must be a pointer to a slice
func (Database) RawUpdate ¶
RawUpdate changes fields of one object matching the keys Here the update if any MongoDB update expression
Click to show internal directories.
Click to hide internal directories.