Home > Database > Mysql Tutorial > MongoDB命令行下格式化find()返回结果:pretty()

MongoDB命令行下格式化find()返回结果:pretty()

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 14:53:49
Original
1622 people have browsed it

MongoDB命令行下格式化find()返回结果:pretty() db.collection.find().pretty(); www.2cto.com 补充个一劳永逸的方法,在 shell 里执行下列代码 echo DBQuery.prototype._prettyShell = true ~/. mongorc . js 这样随时随地都是 pretty()了.

MongoDB命令行下格式化find()返回结果:pretty()

 

db.collection.find().pretty();

  www.2cto.com  

补充个一劳永逸的方法,在 shell 里执行下列代码

 

echo 

 

"DBQuery.prototype._prettyShell = true"

 

>>

 

~/.

mongorc

.

js

 

这样随时随地都是 pretty()了.

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
mongodb start
From 1970-01-01 08:00:00
0
0
0
linux - ubuntu14 error installing mongodb
From 1970-01-01 08:00:00
0
0
0
Use of symfony2 mongodb
From 1970-01-01 08:00:00
0
0
0
mongodb _id rename
From 1970-01-01 08:00:00
0
0
0
Parameter understanding of mongodb
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template