MCPcopy
hub / github.com/drizzle-team/drizzle-orm / all

Method all

drizzle-orm/src/sqlite-proxy/session.ts:207–217  ·  view source on GitHub ↗
(placeholderValues?: Record<string, unknown>)

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 3

mapAllResultMethod · 0.95
fillPlaceholdersFunction · 0.90
logQueryMethod · 0.65

Tested by

no test coverage detected