The code examples in this topic show you how to use DSQL with Rust sqlx.
- Rust version >=1.80 is needed
Ensure you are authenticated with AWS credentials. No other setup is needed besides having Rust installed.
In a terminal run the following command from the sqlx:
# Use the account credentials dedicated for rust
export CLUSTER_ENDPOINT="<your cluster endpoint>"
export REGION="<your cluster region>"
cargo test
# you can also execute the binary
cargo build
./target/debug/sqlx
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: MIT-0