/ Remove all documents from the collection. */ /
| 785 | /* Remove all documents from the collection. */ |
| 786 | /***********************************************************************/ |
| 787 | bool 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. */ |
no outgoing calls
no test coverage detected