This repository contains code examples that demonstrate how to use the Aurora DSQL.
To get started with Aurora DSQL, create clusters and more information, please refer to AWS Documentation
The subdirectories contain code examples for connecting and using Aurora DSQL in each programming language and ORM framework, as well as end-to-end sample applications. The examples demonstrate the most common uses, such as installing clients, handling authentication, performing CRUD operations, and more. Please refer to the documentation for a full list of differences and limitations.
| Language | Client / ORM |
|---|---|
| C++ | libpq |
| C# (dotnet) | Npgsql |
| Go | pgx |
| Java | HikariCP + pgJDBC |
| Java | Liquibase |
| Java | Spring Boot |
| JavaScript | AWS Lambda + node-postgres |
| JavaScript | node-postgres (standalone) |
| JavaScript | Postgres.js |
| Python | asyncpg |
| Python | Jupyter |
| Python | psycopg |
| Python | psycopg2 |
| Ruby | pg |
| Ruby | Rails |
| Rust | sqlx |
| Typescript | Prisma |
| Typescript | Sequelize |
| Typescript | TypeORM |
| Language | Cluster Management |
|---|---|
| C++ | cluster_management |
| C# (dotnet) | cluster_management |
| Go | cluster_management |
| Java | cluster_management |
| JavaScript | cluster_management |
| Python | cluster_management |
| Ruby | cluster_management |
| Rust | cluster_management |
| Language | Token Generation |
|---|---|
| CLI | generate_token |
| C++ | generate_token |
| C# (dotnet) | generate_token |
| Go | generate_token |
| Java | generate_token |
| JavaScript | generate_token |
| Python | generate_token |
| Ruby | generate_token |
| Rust | generate_token |
| Sample Applications |
|---|
| Amazon Aurora DSQL Agent — A sample application showing how to build an AI agent that queries Aurora DSQL using natural language, powered by Strands Agents, Bedrock AgentCore Gateway (MCP), and AgentCore Runtime (A2A) |
Each example includes language and client-specific instructions as well as instructions to invoke example code.
See CONTRIBUTING for more information.
This project is licensed under the MIT-0 License.