qmgo
qmgo copied to clipboard
expose original mongo.DB/Collection for senior usage
I want to check the Timeout property of a Index, and I cannot get mongo.Collection.Index() from outside. Please expose mongo.collection to coders, and expose all mongo Index operations (such as getAll, find, ...)
I think Qmgo should implement the missing features instead of your suggestions.
I think Qmgo should implement the missing features instead of your suggestions.
Some APIs in mongo-driver is good enough, there's no need to encapsule them. Exposing them is enough. Such as the CreateIndex, "+field1" is just similar to {"field": 1}, but lose the extensibility to use geometry, expire or else.
我也认为应该是实现这些功能, 而不是继承