Amazon Aurora DSQL クラスター接続ツール
Aurora DSQL は、多くのサードパーティーのデータベースドライバーや ORM ライブラリと互換性があります。AWS には、Aurora DSQL の操作を簡素化するための 2 種類のツールが用意されています。
-
コネクタ – データベースドライバーを拡張して IAM トークンの生成を自動的に処理する認証プラグイン。データベースドライバーを直接操作する場合は、コネクタを使用します。
-
アダプターとダイアレクト – IAM 認証と Aurora DSQL の互換性の向上を提供する特定の ORM フレームワークの拡張機能。サポートされている ORM フレームワークを使用する場合は、アダプターを使用します。
Aurora DSQL アダプターとダイアレクト
次の表は、Aurora DSQL で使用できるアダプターとダイアレクトを示しています。
| プログラミング言語 | ORM/Framework | リポジトリのリンク |
|---|---|---|
| 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/ |
| Python | Tortoise ORM | https://github.com/awslabs/aurora-dsql-tortoise-orm/ |
データベースドライバーのサンプル
次の表は、サードパーティーのデータベースドライバーを使用して Aurora DSQL に接続するためのサンプルコードを示しています。
ORM とフレームワークのサンプル
次の表は、Aurora DSQL でサードパーティーの ORM ライブラリとフレームワークを使用するためのサンプルコードを示しています。
| プログラミング言語 | ORM/Framework | サンプルリポジトリのリンク |
|---|---|---|
| Java | Hibernate | https://github.com/awslabs/aurora-dsql-hibernate/tree/main/examples/pet-clinic-app |
| 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_boot |
| Python | Django | https://github.com/awslabs/aurora-dsql-django/tree/version-0/examples/pet-clinic-app |
| Python | SQLAlchemy | https://github.com/awslabs/aurora-dsql-sqlalchemy/tree/main/examples/pet-clinic-app |
| Python | Tortoise ORM | https://github.com/awslabs/aurora-dsql-tortoise-orm/tree/main/example |
| 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 |
| 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 |