Drivers
On this page
PHP driver
PHP 8.1+ (requires ext-openssl). MIT. Package version 0.0.1. Driver package versions are independent of the engine version.
The Composer package is bzync/nextsql, namespace NextSQL\. Source: `drivers/php` — you can also vendor it straight from the tree with its bundled autoload.php.
Remote TLS:
For --require-client-key, pass 'key' => $clientRoot as a 32-byte string. Never put keys or passwords in a URL.
Follower-read routing uses NextSQL\Cluster::connect. See High availability. database may name the deployment database.
Client-encrypted fields#
Pass a FieldKeyProvider as fieldKeys. Use encryptField / decryptField for randomized NSCE1 columns. Explicit ENCRYPTED CLIENT DETERMINISTIC columns use encryptFieldDeterministic / decryptFieldDeterministic; bind the produced NSCE2 value only to equality/inequality predicates for that exact column. Deterministic mode leaks equality and frequency. FileFieldKeyring provides versioned durable rotation/revocation; general searchable encryption is not supported.