* Collect (segment, name) rows for a name, honouring the same session-dedupe * semantics as insertNameSegments(). Shared by the bulk write paths.
(name: string, out: unknown[][])
| 538 | * semantics as insertNameSegments(). Shared by the bulk write paths. |
| 539 | */ |
| 540 | private collectNameSegmentRows(name: string, out: unknown[][]): void { |
| 541 | if (this.segmentedNames.has(name)) return; |
| 542 | if (this.segmentedNames.size >= QueryBuilder.MAX_SEGMENTED_NAMES) this.segmentedNames.clear(); |
| 543 | this.segmentedNames.add(name); |
| 544 | for (const segment of splitIdentifierSegments(name)) out.push([segment, name]); |
| 545 | } |
| 546 | |
| 547 | /** |
| 548 | * Update an existing node |
no test coverage detected