

# Amazon Aurora DSQL クラスター接続ツール
<a name="aws-sdks"></a>

 Aurora DSQL は、多くのサードパーティーのデータベースドライバーや ORM ライブラリと互換性があります。AWS には、Aurora DSQL の操作を簡素化するための 2 種類のツールが用意されています。
+ **[コネクタ](https://docs.aws.amazon.com/aurora-dsql/latest/userguide/SECTION_connectors.html)** – データベースドライバーを拡張して IAM トークンの生成を自動的に処理する認証プラグイン。データベースドライバーを直接操作する場合は、コネクタを使用します。
+ **アダプターとダイアレクト** – IAM 認証と Aurora DSQL の互換性の向上を提供する特定の ORM フレームワークの拡張機能。サポートされている ORM フレームワークを使用する場合は、アダプターを使用します。

## Aurora DSQL アダプターとダイアレクト
<a name="aurora-dsql-adapters"></a>

次の表は、Aurora DSQL で使用できるアダプターとダイアレクトを示しています。


| プログラミング言語 | ORM/Framework | リポジトリのリンク | 
| --- |--- |--- |
| Java | Hibernate | [https://github.com/awslabs/aurora-dsql-orms/tree/main/java/hibernate](https://github.com/awslabs/aurora-dsql-orms/tree/main/java/hibernate) | 
| Python | Django | [https://github.com/awslabs/aurora-dsql-orms/tree/main/python/django](https://github.com/awslabs/aurora-dsql-orms/tree/main/python/django) | 
| Python | SQLAlchemy | [https://github.com/awslabs/aurora-dsql-orms/tree/main/python/sqlalchemy](https://github.com/awslabs/aurora-dsql-orms/tree/main/python/sqlalchemy) | 
| Python | Tortoise ORM | [https://github.com/awslabs/aurora-dsql-orms/tree/main/python/tortoise-orm](https://github.com/awslabs/aurora-dsql-orms/tree/main/python/tortoise-orm) | 

## データベースドライバーのサンプル
<a name="database-drivers"></a>

次の表は、サードパーティーのデータベースドライバーを使用して Aurora DSQL に接続するためのサンプルコードを示しています。


| プログラミング言語 | ドライバー | サンプルリポジトリのリンク | 
| --- |--- |--- |
| C\$1\$1 | libpq | [https://github.com/aws-samples/aurora-dsql-samples/tree/main/cpp/libpq](https://github.com/aws-samples/aurora-dsql-samples/tree/main/cpp/libpq) | 
| C\$1 (.NET) | Npgsql | [https://github.com/aws-samples/aurora-dsql-samples/tree/main/dotnet/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](https://github.com/aws-samples/aurora-dsql-samples/tree/main/go/pgx) | 
| Java | HikariCP \$1 pgJDBC | [https://github.com/aws-samples/aurora-dsql-samples/tree/main/java/pgjdbc](https://github.com/aws-samples/aurora-dsql-samples/tree/main/java/pgjdbc) | 
| JavaScript | node-postgres (AWS Lambda) | [https://github.com/aws-samples/aurora-dsql-samples/tree/main/lambda](https://github.com/aws-samples/aurora-dsql-samples/tree/main/lambda) | 
| JavaScript | node-postgres | [https://github.com/aws-samples/aurora-dsql-samples/tree/main/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](https://github.com/aws-samples/aurora-dsql-samples/tree/main/javascript/postgres-js) | 
| Python | asyncpg | [https://github.com/aws-samples/aurora-dsql-samples/tree/main/python/asyncpg](https://github.com/aws-samples/aurora-dsql-samples/tree/main/python/asyncpg) | 
| Python | Psycopg | [https://github.com/aws-samples/aurora-dsql-samples/tree/main/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](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](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](https://github.com/aws-samples/aurora-dsql-samples/tree/main/rust/sqlx) | 

## ORM とフレームワークのサンプル
<a name="orm-libraries"></a>

次の表は、Aurora DSQL でサードパーティーの ORM ライブラリとフレームワークを使用するためのサンプルコードを示しています。


| プログラミング言語 | ORM/Framework | サンプルリポジトリのリンク | 
| --- |--- |--- |
| Java | Hibernate | [https://github.com/awslabs/aurora-dsql-orms/tree/main/java/hibernate/examples/pet-clinic-app](https://github.com/awslabs/aurora-dsql-orms/tree/main/java/hibernate/examples/pet-clinic-app) | 
| Java | Liquibase | [https://github.com/aws-samples/aurora-dsql-samples/tree/main/java/liquibase](https://github.com/aws-samples/aurora-dsql-samples/tree/main/java/liquibase) | 
| Java | Spring Boot | [https://github.com/aws-samples/aurora-dsql-samples/tree/main/java/spring\$1boot](https://github.com/aws-samples/aurora-dsql-samples/tree/main/java/spring_boot) | 
| Python | Django | [https://github.com/awslabs/aurora-dsql-orms/tree/main/python/django/examples/pet-clinic-app](https://github.com/awslabs/aurora-dsql-orms/tree/main/python/django/examples/pet-clinic-app) | 
| Python | SQLAlchemy | [https://github.com/awslabs/aurora-dsql-orms/tree/main/python/sqlalchemy/examples/pet-clinic-app](https://github.com/awslabs/aurora-dsql-orms/tree/main/python/sqlalchemy/examples/pet-clinic-app) | 
| Python | Tortoise ORM | [https://github.com/awslabs/aurora-dsql-orms/tree/main/python/tortoise-orm/example](https://github.com/awslabs/aurora-dsql-orms/tree/main/python/tortoise-orm/example) | 
| Ruby | Rails | [https://github.com/aws-samples/aurora-dsql-samples/tree/main/ruby/rails](https://github.com/aws-samples/aurora-dsql-samples/tree/main/ruby/rails) | 
| TypeScript | Prisma | [https://github.com/aws-samples/aurora-dsql-samples/tree/main/typescript/prisma](https://github.com/aws-samples/aurora-dsql-samples/tree/main/typescript/prisma) | 
| TypeScript | Sequelize | [https://github.com/aws-samples/aurora-dsql-samples/tree/main/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](https://github.com/aws-samples/aurora-dsql-samples/tree/main/typescript/type-orm) | 