(sql: string, args?: any[])
| 103 | } |
| 104 | |
| 105 | public async query<T>(sql: string, args?: any[]) { |
| 106 | if (!this.db) { |
| 107 | await this.connectToPostgres(); |
| 108 | } |
| 109 | |
| 110 | const result = await this.db!.queryObject<T>(sql, args); |
| 111 | |
| 112 | return result.rows; |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | // This allows us to have nice SQL syntax highlighting in template literals |
no test coverage detected