Skip to content

Latest commit

 

History

History

psycopg

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Aurora DSQL psycopg code examples

Overview

The code examples in this topic show you how to use the psycopg work with Aurora DSQL.

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

Examples

All examples are under test directory. The following table describes each test script.

Test File Description
test_example.py Show database table create, read and delete operation.

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

SPDX-License-Identifier: MIT-0