Merge pull request #852 from fbraem/develop

Database::count() can parse different types of 'n' attribute in result.
This commit is contained in:
Aleksandar Fabijanic
2015-06-05 08:59:32 -05:00
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.