We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d36628d commit 9e7d72eCopy full SHA for 9e7d72e
1 file changed
README.md
@@ -96,6 +96,21 @@ PHPCRSH > node:property:show jcr:primaryType
96
PHPCRSH > shell:exist
97
````
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
114
## Using profiles
115
116
Profiles enable you to save and reuse connection settings. Profiles can be
0 commit comments