MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / batch

Method batch

__tests__/telemetry-services.test.ts:89–99  ·  view source on GitHub ↗
(statements: SqliteD1Statement[])

Source from the content-addressed store, hash-verified

87 }
88
89 async batch(statements: SqliteD1Statement[]): Promise<ReturnType<SqliteD1Statement['execute']>[]> {
90 this.db.exec('BEGIN');
91 try {
92 const results = statements.map((s) => s.execute());
93 this.db.exec('COMMIT');
94 return results;
95 } catch (err) {
96 this.db.exec('ROLLBACK');
97 throw err;
98 }
99 }
100}
101
102// ---------------------------------------------------------------------------

Callers 8

writeToD1Function · 0.80
rollupDayFunction · 0.80
foldLegacyUsageFunction · 0.80
summaryFunction · 0.80
timeseriesFunction · 0.80
durationBucketSeriesFunction · 0.80
activationFunction · 0.80
retentionFunction · 0.80

Calls 3

mapMethod · 0.80
execMethod · 0.65
executeMethod · 0.45

Tested by

no test coverage detected