MCPcopy Create free account
hub / github.com/cloudflare/computer / evict

Method evict

packages/computerd/src/exec/log.ts:199–207  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

197 }
198
199 private evict(): void {
200 this.db.transactionSync(() => {
201 this.db.run(`DELETE FROM computerd_exec_log WHERE exec_id = ?`, this.id);
202 this.db.run(
203 `UPDATE computerd_exec_meta SET bytes = 0, evicted = 1 WHERE exec_id = ?`,
204 this.id,
205 );
206 });
207 }
208}
209
210function materialise(id: string, row: EventRow): ExecEvent {

Callers 1

appendMethod · 0.95

Calls 2

transactionSyncMethod · 0.65
runMethod · 0.45

Tested by

no test coverage detected