[ create a new paste ] login | about

Link: http://codepad.org/QsveglY5    [ raw code | fork ]

chatsiri.ratana - C++, pasted on Feb 21:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iostream>
#include "dbclient.h"
#include "connectiondb.h"

using namespace mongo;

int main() {
  try {
   ConnectionDb::instance().connectDb();
  } catch( DBException &e ) {
    cout << "caught " << e.what() << endl;
  }
  return 0;
}


Create a new paste based on this one


Comments: