Amazon Aurora DSQL 集群连接工具
AWS 提供了用于连接和使用 Aurora DSQL 数据库的各种工具。这些工具包括数据库驱动程序、ORM 库和专用适配器,让开发人员能够使用偏好的编程语言,更轻松地构建应用程序。
数据库驱动程序
下表列出了可用于直接连接到 Aurora DSQL 的数据库驱动程序。
编程语言 | 驱动程序 | 存储库链接示例 |
---|---|---|
C++ | libpq | https://github.com/aws-samples/aurora-dsql-samples/tree/main/cpp/libpq |
C# (.NET) | Npgsql | https://github.com/aws-samples/aurora-dsql-samples/tree/main/dotnet/npgsql |
Go | pgx | https://github.com/aws-samples/aurora-dsql-samples/tree/main/go/pgx |
Java | pgJDBC | https://github.com/aws-samples/aurora-dsql-samples/tree/main/java/pgjdbc |
Java | Aurora DSQL JDBC Wrapper | https://github.com/awslabs/aurora-dsql-jdbc-wrapper |
JavaScript | node-postgres | https://github.com/aws-samples/aurora-dsql-samples/tree/main/javascript/node-postgres |
JavaScript | Postgres.js | https://github.com/aws-samples/aurora-dsql-samples/tree/main/javascript/postgres-js |
Python | Psycopg | https://github.com/aws-samples/aurora-dsql-samples/tree/main/python/psycopg |
Python | Psycopg2 | https://github.com/aws-samples/aurora-dsql-samples/tree/main/python/psycopg2 |
Ruby | pg | https://github.com/aws-samples/aurora-dsql-samples/tree/main/ruby/ruby-pg |
Rust | SQLx | https://github.com/aws-samples/aurora-dsql-samples/tree/main/rust/sqlx |
对象关系映射(ORM)库
下表显示将独立 ORM 库与 Aurora DSQL 结合使用的示例代码。
编程语言 | ORM 库 | 存储库链接示例 |
---|---|---|
Java | Hibernate | https://github.com/awslabs/aurora-dsql-hibernate/tree/main/examples/pet-clinic-app |
Python | SQLAlchemy | https://github.com/awslabs/aurora-dsql-sqlalchemy/tree/main/examples/pet-clinic-app |
TypeScript | Sequelize | https://github.com/aws-samples/aurora-dsql-samples/tree/main/typescript/sequelize |
TypeScript | TypeORM | https://github.com/aws-samples/aurora-dsql-samples/tree/main/typescript/type-orm |
Web 框架与数据库集成
下表显示了在 Aurora DSQL 中使用 Web 框架的示例代码。
编程语言 | Web 框架 | 存储库链接示例 |
---|---|---|
Python | Django | https://github.com/aws-samples/aurora-dsql-samples/tree/main/python/django |
Ruby | Rails | https://github.com/aws-samples/aurora-dsql-samples/tree/main/ruby/rails |
Aurora DSQL 适配器和方言
下表列出了专门设计用于 Aurora DSQL 的适配器和方言。
编程语言 | ORM/框架 | 存储库链接 |
---|---|---|
Java | Hibernate | https://github.com/awslabs/aurora-dsql-hibernate/ |
Python | Django | https://github.com/awslabs/aurora-dsql-django/ |
Python | SQLAlchemy | https://github.com/awslabs/aurora-dsql-sqlalchemy/ |