Skip to content

Commit 7875c21

Browse files
committed
chore: rename method
1 parent e710b54 commit 7875c21

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

common/lib/driver_dialect/driver_dialect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ export interface DriverDialect {
2828

2929
getAwsPoolClient(props: any): AwsPoolClient;
3030

31-
setupInitialProperties(props: Map<string, any>): void;
31+
setKeepAliveProperties(props: Map<string, any>): void;
3232
}

mysql/lib/dialect/mysql2_driver_dialect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,5 @@ export class MySQL2DriverDialect implements DriverDialect {
5353
return new AwsMysqlPoolClient(props);
5454
}
5555

56-
setupInitialProperties(props: Map<string, any>) {}
56+
setKeepAliveProperties(props: Map<string, any>) {}
5757
}

pg/lib/dialect/node_postgres_driver_dialect.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class NodePostgresDriverDialect implements DriverDialect {
3636
}
3737

3838
async connect(hostInfo: HostInfo, props: Map<string, any>): Promise<ClientWrapper> {
39-
this.setupInitialProperties(props);
39+
this.setKeepAliveProperties(props);
4040
const targetClient = new pkgPg.Client(WrapperProperties.removeWrapperProperties(props));
4141
await targetClient.connect();
4242
return Promise.resolve(new PgClientWrapper(targetClient, hostInfo, props));
@@ -59,7 +59,7 @@ export class NodePostgresDriverDialect implements DriverDialect {
5959
return new AwsPgPoolClient(props);
6060
}
6161

62-
setupInitialProperties(props: Map<string, any>) {
62+
setKeepAliveProperties(props: Map<string, any>) {
6363
if (props.has(WrapperProperties.KEEPALIVE_PROPERTIES.name)) {
6464
const keepAliveProps = props.get(WrapperProperties.KEEPALIVE_PROPERTIES.name);
6565
props.set(NodePostgresDriverDialect.keepAlivePropertyName, keepAliveProps.get(NodePostgresDriverDialect.keepAlivePropertyName));

0 commit comments

Comments
 (0)