compose static method

  1. @protected
List<Sql> compose(
  1. String sp
)

Composes and returns arguments for json_extract.

Implementation

@protected
static List<Sql> compose(String sp) {
  var dp = standardDataPath;
  var fp = sp.isEmpty ? dp : (sp.startsWith("[") ? dp + sp : "$dp.$sp");
  return [SqlI(columnValue), SqlL(fp)];
}