在Mongoose中复制数据库 [英] Copy Database in Mongoose
本文介绍了在Mongoose中复制数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在Mongoose中将数据库复制到另一个数据库?类似于以下命令行:
How can I copy a database to another in Mongoose? something like this command line:
db.copyDatabase('sourceDb','destinationDb')
?
谢谢..
推荐答案
猫鼬没有直接的可能性.最简单的方法似乎是并行使用 mongodb本机客户端.在此处.
There is no direct possibility in mongoose. The easiest way seems to be using the mongodb native client in parallel. Look here.
这篇关于在Mongoose中复制数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文