{"id":30,"date":"2012-02-11T14:52:52","date_gmt":"2012-02-11T14:52:52","guid":{"rendered":"https:\/\/code.angelmarquez.com\/blog\/?p=30"},"modified":"2012-02-11T15:00:05","modified_gmt":"2012-02-11T15:00:05","slug":"mongodb-notes","status":"publish","type":"post","link":"https:\/\/code.angelmarquez.com\/blog\/2012\/02\/11\/mongodb-notes\/","title":{"rendered":"MongoDB Notes"},"content":{"rendered":"<p>Some notes I took as I went through trying to compile the C++ driver for mongodb under win32.<\/p>\n<ul>\n<li>Hit up MongoDB C++ Page<\/li>\n<ul>\n<li>http:\/\/www.mongodb.org\/pages\/viewpage.action?pageId=133409<\/li>\n<\/ul>\n<li>Downloaded driver linked from Driver Download Page &amp; some other prerequisites<\/li>\n<ul>\n<li>http:\/\/downloads.mongodb.org\/cxx-driver\/mongodb-linux-x86_64-v2.0-latest.tgz<\/li>\n<li>http:\/\/www.mongodb.org\/download\/attachments\/12157032\/boost_1_42_vs2010_partial_prebuilt.7z<\/li>\n<\/ul>\n<li>Went to C++ Driver Compiling and Linking and scrolled down to Windows<\/li>\n<ul>\n<li>http:\/\/www.mongodb.org\/pages\/viewpage.action?pageId=21266598<\/li>\n<\/ul>\n<\/ul>\n<ul>\n<li>Hrm. I&#8217;d rather not have to mess with scons &#8230; so how do I build the lib?<\/li>\n<li>WTF? I want to try including client\/mongo_client_lib.cpp in my project but IT&#8217;S NOT IN THE FRAKING ARCHIVE!<\/li>\n<li>OK. Fine. Let&#8217;s fire up git and clone the full git source.<\/li>\n<li>Ahh&#8230;. ok, found mongo_client_lib.cpp. Why the hell even bother putting up the tar ball?<\/li>\n<li>Loaded simple_client_demo into visual studio.<\/li>\n<li>Boost missing. Ok .. Let&#8217;s set up project to point to proper includes and precompiled libraries<\/li>\n<li>Holy shit that compiled.<\/li>\n<li>Fired up MongoDB Shell and created a collection.<\/li>\n<li>Ran through the debugger. Everything works, but how come code references test.foo but in the shell it shows name is just &#8216;foo?<\/li>\n<\/ul>\n<div><\/div>\n<ul>\n<li>Apparently didn&#8217;t need perl regex files? (referenced elsewhere)<\/li>\n<li>bo and bob? really?! (in bson seralization class)<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Some notes I took as I went through trying to compile the C++ driver for mongodb under win32. Hit up MongoDB C++ Page http:\/\/www.mongodb.org\/pages\/viewpage.action?pageId=133409 Downloaded driver linked from Driver Download Page &amp; some other prerequisites http:\/\/downloads.mongodb.org\/cxx-driver\/mongodb-linux-x86_64-v2.0-latest.tgz http:\/\/www.mongodb.org\/download\/attachments\/12157032\/boost_1_42_vs2010_partial_prebuilt.7z Went to C++ Driver Compiling and Linking and scrolled down to Windows http:\/\/www.mongodb.org\/pages\/viewpage.action?pageId=21266598 Hrm. I&#8217;d rather not have [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-30","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/code.angelmarquez.com\/blog\/wp-json\/wp\/v2\/posts\/30","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/code.angelmarquez.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/code.angelmarquez.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/code.angelmarquez.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/code.angelmarquez.com\/blog\/wp-json\/wp\/v2\/comments?post=30"}],"version-history":[{"count":3,"href":"https:\/\/code.angelmarquez.com\/blog\/wp-json\/wp\/v2\/posts\/30\/revisions"}],"predecessor-version":[{"id":32,"href":"https:\/\/code.angelmarquez.com\/blog\/wp-json\/wp\/v2\/posts\/30\/revisions\/32"}],"wp:attachment":[{"href":"https:\/\/code.angelmarquez.com\/blog\/wp-json\/wp\/v2\/media?parent=30"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/code.angelmarquez.com\/blog\/wp-json\/wp\/v2\/categories?post=30"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/code.angelmarquez.com\/blog\/wp-json\/wp\/v2\/tags?post=30"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}