@@ -60,87 +60,9 @@ Options:
6060 --repo-url (-url) URL of repository (e.g. for jackrabbit). (default: " http://localhost:8080/server/" )
6161` ` ` `
6262
63- # # Executing Select Queries
63+ # # TODO
6464
65- JCR_SQL2 Select queries can be executed in the same way as in the MySQL shell:
65+ - Versioning:
66+ - Activity
67+ - Configuration
6668
67- ` ` ` ` bash
68- PHPCR > SELECT * FROM [nt:unstructured];
69-
70- | Row: # 13 Score: 3
71- | Sel: nt:unstructured Path: /functional/Lyon_65019 UID: e6e74fdb-d329-4405-abd6-317bd0a9a325
72- +--------------------+--------+----------+--------------------------------------+
73- | Name | Type | Multiple | Value |
74- +--------------------+--------+----------+--------------------------------------+
75- | phpcr:classparents | String | yes | |
76- | phpcr:class | String | no | Doctrine\T ests\M odels\C MS\C msAddress |
77- | jcr:uuid | String | no | e6e74fdb-d329-4405-abd6-317bd0a9a325 |
78- | jcr:mixinTypes | Name | yes | [0] phpcr:managed |
79- | | | | [1] mix:referenceable |
80- | country | String | no | France |
81- | jcr:primaryType | Name | no | nt:unstructured |
82- | city | String | no | Lyon |
83- | zip | String | no | 65019 |
84- +--------------------+--------+----------+--------------------------------------+
85-
86- | Row: # 14 Score: 3
87- | Sel: nt:unstructured Path: /functional/anonymous UID: 40d35c13-083a-447d-a86a-04bfee2f0608
88- +--------------------+--------+----------+--------------------------------------+
89- | Name | Type | Multiple | Value |
90- +--------------------+--------+----------+--------------------------------------+
91- | phpcr:class | String | no | Doctrine\T ests\M odels\C MS\C msUser |
92- | phpcr:classparents | String | yes | |
93- | jcr:uuid | String | no | 40d35c13-083a-447d-a86a-04bfee2f0608 |
94- | jcr:mixinTypes | Name | yes | [0] phpcr:managed |
95- | | | | [1] mix:referenceable |
96- | username | String | no | anonymous |
97- | jcr:primaryType | Name | no | nt:unstructured |
98- +--------------------+--------+----------+--------------------------------------+
99-
100- 2 rows in set (0.04 sec)
101- ` ` ` `
102-
103- # # Changing the CWD
104-
105- The PHPCR shell allows you to navigate the PHPCR document hierarchy like a file system
106-
107- ` ` ` ` bash
108- PHPCR > ls
109- ROOT:
110- cms/
111- foobar/
112- some-node
113- PHPCR > cd cms/foobar
114- PHPCR > pwd
115- /cms/foobar
116- PHPCR > mv foobar /barfoo
117- ` ` ` `
118-
119- # # All other commands
120-
121- The PHPCR shell wraps all the commands of the ` phpcr-utils` package, list
122- them with the ` list` command:
123-
124- ` ` ` ` bash
125- PHPCR> list
126- Available commands:
127- cd Change the current path
128- exit Logout and quit the shell
129- help Displays help for a command
130- list Lists commands
131- ls Alias for dump
132- mv Moves a node from one path to another
133- nt-list List all available node types in the repository
134- nt-register Register node types in the PHPCR repository
135- pwd Print Working Directory (or path)
136- rm Remove content from the repository
137- select Execute an JCR_SQL2 query.
138- touch Create or modify a node
139- update Command to manipulate the nodes in the workspace.
140- workspace-create Create a workspace in the configured repository
141- workspace-delete Delete a workspace from the configured repository
142- workspace-export Export nodes from the repository, either to the JCR system view format or the document view format
143- workspace-import Import xml data into the repository, either in JCR system view format or arbitrary xml
144- workspace-list List all available workspaces in the configured repository
145- workspace-purge Remove all nodes from a workspace
146- ` ` ` `
0 commit comments