Files
mongo/client/examples/tutorial.cpp

21 lines
328 B
C++
Raw Normal View History

2009-02-06 16:58:46 -05:00
#include <iostream>
#include "client/dbclient.h"
// g++ -I ../.. -L ../.. tutorial.cpp -lmongoclient -lboost_thread -lboost_filesystem
using namespace mongo;
void run() {
DBClientConnection c;
}
int main() {
try {
run();
} catch( DBException &e ) {
cout << "caught " << e.what() << endl;
}
return 0;
}