MongoDB Shell:从控制台读取一行 [英] MongoDB shell: reading a line from the console

查看:113
本文介绍了MongoDB Shell:从控制台读取一行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法从Mongo Shell中读取一行? readline()未定义,system.stdin也未定义.

Is there a way to read a line from the Mongo shell? readline() is not defined and neither is system.stdin.

我需要以交互方式执行此操作,而不是将输入提供给MongoDB shell执行的脚本.

I need to do this in interactive mode, as opposed to feeding input to a script executed by the MongoDB shell.

推荐答案

每个@Stennie的评论,目前无法实现.

Per @Stennie's comment, this is not possible right now.

这篇关于MongoDB Shell:从控制台读取一行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆