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

Method run

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

Source from the content-addressed store, hash-verified

175 }
176
177 async run(placeholderValues?: Record<string, unknown>): Promise<SqliteRemoteResult> {
178 const params = fillPlaceholders(this.query.params, placeholderValues ?? {});
179 this.logger.logQuery(this.query.sql, params);
180 return await this.queryWithCache(this.query.sql, params, async () => {
181 return await (this.client as AsyncRemoteCallback)(this.query.sql, params, 'run');
182 });
183 }
184
185 override mapAllResult(rows: unknown, isFromBatch?: boolean): unknown {
186 if (isFromBatch) {

Callers 3

migrateFunction · 0.45
transactionMethod · 0.45
transactionMethod · 0.45

Calls 2

fillPlaceholdersFunction · 0.90
logQueryMethod · 0.65

Tested by

no test coverage detected