logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Author

       MongoDB, Inc

Parameters

client: A mongoc_client_t.

       • opts: A required mongoc_auto_encryption_opts_t.

       • error: A bson_error_t which is set on error.

Returns

       Returns true if successful. Returns false and sets error otherwise.

       SEEALSO:mongoc_auto_encryption_opts_tmongoc_client_enable_auto_encryption()In-UseEncryption for libmongoc

          The MongoDB Manual for Client-SideFieldLevelEncryption

          The MongoDB Manual for QueryableEncryption

Synopsis

          bool
          mongoc_client_pool_enable_auto_encryption (mongoc_client_pool_t *pool,
                                                     mongoc_auto_encryption_opts_t* opts,
                                                     bson_error_t* error);

       Enable  automatic  client  side encryption on a mongoc_client_pool_t. Requires libmongoc to be built with
       support for In-Use Encryption. See In-UseEncryption for instructions  to  enable  In-Use  Encryption  in
       libmongoc.

       Automatic  encryption  is  an  enterprise-only  feature  that only applies to operations on a collection.
       Automatic encryption is not supported for operations on a database or view, and operations that  are  not
       bypassed  will  result  in  error.  To  bypass  automatic encryption for all operations, bypass automatic
       encryption with mongoc_auto_encryption_opts_set_bypass_auto_encryption() in opts.

       Automatic encryption requires the authenticated user to have the listCollectionsprivilegeaction.

       Enabling automatic encryption reduces the maximum message  size  and  may  have  a  negative  performance
       impact.

See Also