Write `name`'s segments into name_segment_vocab (idempotent).
(name: string)
| 800 | |
| 801 | /** Write `name`'s segments into name_segment_vocab (idempotent). */ |
| 802 | private insertNameSegments(name: string): void { |
| 803 | const rows: unknown[][] = []; |
| 804 | this.collectNameSegmentRows(name, rows); |
| 805 | this.runBatched( |
| 806 | 'insertNameSegments', |
| 807 | 'INSERT OR IGNORE INTO name_segment_vocab (segment, name) VALUES ', |
| 808 | '(?,?)', |
| 809 | rows |
| 810 | ); |
| 811 | } |
| 812 | |
| 813 | /** |
| 814 | * Insert multiple nodes in a transaction |
no test coverage detected