Method: Mongo::Crypt::Binding.ctx_explicit_encrypt_expression_init
- Defined in:
- lib/mongo/crypt/binding.rb
.ctx_explicit_encrypt_expression_init(context, doc) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Initialize the Context for explicit expression encryption.
760 761 762 763 764 765 766 767 768 |
# File 'lib/mongo/crypt/binding.rb', line 760 def self.ctx_explicit_encrypt_expression_init(context, doc) validate_document(doc) data = doc.to_bson.to_s Binary.wrap_string(data) do |data_p| check_ctx_status(context) do mongocrypt_ctx_explicit_encrypt_expression_init(context.ctx_p, data_p) end end end |