3 Commits

Author SHA1 Message Date
Andreas Braun a4b536aa6a PHPC-2403: Remove optional sparsity and trimFactor options (#1628) 2024-09-05 08:20:08 +02:00
Jeremy Mikola 4956b57028 PHPC-2401: Support QEv2 range protocol (#1583)
Existing RANGE_PREVIEW constants are deprecated in favor of new RANGE constants introduced in libmongoc 1.28.0. PHP 8.3+ emits deprecation messages when accessing the RANGE_PREVIEW constants, so we ignore such output in the constants test. It wasn't worth splitting that test by PHP version.

Support trimFactor range option.

Specify default value for trimFactor range option in tests. This is temporary until sparsity and trimFactor are made optional prior to the GA release for range indexes (PHPC-2403).
2024-06-14 10:17:36 -04:00
Jeremy Mikola b93f7c2bd1 PHPC-2197: Support queryable encryption range indexes (#1409)
* Implement ClientEncryption::encryptExpression()

Define algorithm and query type constants for range preview

* Handle BSON encoding exceptions in encrypt/decrypt

Note that it is not possible to write a test for decrypt() since Binary instances always encode to BSON.
2023-05-30 07:27:41 -04:00