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

Method get

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

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 3

mapGetResultMethod · 0.95
fillPlaceholdersFunction · 0.90
logQueryMethod · 0.65

Tested by

no test coverage detected