SEXP R_mongo_collection_find_indexes(SEXP ptr_col) {
  mongoc_collection_t *col = r2col(ptr_col);
  bson_error_t err;

  mongoc_cursor_t *c = mongoc_collection_find_indexes (col, &err);
  if(!c)
    stop(err.message);

  return cursor2r(c);
}
Exemple #2
0
mongoc_cursor_t * dbproxy::find_indexes(std::string  collection, bson_error_t * error) {
    mongoc_collection_t * _c = get_collection(collection);
    return mongoc_collection_find_indexes(_c, error);
}