Database::count() can parse different types of 'n' attribute in result.

This commit is contained in:
fbraem
2015-06-03 20:34:05 +02:00
parent 0a68bbfbea
commit aaabc3c9e9
3 changed files with 15 additions and 6 deletions

View File

@@ -45,7 +45,7 @@ public:
virtual ~Database();
/// Destructor
int count(Connection& connection, const std::string& collectionName) const;
Int64 count(Connection& connection, const std::string& collectionName) const;
/// Sends a count request for the given collection to MongoDB. When
/// the command fails, -1 is returned.