MySQL Connector/C++ 9.1.0
MySQL connector library for C and C++ applications
Public Member Functions | List of all members
CollectionRemove Class Reference

An operation which removes documents from a collection. More...

Public Member Functions

 CollectionRemove (Collection &coll, const string &expr)
 Create an operation which removes selected documnets from the given collection. More...
 
Operation & sort (Type... spec)
 Specify ordering of documents in a query results. More...
 
Operation & limit (unsigned items)
 Limit the operation to the given number of items (rows or documents).
 

Detailed Description

An operation which removes documents from a collection.

Constructor & Destructor Documentation

◆ CollectionRemove()

CollectionRemove ( Collection coll,
const string expr 
)
inline

Create an operation which removes selected documnets from the given collection.

Documents to be removed are specified by the given Boolean expression.

Member Function Documentation

◆ sort()

Operation & sort ( Type...  spec)
inlineinherited

Specify ordering of documents in a query results.

Arguments are one or more strings of the form "<expr> <dir>" where <expr> gives the value to sort on and <dir> is a sorting direction ASC or DESC.


The documentation for this class was generated from the following file: