diff --git a/README.rst b/README.rst index 423d9c8..c12f076 100644 --- a/README.rst +++ b/README.rst @@ -372,6 +372,8 @@ Connection Parameters +-----------------------------------+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------+----------+ | client_id | str | The client id from Azure IdP | None | No | +-----------------------------------+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------+----------+ +| client_protocol_version | int | The requested wire transfer protocol version to use for data transfer. Supported values are 0 (base server), 1 (extended result metadata), and 2 (binary transfer protocol). | 2 | No | ++-----------------------------------+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------+----------+ | client_secret | str | The client secret from Azure IdP | None | No | +-----------------------------------+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------+----------+ | cluster_identifier | str | The cluster identifier of the Amazon Redshift Cluster | None | No | @@ -532,6 +534,19 @@ Client Transfer Protocol ``redshift_connector`` requests the Amazon Redshift server use the highest transfer protocol version supported. As of v2.0.879 binary transfer protocol is requested by default. If necessary, the requested transfer protocol can be modified via the ``client_protocol_version`` parameter of ``redshift_connector.connect(...)``. Please see the Connection Parameters table for more details. +.. code-block:: python + + import redshift_connector + + conn = redshift_connector.connect( + host="examplecluster.abc123xyz789.us-west-1.redshift.amazonaws.com", + database="dev", + user="awsuser", + password="my_password", + client_protocol_version=2, + ) + + Getting Help ~~~~~~~~~~~~