(placeholderValues?: Record<string, unknown>)
| 217 | } |
| 218 | |
| 219 | async get(placeholderValues?: Record<string, unknown>): Promise<T['get']> { |
| 220 | const { query, logger, client } = this; |
| 221 | |
| 222 | const params = fillPlaceholders(query.params, placeholderValues ?? {}); |
| 223 | logger.logQuery(query.sql, params); |
| 224 | |
| 225 | const clientResult = await this.queryWithCache(query.sql, params, async () => { |
| 226 | return await (client as AsyncRemoteCallback)(query.sql, params, 'get'); |
| 227 | }); |
| 228 | |
| 229 | return this.mapGetResult(clientResult.rows); |
| 230 | } |
| 231 | |
| 232 | override mapGetResult(rows: unknown, isFromBatch?: boolean): unknown { |
| 233 | if (isFromBatch) { |
nothing calls this directly
no test coverage detected