Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down Expand Up @@ -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
~~~~~~~~~~~~
Expand Down