Skip to content

Commit 9e7d72e

Browse files
committed
Updated README
1 parent d36628d commit 9e7d72e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,21 @@ PHPCRSH > node:property:show jcr:primaryType
9696
PHPCRSH > 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

101116
Profiles enable you to save and reuse connection settings. Profiles can be

0 commit comments

Comments
 (0)