본문 바로가기

IT/Database

[mongodb] shell에서 find할 때 pretty() 기능 사용 (출력 이쁘게 나옴)

1. 수동
db.collection.find().pretty()



2. 자동
DBQuery.prototype._prettyShell = true

to your file in $HOME/.mongorc.js to enable pretty print globally by default.


출처 : http://stackoverflow.com/questions/9146123/pretty-print-in-mongodb-shell-as-default

'IT > Database' 카테고리의 다른 글

[mongodb] Replica Set  (2) 2014.09.23
[mongodb] $text Indexes 설정하기  (0) 2014.09.21
[mongodb] update , upsert  (0) 2014.09.11
[mongodb] Index 설정, 확인  (0) 2014.08.19
ubuntu에서 mongodb와 php 연동  (0) 2014.08.11