MongoDB sample build files

This commit is contained in:
aleks-f
2013-03-12 22:58:22 -05:00
parent bf0bc11878
commit daef0aa403
31 changed files with 3832 additions and 11 deletions

View File

@@ -38,6 +38,7 @@
#include "Poco/MongoDB/Cursor.h"
#include "Poco/MongoDB/Array.h"
// INSERT INTO players
// VALUES( "Messi", "Lionel", 1987)
void sample1(Poco::MongoDB::Connection& connection)
@@ -159,6 +160,7 @@ void sample1(Poco::MongoDB::Connection& connection)
}
}
// SELECT lastname, birthyear FROM players
void sample2(Poco::MongoDB::Connection& connection)
{
@@ -188,6 +190,7 @@ void sample2(Poco::MongoDB::Connection& connection)
}
}
// SELECT * FROM players
void sample3(Poco::MongoDB::Connection& connection)
{
@@ -241,6 +244,7 @@ void sample4(Poco::MongoDB::Connection& connection)
};
}
// SELECT * FROM players WHERE birthyear = 1987 ORDER BY name
void sample5(Poco::MongoDB::Connection& connection)
{