(sql: string, ...params: unknown[])
| 114 | }; |
| 115 | |
| 116 | const one = (sql: string, ...params: unknown[]): Row | undefined => |
| 117 | db.prepare(sql).get(...(params.map(bindable) as never[])) as Row | undefined; |
| 118 | |
| 119 | /** POST /v1/events the way a client does, then wait for the off-response-path write. */ |
| 120 | async function post(machineId: string, events: Row[]): Promise<number> { |