Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 604 Bytes

README.md

File metadata and controls

32 lines (20 loc) · 604 Bytes

Amazon Distributed SQL Psycopg2 code examples

Overview

The code examples in this topic show you how to use psycopg2 with Amazon Distributed SQL.

Run the examples

Prerequisites

  • python version >=3.8.0 is needed

Setup test running environment

source setup.sh

Run the example tests

# Use the account credentials dedicated for python
export CLUSTER_ENDPOINT="<your cluster endpoint>"
export REGION="<your cluster region>"
pytest test/test_example.py

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

SPDX-License-Identifier: MIT-0