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

Method run

drizzle-orm/src/d1/session.ts:199–205  ·  view source on GitHub ↗
(placeholderValues?: Record<string, unknown>)

Source from the content-addressed store, hash-verified

197 }
198
199 async run(placeholderValues?: Record<string, unknown>): Promise<D1Response> {
200 const params = fillPlaceholders(this.query.params, placeholderValues ?? {});
201 this.logger.logQuery(this.query.sql, params);
202 return await this.queryWithCache(this.query.sql, params, async () => {
203 return this.stmt.bind(...params).run();
204 });
205 }
206
207 async all(placeholderValues?: Record<string, unknown>): Promise<T['all']> {
208 const { fields, query, logger, stmt, customResultMapper } = this;

Callers 15

turso.test.tsFile · 0.45
sqlite.test.tsFile · 0.45
batchMethod · 0.45
queryMethod · 0.45
testsFunction · 0.45
setupSetOperationTestFunction · 0.45
libsql.test.tsFile · 0.45

Calls 2

fillPlaceholdersFunction · 0.90
logQueryMethod · 0.65

Tested by 3

batchMethod · 0.36
queryMethod · 0.36
queryMethod · 0.36