本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
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 |
具有資料庫整合的 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/ |