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