(name: string)
| 96 | SET count = excluded.count, machines = excluded.machines`; |
| 97 | |
| 98 | const prop = (name: string): string => `json_extract(e.props, '$.${name}')`; |
| 99 | const quoted = (values: readonly string[]): string => values.map((v) => `'${v}'`).join(', '); |
| 100 | const onlyEvents = (...events: readonly string[]): string => ` AND e.event IN (${quoted(events)})`; |
| 101 |