MCPcopy Create free account
hub / github.com/MariaDB/server / DocDelete

Method DocDelete

storage/connect/cmgoconn.cpp:787–798  ·  view source on GitHub ↗

/ Remove all documents from the collection. */ /

Source from the content-addressed store, hash-verified

785/* Remove all documents from the collection. */
786/***********************************************************************/
787bool CMgoConn::DocDelete(PGLOBAL g)
788{
789 Query = bson_new();
790
791 if (!mongoc_collection_remove(Collection, MONGOC_REMOVE_NONE,
792 Query, NULL, &Error)) {
793 snprintf(g->Message, sizeof(g->Message), "Mongo remove all: %s", Error.message);
794 return true;
795 } // endif remove
796
797 return false;
798} // end of DocDelete
799
800/***********************************************************************/
801/* Rewind the collection. */

Callers 6

OpenDBMethod · 0.45
WriteDBMethod · 0.45
OpenTableFileMethod · 0.45
OpenDBMethod · 0.45
OpenTableFileMethod · 0.45
WriteBufferMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected