The code examples in this topic show you how to use the psycopg work with Aurora DSQL.
- python version >=3.8.0 is needed
source setup.sh
# Use the account credentials dedicated for python
export CLUSTER_ENDPOINT="<your cluster endpoint>"
export REGION="<your cluster region>"
pytest test/test_example.py
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