db.getMongo()

Returns: 当前数据库连接。

Shell 启动时,db.getMongo()运行。使用此命令来测试mongo shell 与正确的数据库实例的连接。

首页