fieldSql

tcmts.server.fieldSql · #fm6m7kto · term · runs anywhere

A table row field as SQL: indexes are on exactly this expression (fields are checked, so it's inlined).

export const fieldSql = (f: string): string => `json_extract(data, '$."${f}"')`

used by