phpcr / phpcr-shell

PHPCR Shell
MIT License
69 stars 19 forks source link

APPLY EXPR #163

Closed dbu closed 8 years ago

dbu commented 9 years ago

it could be cool to be able to execute a custom expression on each result with something like

UPDATE [nt:unstructured] AS a INNER JOIN [nt:unstructured] AS t ON ISCHILDNODE(t, a) 
APPLY EXPR('row.getNode("t").setProperty("originalLinkCaption", row.getNode("a").getPropertyValue("originalLinkCaption"))') 
WHERE a.[phpcr:class] = 'Liipch\MagazineBundle\Document\Article' ;
dantleech commented 8 years ago

Was this addressed by : http://phpcr.readthedocs.io/en/latest/phpcr-shell/querying.html#expr ?

dbu commented 8 years ago

absolutely