Database Reference
In-Depth Information
Writing programs
using MongoDB
In this chapter
Introducing the MongoDB API through Ruby
How the drivers work
The BSON format and the MongoDB network protocol
Building a complete sample application
It's time to get practical. Though there's much to learn from experimenting with
the MongoDB shell, you can see the real value of this database only after you've
built something with it. That means jumping into programming and taking a first
look at the MongoDB drivers. As mentioned before, 10gen provides officially sup-
ported, Apache-licensed MongoDB drivers for all of the most popular program-
ming languages. The driver examples in the topic use Ruby, but the principles I'll
illustrate are universal and easily transferable to other drivers. If you're curious,
appendix D showcases driver API s for PHP , Java, and C++.
We're going to explore programming in MongoDB in three stages. First, you'll
install the MongoDB Ruby driver and introduce the basic CRUD operations. This
should go quickly and feel familiar, since the driver API is similar to that of the
shell. Next, we're going to delve deeper into the driver, explaining how it interfaces
37
 
Search WWH ::




Custom Search