1MONGOC_CLIENT_FIND_DATABASES_WITMHo_nOgPoTDSBM(O3CN)GDOrCi_vCeLrIENT_FIND_DATABASES_WITH_OPTS(3)
2
3
4

NAME

6       mongoc_client_find_databases_with_opts    -    mongoc_client_find_data‐
7       bases_with_opts()
8

SYNOPSIS

10          mongoc_cursor_t *
11          mongoc_client_find_databases_with_opts (mongoc_client_t *client,
12                                                  const bson_t *opts);
13
14       Fetches a cursor containing documents, each corresponding to a database
15       on this MongoDB server.
16

PARAMETERS

18       · client: A mongoc_client_t.
19
20       · opts: A bson_t containing additional options.
21
22       opts may be NULL or a BSON document with additional command options:
23
24       · sessionId:  First,  construct  a  mongoc_client_session_t  with  mon‐
25         goc_client_start_session. You  can  begin  a  transaction  with  mon‐
26         goc_client_session_start_transaction, optionally with a mongoc_trans‐
27         action_opt_t that overrides the options inherited  from  client,  and
28         use  mongoc_client_session_append to add the session to opts. See the
29         example code for mongoc_client_session_t.
30
31       · serverId: To target a specific server, include  an  int32  "serverId"
32         field.  Obtain  the  id  by calling mongoc_client_select_server, then
33         mongoc_server_description_id on its return value.
34

ERRORS

36       Use mongoc_cursor_error on the returned cursor to check for errors.
37

RETURNS

39       A cursor where each result corresponds to the  server's  representation
40       of a database.
41
42       The     cursor     functions    mongoc_cursor_set_limit,    mongoc_cur‐
43       sor_set_batch_size, and mongoc_cursor_set_max_await_time_ms have no use
44       on the returned cursor.
45

AUTHOR

47       MongoDB, Inc
48
50       2017-present, MongoDB, Inc
51
52
53
54
551.14.0                           Feb 2M2O,NG2O0C1_9CLIENT_FIND_DATABASES_WITH_OPTS(3)
Impressum