Documentation
¶
Index ¶
- func AddConditionToQuery(condition []string, p bson.M) bson.M
- func BuildQuery(query models.Query) bson.M
- func GetAll(collection string) []map[string]string
- func Hash(s string) string
- func Init(dbName, connectionstring string)
- func Insert(collection string, object interface{}) bool
- func RemoveAll(collection string) bool
- func SetCollection(collection string) *mgo.Collection
- func Update(collection string, selector interface{}, object interface{}) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddConditionToQuery ¶
AddConditionToQuery adds each condition to the map
func SetCollection ¶
func SetCollection(collection string) *mgo.Collection
SetCollection sets the collection
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.