Skip to content
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Depending on what you want to see, you can list:

* All databases.
* A particular database.
* The default database.
* The DBMS default database.
* The home database.

These commands return the following columns:
Expand Down Expand Up @@ -81,6 +81,8 @@ The default for a standalone database is `neo4j://localhost:7687`. label:default

| role
| The current role of the database (`primary`, `secondary`, `unknown`). label:default-output[]

The value will be `NULL` for composite databases, as it is not applicable for them.
| STRING

| writer
Expand Down Expand Up @@ -117,34 +119,42 @@ See <<database-states>> for more information.

| default
|
Show if this is the default database for the DBMS. label:default-output[]
`true` if this is the default database for the DBMS. label:default-output[]
Not returned by `SHOW HOME DATABASE` or `SHOW DEFAULT DATABASE`.
| BOOLEAN

| home
|
Shown if this is the home database for the current user. label:default-output[]
`true` if this is the home database for the current user. label:default-output[]
Not returned by `SHOW HOME DATABASE` or `SHOW DEFAULT DATABASE`.
| BOOLEAN

| `currentPrimariesCount`
| Number of primaries for this database reported as running currently.
It is the same as the number of rows where `role=primary` and `name=this database`.

The value will be `NULL` for composite databases, as it is not applicable for them.
| INTEGER

| `currentSecondariesCount`
| Number of secondaries for this database reported as running currently.
It is the same as the number of rows where `role=secondary` and `name=this database`.

The value will be `NULL` for composite databases, as it is not applicable for them.
| INTEGER

| `requestedPrimariesCount`
| The requested number of primaries for this database.
May be lower than current if the DBMS is currently reducing the number of copies of the database, or higher if it is currently increasing the number of copies.

The value will be `NULL` for composite databases, as it is not applicable for them.
| INTEGER

| `requestedSecondariesCount`
| The requested number of secondaries for this database.
May be lower than current if the DBMS is currently reducing the number of copies of the database, or higher if it is currently increasing the number of copies.

The value will be `NULL` for composite databases, as it is not applicable for them.
| INTEGER

| creationTime
Expand All @@ -171,6 +181,8 @@ The value is a string formatted as:
----
A database must be `online` or `deallocating` for this value to be available.
For other database states the value will be `NULL`.

The value will be `NULL` for composite databases, as it is not applicable for them.
| STRING

| lastCommittedTxn
Expand All @@ -195,6 +207,8 @@ For other database states the value will be `NULL`.

|options
|The map of options applied to the database.

The value will be `NULL` for composite databases, as it is not applicable for them.
| MAP

|===
Expand Down