1MONGOC_GRIDFS_FILE_LIST_T(3)       libmongoc      MONGOC_GRIDFS_FILE_LIST_T(3)
2
3
4

SYNOPSIS

6          #include <mongoc/mongoc.h>
7
8          typedef struct _mongoc_gridfs_file_list_t mongoc_gridfs_file_list_t;
9

DESCRIPTION

11       mongoc_gridfs_file_list_t  provides a gridfs file list abstraction.  It
12       provides  iteration  and  basic  marshalling  on  top  of   a   regular
13       mongoc_collection_find_with_opts()  style  query.  In  interface,  it's
14       styled after mongoc_cursor_t.
15

EXAMPLE

17          mongoc_gridfs_file_list_t *list;
18          mongoc_gridfs_file_t *file;
19
20          list = mongoc_gridfs_find (gridfs, query);
21
22          while ((file = mongoc_gridfs_file_list_next (list))) {
23             do_something (file);
24
25             mongoc_gridfs_file_destroy (file);
26          }
27
28          mongoc_gridfs_file_list_destroy (list);
29

AUTHOR

31       MongoDB, Inc
32
34       2017-present, MongoDB, Inc
35
36
37
38
391.25.1                           Nov 08, 2023     MONGOC_GRIDFS_FILE_LIST_T(3)
Impressum