We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 207fbc4 commit 050dfc2Copy full SHA for 050dfc2
1 file changed
src/database/service/Databas.ts src/database/service/Database.tssrc/database/service/Databas.ts renamed to src/database/service/Database.ts
@@ -1,13 +1,10 @@
1
import { PoolClient, QueryResult, QueryResultRow } from 'pg';
2
-import { Catch } from '../../decorators/Catch';
3
-
4
export class DatabaseService {
5
constructor(private _client: PoolClient) {}
6
7
/**
8
* Runs a query with parameters and returns the result.
9
*/
10
- @Catch()
11
async query<T extends QueryResultRow>(sql: string, params: any[] = []): Promise<QueryResult<T>> {
12
return await this._client.query<T>(sql, params);
13
}
0 commit comments