mgodriver

package
v0.0.0-...-ca24144 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2014 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoDb

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

func NewMongoDb

func NewMongoDb(db *mgo.Database) (mdb *MongoDb)

func (*MongoDb) Create

func (m *MongoDb) Create(col string, docs ...interface{}) (err error)

func (*MongoDb) Remove

func (m *MongoDb) Remove(col string, idField string, ids ...interface{}) (err error)

Note: If the id field is "Id", MongoDb will convert it into "_id", which is the real id of documents in mongodb. If this conversion doesn't fit in your cases, feel free to create you own mongo db driver.

Jump to

Keyboard shortcuts

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