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