- count
long count(T1 query, mongoc_query_flags_t flags, long skip, long limit, mongoc_read_prefs_t* readPrefs)
Undocumented in source. Be warned that the author may not have intended to support it.
- deleteOne
auto deleteOne(T1 selector, T2 options, BSON reply)
Undocumented in source. Be warned that the author may not have intended to support it.
- drop
auto drop()
Undocumented in source. Be warned that the author may not have intended to support it.
- find
auto find(T1 filter, T2 options, mongoc_read_prefs_t* readPrefs)
Undocumented in source. Be warned that the author may not have intended to support it.
- findAndModify
auto findAndModify(T1 query, T2 update, T3 sort, T4 fields, bool remove, bool upsert, bool _new, BSON reply)
Convenience method for calling mongoc's insert with the upsert flag.
- findOne
ReturnType findOne(T1 filter, T2 options, mongoc_read_prefs_t* readPrefs)
Convenience function for getting just one element from a find.
Must be deleted with unlock().
- insert
auto insert(T1 toInsert, T2 options, BSON reply)
If toInsert is a range, then bulk inserts are used.
- insertMany
auto insertMany(bson_t*[] toInsert, T options, BSON reply)
Useful if you already have an array of bson_t, otherwise it's better
to use insert with a range as it builds that array.
- processMongoDocUDAs
void processMongoDocUDAs(T val)
Sets the fields with UDA of struct T with the current unix time.
Does nothing if T is a BSON.
- unlock
auto unlock()
Undocumented in source. Be warned that the author may not have intended to support it.
- update
auto update(T1 queries, T2 documents, T3 options)
Takes either one query and document or
a range of queries and another of documents..