MongoDB C Driver Documentation

Overview

The MongoDB C Driver is a 10gen-supported driver for MongoDB. It's written in pure C. The goal is to be super strict for ultimate portability, no dependencies, and generic embeddability.

The driver is still considered alpha but is undergoing active development. Support for replica sets was just added in v0.3.1. The API was completely revamped in v0.4. Another backward-breaking change (support for write_concern) was added in v0.6.

tutorial
An overview of the driver's API.
building
How to build the driver from source.
bson
How to work with BSON objects.
connections
How to connect to single nodes and to replica sets.
write_concern
How to detect write errors and ensure various durability levels.
errors
How errors are reported.
API Docs
Doxygen-generated API docs.
Source code
The source code is hosted on GitHub.