From 940e744d5505067abf200b46505cb6902060749d Mon Sep 17 00:00:00 2001 From: hlcianfagna <110453267+hlcianfagna@users.noreply.github.com> Date: Wed, 10 Jan 2024 14:01:24 +0000 Subject: [PATCH] Add example of setAttribute https://github.com/crate/crate-pdo/pull/151/files#r1446532073 --- docs/connect.rst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/connect.rst b/docs/connect.rst index 4e002f9..c3d142d 100644 --- a/docs/connect.rst +++ b/docs/connect.rst @@ -103,8 +103,11 @@ CrateDB Cloud ================= If you are connecting to CrateDB Cloud you will need to enable the SSL mode -by setting the connection's ``CRATE_ATTR_SSL_MODE`` attribute. -See the section below for details on how to do this. +by setting the connection's ``CRATE_ATTR_SSL_MODE`` attribute: + +.. code-block:: php + + $connection->setAttribute(PDOCrateDB::CRATE_ATTR_SSL_MODE,PDOCrateDB::CRATE_ATTR_SSL_MODE_REQUIRED); If this is not configured you will see the following error message: ``cURL error 52: Empty reply from server``