Pymongo运行mongodb shell命令getusers()
我正在使用pymongo。我需要在pymongo中运行db.getusers()。是否有任何文档可以这样做。我只看到了Pymongo命令。似乎不会使用pymongo运行蒙古命令并检索数据,
如果有人知道,请张贴我
I am using pymongo . I need to run db.getUsers() in pymongo. Is there any documentations to do so. I only saw the pymongo commands . There doesn't seems to run mongoshell commands using pymongo and retrieve data
If any one know please post me
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是用于将pymongo与mongodb连接并进行基本操作的锅炉板代码
This is the Boiler Plate code for connecting Pymongo with Mongodb and doing basic operation
现在,我将用户和凭据变成了以下内容,
并且数据具有以下内容,
下一个问题是如何将这些数据还原到System.user。
Now I got the user and credentials into a dict as follows,
And the data have the following,
The next question is how can I restore this data into System.users