MCPcopy Create free account
hub / github.com/coderminer/restful / Insert

Function Insert

models/db.go:38–42  ·  view source on GitHub ↗
(db, collection string, docs ...interface{})

Source from the content-addressed store, hash-verified

36}
37
38func Insert(db, collection string, docs ...interface{}) error {
39 ms, c := connect(db, collection)
40 defer ms.Close()
41 return c.Insert(docs...)
42}
43
44func IsExist(db, collection string, query interface{}) bool {
45 ms, c := connect(db, collection)

Callers 1

InsertMovieMethod · 0.85

Calls 1

connectFunction · 0.85

Tested by

no test coverage detected