@@ -12,9 +12,9 @@ To connect to a doctrine-dbal PHPCR repository:
12
12
Full definition:
13
13
14
14
```` bash
15
- $ php bin/phpcr --help
15
+ ./ bin/phpcrsh --help
16
16
Usage:
17
- phpcr_shell [-h| --help] [-v| --verbose] [-V| --version] [--ansi] [--no-ansi] [-t| --transport= " ..." ] [-pu| --phpcr_username = " ..." ] [-pp| --phpcr_password [= " ..." ]] [-pw| --phpcr_workspace [= " ..." ]] [-du| --db_username = " ..." ] [-dn| --db_name = " ..." ] [-dp| --db_password [= " ..." ]] [-dh| --db_host = " ..." ] [-dd| --db_driver = " ..." ] [-dP| --db_path = " ..." ]
17
+ phpcr_shell [-h| --help] [-v| --verbose] [-V| --version] [--ansi] [--no-ansi] [-t| --transport= " ..." ] [-pu| --phpcr-username = " ..." ] [-pp| --phpcr-password [= " ..." ]] [-pw| --phpcr-workspace [= " ..." ]] [-du| --db-username = " ..." ] [-dn| --db-name = " ..." ] [-dp| --db-password [= " ..." ]] [-dh| --db-host = " ..." ] [-dd| --db-driver = " ..." ] [-dP| --db-path = " ... " ] [-url | --repo-url = " ..." ]
18
18
19
19
Options:
20
20
--help (-h) Display this help message.
@@ -23,23 +23,24 @@ Options:
23
23
--ansi Force ANSI output.
24
24
--no-ansi Disable ANSI output.
25
25
--transport (-t) Transport to use. (default: " doctrine-dbal" )
26
- --phpcr_username (-pu) PHPCR Username. (default: " admin" )
27
- --phpcr_password (-pp) PHPCR Password. (default: " admin" )
28
- --phpcr_workspace (-pw) PHPCR Workspace. (default: " default" )
29
- --db_username (-du) Database Username. (default: " root" )
30
- --db_name (-dn) Database Name. (default: " phpcr" )
31
- --db_password (-dp) Database Password.
32
- --db_host (-dh) Database Host. (default: " localhost" )
33
- --db_driver (-dd) Database Transport. (default: " pdo_mysql" )
34
- --db_path (-dP) Database Path.
26
+ --phpcr-username (-pu) PHPCR Username. (default: " admin" )
27
+ --phpcr-password (-pp) PHPCR Password. (default: " admin" )
28
+ --phpcr-workspace (-pw) PHPCR Workspace. (default: " default" )
29
+ --db-username (-du) Database Username. (default: " root" )
30
+ --db-name (-dn) Database Name. (default: " phpcr" )
31
+ --db-password (-dp) Database Password.
32
+ --db-host (-dh) Database Host. (default: " localhost" )
33
+ --db-driver (-dd) Database Transport. (default: " pdo_mysql" )
34
+ --db-path (-dP) Database Path.
35
+ --repo-url (-url) URL of repository (e.g. for jackrabbit). (default: " http://localhost:8080/server/" )
35
36
` ` ` `
36
37
37
38
# # Executing Select Queries
38
39
39
40
JCR_SQL2 Select queries can be executed in the same way as in the MySQL shell:
40
41
41
42
` ` ` ` bash
42
- PHPCR > select * from nt:unstructured;
43
+ PHPCR > SELECT * FROM nt:unstructured;
43
44
0
44
45
nt:unstructured
45
46
/
@@ -72,33 +73,12 @@ PHPCR > pwd
72
73
PHPCR > mv foobar /barfoo
73
74
` ` ` `
74
75
75
- All available commands:
76
+ List all available commands with the ` list ` command :
76
77
77
78
` ` ` ` bash
78
- Welcome to the PHPCR shell (1.0).
79
-
80
- At the prompt, type help for some help,
81
- or list to get a list of available commands.
82
-
83
- To exit the shell, type ^D.
84
-
85
- PHPCR > help
86
- PHPCR version 1.0
87
-
88
- Usage:
89
- [options] command [arguments]
90
-
91
- Options:
92
- --help -h Display this help message.
93
- --quiet -q Do not output any message.
94
- --verbose -v Increase verbosity of messages.
95
- --version -V Display this application version.
96
- --ansi Force ANSI output.
97
- --no-ansi Disable ANSI output.
98
- --no-interaction -n Do not ask any interactive question.
99
-
100
79
Available commands:
101
80
cd Change the current path
81
+ exit Logout and quit the shell
102
82
help Displays help for a command
103
83
list Lists commands
104
84
ls Alias for dump
0 commit comments