Use type int for count

This commit is contained in:
fbraem
2015-03-21 21:57:01 +01:00
parent 65c704ea90
commit 4c4ab51a2c
3 changed files with 10 additions and 8 deletions

View File

@@ -45,7 +45,7 @@ public:
virtual ~Database();
/// Destructor
double count(Connection& connection, const std::string& collectionName) const;
int 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.