Sybil
Sybil

Reputation: 2592

mongodb shell is written in JavaScript. Why UNIX binary then?

Is that true, that MongoDB shell is written in JavaScript?

If yes why it's a UNIX binary? Not a webapp for browser?

> less /usr/local/bin/mongo                            
"/usr/local/bin/mongo" may be a binary file.  See it anyway?       
> file /usr/local/bin/mongo                            
/usr/local/bin/mongo: Mach-O 64-bit executable x86_64

Upvotes: 0

Views: 299

Answers (1)

ericbn
ericbn

Reputation: 10988

The mongo shell, as well as the mongod database process are implemented in C++. You can get the source code and build it yourself here: https://github.com/mongodb/mongo

Upvotes: 2

Related Questions