Skip to content

Commit

Permalink
Add example of setAttribute
Browse files Browse the repository at this point in the history
  • Loading branch information
hlcianfagna committed Jan 10, 2024
1 parent 9284210 commit 940e744
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/connect.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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``
Expand Down

0 comments on commit 940e744

Please sign in to comment.