|
28 | 28 | #include <mongocxx/client_session.hpp>
|
29 | 29 | #include <mongocxx/collection.hpp>
|
30 | 30 | #include <mongocxx/gridfs/bucket.hpp>
|
31 |
| -#include <mongocxx/options/create_collection.hpp> |
32 | 31 | #include <mongocxx/options/gridfs/bucket.hpp>
|
33 | 32 | #include <mongocxx/read_preference.hpp>
|
34 | 33 | #include <mongocxx/write_concern.hpp>
|
@@ -235,101 +234,6 @@ class database {
|
235 | 234 | bsoncxx::v_noabi::document::view_or_value collection_options = {},
|
236 | 235 | const bsoncxx::v_noabi::stdx::optional<write_concern>& write_concern = {});
|
237 | 236 |
|
238 |
| - /// |
239 |
| - /// Explicitly creates a collection in this database with the specified options. |
240 |
| - /// |
241 |
| - /// @deprecated |
242 |
| - /// This overload is deprecated. Call database::create_collection with a |
243 |
| - /// bsoncxx::v_noabi::document::view_or_value collection_options instead. |
244 |
| - /// |
245 |
| - /// @see |
246 |
| - /// - https://www.mongodb.com/docs/manual/reference/command/create/ |
247 |
| - /// |
248 |
| - /// @param name |
249 |
| - /// the new collection's name. |
250 |
| - /// @param collection_options |
251 |
| - /// the options for the new collection. |
252 |
| - /// @param write_concern |
253 |
| - /// the write concern to use for this operation. Will default to database |
254 |
| - /// set write concern if none passed here. |
255 |
| - /// |
256 |
| - /// @exception |
257 |
| - /// mongocxx::v_noabi::operation_exception if the operation fails. |
258 |
| - /// |
259 |
| - MONGOCXX_DEPRECATED MONGOCXX_ABI_EXPORT_CDECL(mongocxx::v_noabi::collection) create_collection( |
260 |
| - bsoncxx::v_noabi::string::view_or_value name, |
261 |
| - const options::create_collection_deprecated& collection_options, |
262 |
| - const bsoncxx::v_noabi::stdx::optional<write_concern>& write_concern = {}) { |
263 |
| - return create_collection_deprecated(name, collection_options, write_concern); |
264 |
| - } |
265 |
| - |
266 |
| - MONGOCXX_ABI_EXPORT_CDECL(mongocxx::v_noabi::collection) |
267 |
| - create_collection_deprecated( |
268 |
| - bsoncxx::v_noabi::string::view_or_value name, |
269 |
| - const options::create_collection_deprecated& collection_options, |
270 |
| - const bsoncxx::v_noabi::stdx::optional<write_concern>& write_concern = {}); |
271 |
| - |
272 |
| - /// |
273 |
| - /// Explicitly creates a collection in this database with the specified options. |
274 |
| - /// |
275 |
| - /// @deprecated |
276 |
| - /// This overload is deprecated. Call database::create_collection with a |
277 |
| - /// bsoncxx::v_noabi::document::view_or_value collection_options instead. |
278 |
| - /// |
279 |
| - /// @see |
280 |
| - /// - https://www.mongodb.com/docs/manual/reference/command/create/ |
281 |
| - /// |
282 |
| - /// @param session |
283 |
| - /// The mongocxx::v_noabi::client_session with which to perform the create operation. |
284 |
| - /// @param name |
285 |
| - /// the new collection's name. |
286 |
| - /// @param collection_options |
287 |
| - /// the options for the new collection. |
288 |
| - /// @param write_concern |
289 |
| - /// the write concern to use for this operation. Will default to database |
290 |
| - /// set write concern if none passed here. |
291 |
| - /// |
292 |
| - /// @exception |
293 |
| - /// mongocxx::v_noabi::operation_exception if the operation fails. |
294 |
| - /// |
295 |
| - MONGOCXX_DEPRECATED MONGOCXX_ABI_EXPORT_CDECL(mongocxx::v_noabi::collection) create_collection( |
296 |
| - const client_session& session, |
297 |
| - bsoncxx::v_noabi::string::view_or_value name, |
298 |
| - const options::create_collection_deprecated& collection_options, |
299 |
| - const bsoncxx::v_noabi::stdx::optional<write_concern>& write_concern = {}) { |
300 |
| - return create_collection_deprecated(session, name, collection_options, write_concern); |
301 |
| - } |
302 |
| - |
303 |
| - /// |
304 |
| - /// Explicitly creates a collection in this database with the specified options. |
305 |
| - /// |
306 |
| - /// @deprecated |
307 |
| - /// This overload is deprecated. Call database::create_collection with a |
308 |
| - /// bsoncxx::v_noabi::document::view_or_value collection_options instead. |
309 |
| - /// |
310 |
| - /// @see |
311 |
| - /// - https://www.mongodb.com/docs/manual/reference/command/create/ |
312 |
| - /// |
313 |
| - /// @param session |
314 |
| - /// The mongocxx::v_noabi::client_session with which to perform the create operation. |
315 |
| - /// @param name |
316 |
| - /// the new collection's name. |
317 |
| - /// @param collection_options |
318 |
| - /// the options for the new collection. |
319 |
| - /// @param write_concern |
320 |
| - /// the write concern to use for this operation. Will default to database |
321 |
| - /// set write concern if none passed here. |
322 |
| - /// |
323 |
| - /// @exception |
324 |
| - /// mongocxx::v_noabi::operation_exception if the operation fails. |
325 |
| - /// |
326 |
| - MONGOCXX_ABI_EXPORT_CDECL(mongocxx::v_noabi::collection) |
327 |
| - create_collection_deprecated( |
328 |
| - const client_session& session, |
329 |
| - bsoncxx::v_noabi::string::view_or_value name, |
330 |
| - const options::create_collection_deprecated& collection_options, |
331 |
| - const bsoncxx::v_noabi::stdx::optional<write_concern>& write_concern = {}); |
332 |
| - |
333 | 237 | ///
|
334 | 238 | /// Drops the database and all its collections.
|
335 | 239 | ///
|
@@ -650,12 +554,6 @@ class database {
|
650 | 554 | bsoncxx::v_noabi::document::view_or_value collection_options,
|
651 | 555 | const bsoncxx::v_noabi::stdx::optional<mongocxx::v_noabi::write_concern>& write_concern);
|
652 | 556 |
|
653 |
| - mongocxx::v_noabi::collection _create_collection_deprecated( |
654 |
| - const client_session* session, |
655 |
| - bsoncxx::v_noabi::string::view_or_value name, |
656 |
| - const options::create_collection_deprecated& collection_options, |
657 |
| - const bsoncxx::v_noabi::stdx::optional<mongocxx::v_noabi::write_concern>& write_concern); |
658 |
| - |
659 | 557 | cursor _list_collections(const client_session* session,
|
660 | 558 | bsoncxx::v_noabi::document::view_or_value filter);
|
661 | 559 |
|
|
0 commit comments