(index: IndexDef)
| 131 | } |
| 132 | |
| 133 | override getJsonIndexDefinition(index: IndexDef): string[] { |
| 134 | return index.columnNames.map(column => { |
| 135 | if (!column.includes('.')) { |
| 136 | return column; |
| 137 | } |
| 138 | |
| 139 | const [root, ...path] = column.split('.'); |
| 140 | return `(json_extract(${root}, '$.${path.join('.')}'))`; |
| 141 | }); |
| 142 | } |
| 143 | |
| 144 | override supportsUnionWhere(): boolean { |
| 145 | return true; |