File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,21 @@ PHPCRSH > node:property:show jcr:primaryType
9696PHPCRSH > shell:exist
9797` ` ` `
9898
99+ # # Executing queries
100+
101+ PHPCR Shell allows JCR-SQL2 queries to be entered directly on the command line
102+ and adds supports UPDATE and DELETE queries in addition to SELECT.
103+
104+ ` ` ` ` sql
105+ SELECT * FROM [nt:unstructured] WHERE title = " foobar" ;
106+ UPDATE [nt:unstructured] SET title= " barfoo" WHERE title= " foobar"
107+ DELETE FROM [nt:unstructured] WHERE title= " barfoo" ;
108+ ` ` ` `
109+
110+ UPDATE and DELETE queries are bound to the session, and require a
111+ ` session:save` command to be issued for the changes to be written to the
112+ database.
113+
99114# # Using profiles
100115
101116Profiles enable you to save and reuse connection settings. Profiles can be
You can’t perform that action at this time.
0 commit comments