(placeholderValues?: Record<string, unknown>)
| 205 | } |
| 206 | |
| 207 | async all(placeholderValues?: Record<string, unknown>): Promise<T['all']> { |
| 208 | const { query, logger, client } = this; |
| 209 | |
| 210 | const params = fillPlaceholders(query.params, placeholderValues ?? {}); |
| 211 | logger.logQuery(query.sql, params); |
| 212 | |
| 213 | const { rows } = await this.queryWithCache(query.sql, params, async () => { |
| 214 | return await (client as AsyncRemoteCallback)(query.sql, params, 'all'); |
| 215 | }); |
| 216 | return this.mapAllResult(rows); |
| 217 | } |
| 218 | |
| 219 | async get(placeholderValues?: Record<string, unknown>): Promise<T['get']> { |
| 220 | const { query, logger, client } = this; |
nothing calls this directly
no test coverage detected