From f917c601b8a46b69a1d242400070220d2392e889 Mon Sep 17 00:00:00 2001 From: Karen Chen Date: Wed, 23 Oct 2024 17:46:35 -0700 Subject: [PATCH] fix: formatting --- .github/workflows/aurora_performance.yml | 2 +- examples/aws_driver_example/aws_dev_postgresql_example.ts | 6 +++--- pg/lib/dialect/pg_database_dialect.ts | 4 +--- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/aurora_performance.yml b/.github/workflows/aurora_performance.yml index b2edd4a1..b7717c07 100644 --- a/.github/workflows/aurora_performance.yml +++ b/.github/workflows/aurora_performance.yml @@ -10,7 +10,7 @@ jobs: run-integration-tests: strategy: matrix: - db: [ mysql, pg ] + db: [mysql, pg] name: Run Aurora ${{ matrix.db }} container performance tests runs-on: ubuntu-latest diff --git a/examples/aws_driver_example/aws_dev_postgresql_example.ts b/examples/aws_driver_example/aws_dev_postgresql_example.ts index e887080a..9d06b1da 100644 --- a/examples/aws_driver_example/aws_dev_postgresql_example.ts +++ b/examples/aws_driver_example/aws_dev_postgresql_example.ts @@ -45,7 +45,7 @@ ErrorSimulatorManager.raiseErrorOnNextConnect(errorToRaise); try { await client.connect(); } catch { - // Handle errorToRaise. + // Handle errorToRaise. } // Another connection. Goes normal with no error. @@ -59,7 +59,7 @@ simulator.raiseErrorOnNextCall(errorToRaise, "query"); try { const result = await client.query("select 1"); } catch { - // Handle errorToRaise. + // Handle errorToRaise. } // Query executes normally without error. @@ -84,7 +84,7 @@ const mismatch = await client.query("select 2"); try { const match = await client.query("select 1"); } catch { - // Handle errorToRaise. + // Handle errorToRaise. } // Close connection. diff --git a/pg/lib/dialect/pg_database_dialect.ts b/pg/lib/dialect/pg_database_dialect.ts index 29dbaa53..b4675d48 100644 --- a/pg/lib/dialect/pg_database_dialect.ts +++ b/pg/lib/dialect/pg_database_dialect.ts @@ -17,9 +17,7 @@ import { DatabaseDialect, DatabaseType } from "../../../common/lib/database_dialect/database_dialect"; import { HostListProviderService } from "../../../common/lib/host_list_provider_service"; import { HostListProvider } from "../../../common/lib/host_list_provider/host_list_provider"; -import { - ConnectionStringHostListProvider -} from "../../../common/lib/host_list_provider/connection_string_host_list_provider"; +import { ConnectionStringHostListProvider } from "../../../common/lib/host_list_provider/connection_string_host_list_provider"; import { AwsWrapperError } from "../../../common/lib/utils/errors"; import { DatabaseDialectCodes } from "../../../common/lib/database_dialect/database_dialect_codes"; import { TransactionIsolationLevel } from "../../../common/lib/utils/transaction_isolation_level";