Write `name`'s segments into name_segment_vocab (idempotent).
(name: string)
| 411 | |
| 412 | /** Write `name`'s segments into name_segment_vocab (idempotent). */ |
| 413 | private insertNameSegments(name: string): void { |
| 414 | const rows: unknown[][] = []; |
| 415 | this.collectNameSegmentRows(name, rows); |
| 416 | this.runBatched( |
| 417 | 'insertNameSegments', |
| 418 | 'INSERT OR IGNORE INTO name_segment_vocab (segment, name) VALUES ', |
| 419 | '(?,?)', |
| 420 | rows |
| 421 | ); |
| 422 | } |
| 423 | |
| 424 | /** |
| 425 | * Insert multiple nodes in a transaction |
no test coverage detected