Skip to main content

create_db

Function create_db 

Source
pub(crate) async fn create_db(
    endpoint: &str,
    region: &str,
) -> Result<DatabaseConnection, Error>
Expand description

SeaORMデータベース接続を作成します

IAM認証を使用したAurora DSQL向けのSeaORM DatabaseConnectionを作成します。

§Arguments

  • endpoint - DSQLクラスターのエンドポイントホスト名
  • region - クラスターが配置されているAWSリージョン

§Returns

  • Ok(DatabaseConnection) - SeaORMデータベース接続
  • Err(Error) - 接続に失敗した場合