[#wallet-DatabaseStatus]
= xref:wallet.adoc[wallet]::DatabaseStatus
:relfileprefix: ../
:mrdocs:

Result of opening or creating a wallet database&period;

== Synopsis

Declared in `&lt;wallet&sol;db&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
enum class DatabaseStatus : int;
----

== Members

[cols="1,4"]
|===
| Name| Description
| `SUCCESS` 
| The database was opened or created successfully&period;
| `FAILED&lowbar;BAD&lowbar;PATH` 
| The provided path is invalid&period;
| `FAILED&lowbar;BAD&lowbar;FORMAT` 
| The database format is invalid or unrecognized&period;
| `FAILED&lowbar;LEGACY&lowbar;DISABLED` 
| The database is a legacy wallet and legacy support is disabled&period;
| `FAILED&lowbar;ALREADY&lowbar;LOADED` 
| The database is already loaded&period;
| `FAILED&lowbar;ALREADY&lowbar;EXISTS` 
| A database already exists at the path&period;
| `FAILED&lowbar;NOT&lowbar;FOUND` 
| No database was found at the path&period;
| `FAILED&lowbar;CREATE` 
| The database could not be created&period;
| `FAILED&lowbar;LOAD` 
| The database could not be loaded&period;
| `FAILED&lowbar;VERIFY` 
| The database failed integrity verification&period;
| `FAILED&lowbar;ENCRYPT` 
| The database could not be encrypted&period;
| `FAILED&lowbar;INVALID&lowbar;BACKUP&lowbar;FILE` 
| The backup file is invalid&period;
| `FAILED&lowbar;NEW&lowbar;UNNAMED` 
| A new database was requested without a name&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
