You are previewing MongoDB in Action.

MongoDB in Action

Cover of MongoDB in Action by Kyle Banker Published by Manning Publications
O'Reilly logo

Appendix D. MongoDB in PHP, Java, and C++

This book has presented MongoDB through the lenses of JavaScript and Ruby. But there are plenty of other ways to communicate with MongoDB, and this appendix presents three that span the gamut. I’ll start with PHP because it’s a popular scripting language. I include Java because it’s still arguably the language of the enterprise and thus important to a lot of readers of this book. Plus, the Java driver’s API diverges significantly from that of most scripting languages. Finally, I’ll present the C++ driver because it’s a core part of MongoDB’s codebase, and it’s likely to be useful to developers wanting to build high-performance standalone applications.

Each language section describes how to construct ...

The best content for your career. Discover unlimited learning on demand for around $1/day.