fieldSql

tcmts.atproto.lib.server.fieldSql · #fm6m7kto · function · 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