Write `name`'s segments into name_segment_vocab (idempotent).
(name: string)
| 455 | |
| 456 | /** Write `name`'s segments into name_segment_vocab (idempotent). */ |
| 457 | private insertNameSegments(name: string): void { |
| 458 | const rows: unknown[][] = []; |
| 459 | this.collectNameSegmentRows(name, rows); |
| 460 | this.runBatched( |
| 461 | 'insertNameSegments', |
| 462 | 'INSERT OR IGNORE INTO name_segment_vocab (segment, name) VALUES ', |
| 463 | '(?,?)', |
| 464 | rows |
| 465 | ); |
| 466 | } |
| 467 | |
| 468 | /** |
| 469 | * Insert multiple nodes in a transaction |
no test coverage detected