1MONGOC_DATABASE_DROP_WITH_OPTS(3)  libmongoc MONGOC_DATABASE_DROP_WITH_OPTS(3)
2
3
4

SYNOPSIS

6          bool
7          mongoc_database_drop_with_opts (mongoc_database_t *database,
8                                          const bson_t *opts,
9                                          bson_error_t *error);
10

PARAMETERS

12database: A mongoc_database_t.
13
14error: An optional location for a bson_error_t or NULL.
15
16       opts may be NULL or a BSON document with additional command options:
17
18writeConcern:    Construct    a    mongoc_write_concern_t   and   use
19         mongoc_write_concern_append() to add the write concern to  opts.  See
20         the example code for mongoc_client_write_command_with_opts().
21
22sessionId:    First,   construct   a   mongoc_client_session_t   with
23         mongoc_client_start_session().  You  can  begin  a  transaction  with
24         mongoc_client_session_start_transaction(),    optionally    with    a
25         mongoc_transaction_opt_t that overrides the  options  inherited  from
26         database,  and  use mongoc_client_session_append() to add the session
27         to opts. See the example code for mongoc_client_session_t.
28
29collation: Configure textual comparisons. See Setting  Collation  Or‐
30         der,  and  the  MongoDB Manual entry on Collation. Collation requires
31         MongoDB 3.2 or later, otherwise an error is returned.
32
33serverId: To target a specific server, include  an  int32  "serverId"
34         field.  Obtain  the id by calling mongoc_client_select_server(), then
35         mongoc_server_description_id() on its return value.
36

DESCRIPTION

38       This function attempts to drop a database on the MongoDB server.
39
40       If no write concern is provided in opts, the database's  write  concern
41       is used.
42
43       The  encryptedFields  document in opts may be used to drop a collection
44       used for Queryable Encryption.
45

ERRORS

47       Errors are propagated via the error parameter.
48

RETURNS

50       Returns true if successful. Returns false and sets error if  there  are
51       invalid arguments or a server or network error.
52

AUTHOR

54       MongoDB, Inc
55
57       2017-present, MongoDB, Inc
58
59
60
61
621.25.1                           Nov 08, 2023MONGOC_DATABASE_DROP_WITH_OPTS(3)
Impressum