@@ -90,7 +90,14 @@ class MongoDB_API Database
9090 Poco::SharedPtr<Poco::MongoDB::UpdateRequest> createUpdateRequest (const std::string& collectionName) const ;
9191 // / Creates an UpdateRequest. The collectionname must not contain the database name!
9292
93- Poco::MongoDB::Document::Ptr ensureIndex (Connection& connection, const std::string& collection, const std::string& indexName, Poco::MongoDB::Document::Ptr keys, bool unique = false , bool background = false , int version = 0 , int ttl = 0 );
93+ Poco::MongoDB::Document::Ptr ensureIndex (Connection& connection,
94+ const std::string& collection,
95+ const std::string& indexName,
96+ Poco::MongoDB::Document::Ptr keys,
97+ bool unique = false ,
98+ bool background = false ,
99+ int version = 0 ,
100+ int ttl = 0 );
94101 // / Creates an index. The document returned is the result of a getLastError call.
95102 // / For more info look at the ensureIndex information on the MongoDB website.
96103
@@ -114,25 +121,29 @@ inline Poco::SharedPtr<Poco::MongoDB::QueryRequest> Database::createCommand() co
114121}
115122
116123
117- inline Poco::SharedPtr<Poco::MongoDB::DeleteRequest> Database::createDeleteRequest (const std::string& collectionName) const
124+ inline Poco::SharedPtr<Poco::MongoDB::DeleteRequest>
125+ Database::createDeleteRequest (const std::string& collectionName) const
118126{
119127 return new Poco::MongoDB::DeleteRequest (_dbname + ' .' + collectionName);
120128}
121129
122130
123- inline Poco::SharedPtr<Poco::MongoDB::InsertRequest> Database::createInsertRequest (const std::string& collectionName) const
131+ inline Poco::SharedPtr<Poco::MongoDB::InsertRequest>
132+ Database::createInsertRequest (const std::string& collectionName) const
124133{
125134 return new Poco::MongoDB::InsertRequest (_dbname + ' .' + collectionName);
126135}
127136
128137
129- inline Poco::SharedPtr<Poco::MongoDB::QueryRequest> Database::createQueryRequest (const std::string& collectionName) const
138+ inline Poco::SharedPtr<Poco::MongoDB::QueryRequest>
139+ Database::createQueryRequest (const std::string& collectionName) const
130140{
131141 return new Poco::MongoDB::QueryRequest (_dbname + ' .' + collectionName);
132142}
133143
134144
135- inline Poco::SharedPtr<Poco::MongoDB::UpdateRequest> Database::createUpdateRequest (const std::string& collectionName) const
145+ inline Poco::SharedPtr<Poco::MongoDB::UpdateRequest>
146+ Database::createUpdateRequest (const std::string& collectionName) const
136147{
137148 return new Poco::MongoDB::UpdateRequest (_dbname + ' .' + collectionName);
138149}
0 commit comments