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
96
96
PHPCRSH > shell:exist
97
97
` ` ` `
98
98
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
+
99
114
# # Using profiles
100
115
101
116
Profiles enable you to save and reuse connection settings. Profiles can be
You can’t perform that action at this time.
0 commit comments