本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
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) 程式庫
下表顯示搭配 Aurora DSQL 使用獨立 ORM 程式庫的範例程式碼。
| 程式設計語言 | 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 |
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/ |