Skip to content

Commit 6cd1313

Browse files
authored
Update the examples of display store information (#2231)
1 parent fdc76aa commit 6cd1313

File tree

1 file changed

+40
-31
lines changed

1 file changed

+40
-31
lines changed

modules/ROOT/pages/database-internals/neo4j-admin-store-info.adoc

Lines changed: 40 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -81,45 +81,59 @@ The `neo4j-admin database info` command has the following options:
8181

8282
== Examples
8383

84+
The following examples show how to use the `neo4j-admin database info` command to display information about a database and its store format.
85+
All examples assume that the Neo4j server is Enterprise Edition and that the database is offline.
86+
8487
.Invoke `neo4j-admin database info` against a database store
8588
====
8689
[source, shell]
8790
----
88-
bin/neo4j-admin database info mygraph.db
91+
bin/neo4j-admin database info healthcare
8992
----
9093
91-
Output:
92-
94+
.Output
95+
[results]
9396
----
94-
Store format version: record-aligned-1.1
95-
Store format introduced in: 5.0.0
97+
Database name: healthcare
98+
Database in use: false
99+
Store format version: block-block-1.1
100+
Store format introduced in: 5.14.0
101+
Last committed transaction id:29
102+
Store needs recovery: false
96103
----
97104
====
98105

99106
[role=enterprise-edition]
100107
.Invoke `neo4j-admin database info` against all databases
101108
====
102-
The command can also be invoked against all databases, as follows:
103-
104-
`neo4j-admin database info --from-path=<databases-directory>`
105-
106109
[source, shell]
107110
----
108-
bin/neo4j-admin database info data/databases
111+
bin/neo4j-admin database info --from-path=../data/databases
109112
----
110113
111-
Output:
112-
114+
.Output
115+
[results]
113116
----
114-
Database name: foo
115-
Database in use: false
116-
Store format version: record-aligned-1.1
117-
Store format introduced in: 5.0.0
118-
Last committed transaction id:2
119-
Store needs recovery: true
120-
121-
Database name: bar
122-
Database in use: true
117+
Database name: healthcare
118+
Database in use: false
119+
Store format version: block-block-1.1
120+
Store format introduced in: 5.14.0
121+
Last committed transaction id:29
122+
Store needs recovery: false
123+
124+
Database name: neo4j
125+
Database in use: false
126+
Store format version: block-block-1.1
127+
Store format introduced in: 5.14.0
128+
Last committed transaction id:27
129+
Store needs recovery: false
130+
131+
Database name: system
132+
Database in use: false
133+
Store format version: record-aligned-1.1
134+
Store format introduced in: 5.0.0
135+
Last committed transaction id:213
136+
Store needs recovery: false
123137
----
124138
====
125139

@@ -133,22 +147,17 @@ When the command is invoked against several databases, if some are *online* they
133147
.Invoke `neo4j-admin database info` against a database and output JSON
134148
====
135149
136-
If you are parsing the results of this command you may use the `--format=json` option to receive the output as JSON.
150+
If you are parsing the results of this command, you may use the `--format=json` option to receive the output as JSON.
137151
All the same fields are included and all values are strings.
138152
139153
[source, shell]
140154
----
141-
bin/neo4j-admin database info --from-path data/databases --format=json foo
155+
bin/neo4j-admin database info --from-path ../data/databases --format=json foo
142156
----
143157
144-
Output:
145-
158+
.Output
159+
[results]
146160
----
147-
{"databaseName":"foo",
148-
"inUse":"false",
149-
"storeFormat”:"record-aligned-1.1",
150-
"storeFormatIntroduced”:"5.0.0",
151-
"lastCommittedTransaction":"2",
152-
"recoveryRequired":"true"}
161+
{"databaseName":"healthcare","inUse":"false","storeFormat":"block-block-1.1","storeFormatIntroduced":"5.14.0","storeFormatSuperseded":null,"lastCommittedTransaction":"29","recoveryRequired":"false"}
153162
----
154163
====

0 commit comments

Comments
 (0)