Skip to content

Latest commit

 

History

History

psycopg2

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

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