1MONGOC_GRIDFS_FIND_ONE_BY_FILENAMMoEn(g3o)DB C DMrOiNvGeOrC_GRIDFS_FIND_ONE_BY_FILENAME(3)
2
3
4

NAME

6       mongoc_gridfs_find_one_by_filename   -  mongoc_gridfs_find_one_by_file‐
7       name()
8

SYNOPSIS

10          mongoc_gridfs_file_t *
11          mongoc_gridfs_find_one_by_filename (mongoc_gridfs_t *gridfs,
12                                              const char *filename,
13                                              bson_error_t *error);
14

PARAMETERS

16       · gridfs: A mongoc_gridfs_t.
17
18       · filename: A UTF-8 encoded string containing the filename.
19
20       · error: An optional location for a bson_error_t or NULL.
21

DESCRIPTION

23       Finds the first file matching the filename specified. If  there  is  an
24       error,  NULL  is returned and error is filled out; if there is no error
25       but no matching file is found, NULL is returned and the error code  and
26       domain are 0.
27

ERRORS

29       Errors are propagated via the error parameter.
30

RETURNS

32       Returns  a newly allocated mongoc_gridfs_file_t if successful. You must
33       free the  resulting  file  with  mongoc_gridfs_file_destroy()  when  no
34       longer in use.
35

AUTHOR

37       MongoDB, Inc
38
40       2017-present, MongoDB, Inc
41
42
43
44
451.13.1                           Jan 24, 2M0O1N9GOC_GRIDFS_FIND_ONE_BY_FILENAME(3)
Impressum