버튼에 제어 달기
This commit is contained in:
@@ -117,10 +117,10 @@ export class PostgreSQLConnector implements DatabaseConnector {
|
||||
}
|
||||
}
|
||||
|
||||
async executeQuery(query: string): Promise<QueryResult> {
|
||||
async executeQuery(query: string, params: any[] = []): Promise<QueryResult> {
|
||||
try {
|
||||
await this.connect();
|
||||
const result = await this.client!.query(query);
|
||||
const result = await this.client!.query(query, params);
|
||||
await this.disconnect();
|
||||
return {
|
||||
rows: result.rows,
|
||||
|
||||
Reference in New Issue
Block a user