mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-15 23:20:06 +02:00
MongoDB sample build files
This commit is contained in:
@@ -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)
|
||||
{
|
Reference in New Issue
Block a user