@@ -81,45 +81,59 @@ The `neo4j-admin database info` command has the following options:
81
81
82
82
== Examples
83
83
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
+
84
87
.Invoke `neo4j-admin database info` against a database store
85
88
====
86
89
[source, shell]
87
90
----
88
- bin/neo4j-admin database info mygraph.db
91
+ bin/neo4j-admin database info healthcare
89
92
----
90
93
91
- Output:
92
-
94
+ . Output
95
+ [results]
93
96
----
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
96
103
----
97
104
====
98
105
99
106
[role=enterprise-edition]
100
107
.Invoke `neo4j-admin database info` against all databases
101
108
====
102
- The command can also be invoked against all databases, as follows:
103
-
104
- `neo4j-admin database info --from-path=<databases-directory>`
105
-
106
109
[source, shell]
107
110
----
108
- bin/neo4j-admin database info data/databases
111
+ bin/neo4j-admin database info --from-path=../ data/databases
109
112
----
110
113
111
- Output:
112
-
114
+ . Output
115
+ [results]
113
116
----
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
123
137
----
124
138
====
125
139
@@ -133,22 +147,17 @@ When the command is invoked against several databases, if some are *online* they
133
147
.Invoke `neo4j-admin database info` against a database and output JSON
134
148
====
135
149
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.
137
151
All the same fields are included and all values are strings.
138
152
139
153
[source, shell]
140
154
----
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
142
156
----
143
157
144
- Output:
145
-
158
+ . Output
159
+ [results]
146
160
----
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"}
153
162
----
154
163
====
0 commit comments