Wrapper of mongoc_collection_t.
#include <Distributed/mongocxx.h>
|
| Collection (Client &client, const QString &databaseName, const QString &collectionName) |
|
| ~Collection () |
|
bool | aggregate (const Bson &aggregate, Cursor &cursor) |
|
bool | drop () |
|
mongoc_collection_t * | get () |
|
const mongoc_collection_t * | get () const |
|
mongoc_client_t * | getClient () |
|
const QString & | getCollectionName () const |
|
const QString & | getDatabaseName () const |
|
bool | insert (const Bson &document, mongoc_insert_flags_t flags=MONGOC_INSERT_NONE, const mongoc_write_concern_t *writeConcern=nullptr) |
|
bool | query (const Bson &query, const Bson &options, Cursor &cursor) |
|
bool | remove (const Bson &selector, mongoc_remove_flags_t flags=MONGOC_REMOVE_NONE, const mongoc_write_concern_t *writeConcern=nullptr) |
|
bool | update (const Bson &selector, const Bson &update, mongoc_update_flags_t flags=MONGOC_UPDATE_NONE, const mongoc_write_concern_t *writeConcern=nullptr) |
|
bool | updateOne (const Bson &selector, const Bson &update, const Bson &opts, Bson &reply) |
|
◆ Collection()
Collection |
( |
Client & |
client, |
|
|
const QString & |
databaseName, |
|
|
const QString & |
collectionName |
|
) |
| |
◆ ~Collection()
◆ aggregate()
bool aggregate |
( |
const Bson & |
aggregate, |
|
|
Cursor & |
cursor |
|
) |
| |
|
inline |
Wraps mongoc_collection_aggregate
◆ drop()
Wraps mongoc_collection_drop
◆ get() [1/2]
mongoc_collection_t * get |
( |
| ) |
|
|
inline |
◆ get() [2/2]
const mongoc_collection_t * get |
( |
| ) |
const |
|
inline |
◆ getClient()
mongoc_client_t * getClient |
( |
| ) |
|
|
inline |
◆ getCollectionName()
const QString & getCollectionName |
( |
| ) |
const |
|
inline |
◆ getDatabaseName()
const QString & getDatabaseName |
( |
| ) |
const |
|
inline |
◆ insert()
bool insert |
( |
const Bson & |
document, |
|
|
mongoc_insert_flags_t |
flags = MONGOC_INSERT_NONE , |
|
|
const mongoc_write_concern_t * |
writeConcern = nullptr |
|
) |
| |
|
inline |
Wraps mongoc_collection_insert
◆ query()
bool query |
( |
const Bson & |
query, |
|
|
const Bson & |
options, |
|
|
Cursor & |
cursor |
|
) |
| |
|
inline |
Wraps mongoc_collection_find_with_opts
◆ remove()
bool remove |
( |
const Bson & |
selector, |
|
|
mongoc_remove_flags_t |
flags = MONGOC_REMOVE_NONE , |
|
|
const mongoc_write_concern_t * |
writeConcern = nullptr |
|
) |
| |
|
inline |
Wraps mongoc_collection_remove
◆ update()
bool update |
( |
const Bson & |
selector, |
|
|
const Bson & |
update, |
|
|
mongoc_update_flags_t |
flags = MONGOC_UPDATE_NONE , |
|
|
const mongoc_write_concern_t * |
writeConcern = nullptr |
|
) |
| |
|
inline |
Wraps mongoc_collection_update
◆ updateOne()
bool updateOne |
( |
const Bson & |
selector, |
|
|
const Bson & |
update, |
|
|
const Bson & |
opts, |
|
|
Bson & |
reply |
|
) |
| |
|
inline |
Wraps mongoc_collection_update_one