Documentation ¶
Overview ¶
The package mongofixtures enables to load quickly and easily data into mongo db.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct { MongoSession *mgo.Session DatabaseName string ObjectIds map[string]bson.ObjectId }
A session holds the mongo session (based on labix.org/v2/mgo).
func (*Session) End ¶
func (l *Session) End()
Ends a session. Should be called with defer right after Begin :
session := Begin("localhost", "mydatabase") defer session.End()
func (*Session) ImportYamlFile ¶
func (*Session) ImportYamlString ¶
Click to show internal directories.
Click to hide internal directories.