set

package
v0.0.0-...-22804f9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2012 License: BSD-2-Clause-Views Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(db *mgo.Database, coll string) iface.Set

Types

type Set

type Set struct {
	// contains filtered or unexported fields
}

func (*Set) Count

func (s *Set) Count(q map[string]interface{}) (int, error)

func (*Set) Find

func (s *Set) Find(q map[string]interface{}) ([]interface{}, error)

func (*Set) FindOne

func (s *Set) FindOne(q map[string]interface{}) (map[string]interface{}, error)

func (*Set) Insert

func (s *Set) Insert(d map[string]interface{}) error

func (*Set) Limit

func (s *Set) Limit(i int)

func (*Set) Name

func (s *Set) Name() string

func (*Set) Remove

func (s *Set) Remove(q map[string]interface{}) error

func (*Set) RemoveAll

func (s *Set) RemoveAll(q map[string]interface{}) (int, error)

func (*Set) Skip

func (s *Set) Skip(i int)

func (*Set) Sort

func (s *Set) Sort(str ...string)

func (*Set) Update

func (s *Set) Update(q map[string]interface{}, upd_query map[string]interface{}) error

func (*Set) UpdateAll

func (s *Set) UpdateAll(q map[string]interface{}, upd_query map[string]interface{}) (int, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL