(value: string | undefined)
| 32 | const BATCH_SIZE = 64; |
| 33 | const number = (value: string | undefined): number | undefined => value !== undefined && value !== '' && Number.isFinite(Number(value)) ? Number(value) : undefined; |
| 34 | const id = (value: string | undefined): number => { |
| 35 | const parsed = number(value); |
| 36 | if (parsed === undefined || !Number.isSafeInteger(parsed) || parsed < 0) throw new Error('Graph response contains an invalid identity.'); |
| 37 | return parsed; |
| 38 | }; |
| 39 | const nodeColumns = (alias: string, prefix: string) => [`id(${alias}) AS ${prefix}id`, `${alias}.label AS ${prefix}label`, `${alias}.name AS ${prefix}name`, `${alias}.qualified_name AS ${prefix}qn`, `${alias}.file_path AS ${prefix}file`, `${alias}.start_line AS ${prefix}start_line`, `${alias}.end_line AS ${prefix}end_line`].join(', '); |
| 40 | |
| 41 | /** The cursor binds a complete query result to one graph generation. Every |
no test coverage detected