Write `name`'s segments into name_segment_vocab (idempotent).
(name: string)
| 863 | |
| 864 | /** Write `name`'s segments into name_segment_vocab (idempotent). */ |
| 865 | private insertNameSegments(name: string): void { |
| 866 | const rows: unknown[][] = []; |
| 867 | this.collectNameSegmentRows(name, rows); |
| 868 | this.runBatched( |
| 869 | 'insertNameSegments', |
| 870 | 'INSERT OR IGNORE INTO name_segment_vocab (segment, name) VALUES ', |
| 871 | '(?,?)', |
| 872 | rows |
| 873 | ); |
| 874 | } |
| 875 | |
| 876 | /** |
| 877 | * Insert multiple nodes in a transaction |
no test coverage detected