Function
openLog
(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). |
| 63 | export 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 | |
| 69 | export class EventLog { |
| 70 | readonly id: string; |
Tested by
no test coverage detected