Documentation ¶
Index ¶
- type Collection
- func (collection Collection) Find(query map[string]interface{}, res interface{}) (err error)
- func (collection Collection) Insert(data interface{}) (id string, err error)
- func (collection Collection) Replace(query map[string]interface{}, change interface{}) (err error)
- func (collection Collection) Update(query map[string]interface{}, change map[string]interface{}) (err error)
- type Connection
- 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) Find ¶
func (collection Collection) Find(query map[string]interface{}, res interface{}) (err error)
func (Collection) Insert ¶
func (collection Collection) Insert(data interface{}) (id string, err error)
func (Collection) Replace ¶
func (collection Collection) Replace(query map[string]interface{}, change interface{}) (err error)
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func (*Connection) Close ¶
func (conn *Connection) Close()
func (*Connection) Database ¶
func (conn *Connection) Database(db string) *Database
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func (*Database) Collection ¶
func (db *Database) Collection(col string) *Collection
Click to show internal directories.
Click to hide internal directories.