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

Function openLog

packages/computerd/src/exec/log.ts:63–67  ·  view source on GitHub ↗
(db: Database, id: string, opts: LogOptions)

Source from the content-addressed store, hash-verified

61// row exists for the id (i.e. the exec was never spawned, or has
62// been disposed).
63export function openLog(db: Database, id: string, opts: LogOptions): EventLog | undefined {
64 const meta = db.one<MetaRow>(`SELECT * FROM computerd_exec_meta WHERE exec_id = ?`, id);
65 if (meta === undefined) return undefined;
66 return new EventLog(db, id, opts);
67}
68
69export class EventLog {
70 readonly id: string;

Callers 2

getMethod · 0.85
disposeMethod · 0.85

Calls 1

oneMethod · 0.80

Tested by

no test coverage detected