You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: go/pgx/README.md
+51-31Lines changed: 51 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,33 @@
1
-
# Aurora DSQL pgx code examples
1
+
# PGX with Aurora DSQL
2
2
3
3
## Overview
4
4
5
-
The code examples in this topic show you how to use DSQL with Go pgx.
5
+
This code example demonstrates how to use the `pgx` driver with Amazon Aurora DSQL. The example shows you how to connect to an Aurora DSQL cluster and perform database operations using IAM authentication.
6
6
7
-
## Features
7
+
Aurora DSQL is a distributed SQL database service that provides high availability and scalability for your PostgreSQL-compatible applications. `pgx` is a pure Go driver and toolkit for PostgreSQL that offers robust features including automatic connection pool management and authentication token refresh.
8
8
9
-
- Uses `dsql.NewFromConfig` to create DSQL clients from AWS configuration
10
-
- Supports automatic token refresh to maintain database connectivity
11
-
- Implements connection pooling with pgx
12
-
- Thread-safe token refresh mechanism
13
-
- Demonstrates that connections before and after refresh are different
9
+
10
+
## About the code example
11
+
12
+
The example demonstrates a flexible connection approach using IAM authentication:
0 commit comments