Skip to content

Commit

Permalink
change query method to string
Browse files Browse the repository at this point in the history
  • Loading branch information
joyc-bq committed Feb 5, 2025
1 parent df73f66 commit 34aad66
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion common/lib/client_wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export interface ClientWrapper {
readonly properties: Map<string, any>;
readonly id: string;

query(sql: any): Promise<any>;
query(sql: string): Promise<any>;

end(): Promise<void>;

Expand Down
2 changes: 1 addition & 1 deletion common/lib/mysql_client_wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class MySQLClientWrapper implements ClientWrapper {
this.id = uniqueId("MySQLClient_");
}

query(sql: any): Promise<any> {
query(sql: string): Promise<any> {
const query = { sql: sql };
this.driverDialect.setQueryTimeout(this.properties, query);
return this.client?.query(query);
Expand Down
2 changes: 1 addition & 1 deletion common/lib/pg_client_wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class PgClientWrapper implements ClientWrapper {
this.id = uniqueId("PgClient_");
}

query(sql: any): Promise<any> {
query(sql: string): Promise<any> {
return this.client?.query(sql);
}

Expand Down
2 changes: 1 addition & 1 deletion common/lib/pool_client_wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class PoolClientWrapper implements ClientWrapper {
return this.end();
}

query(sql: any): Promise<any> {
query(sql: string): Promise<any> {
return this.client?.query(sql);
}

Expand Down

0 comments on commit 34aad66

Please sign in to comment.