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

Options controlling how a wallet database is opened or created&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct DatabaseOptions;
----

== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:wallet/DatabaseOptions/create_flags.adoc[`create&lowbar;flags`] 
| Backend&hyphen;specific flags used when creating the database&period;
| xref:wallet/DatabaseOptions/create_passphrase.adoc[`create&lowbar;passphrase`] 
| Passphrase used to encrypt a newly created database&period;
| xref:wallet/DatabaseOptions/max_log_mb.adoc[`max&lowbar;log&lowbar;mb`] 
| Max log size to allow before consolidating&period;
| xref:wallet/DatabaseOptions/require_create.adoc[`require&lowbar;create`] 
| Fail if the database already exists&period;
| xref:wallet/DatabaseOptions/require_existing.adoc[`require&lowbar;existing`] 
| Fail if the database does not already exist&period;
| xref:wallet/DatabaseOptions/require_format.adoc[`require&lowbar;format`] 
| Require a specific database format, if set&period;
| xref:wallet/DatabaseOptions/use_shared_memory.adoc[`use&lowbar;shared&lowbar;memory`] 
| Let other processes access the database&period;
| xref:wallet/DatabaseOptions/use_unsafe_sync.adoc[`use&lowbar;unsafe&lowbar;sync`] 
| Disable file sync for faster performance&period;
| xref:wallet/DatabaseOptions/verify.adoc[`verify`] 
| Check data integrity on load&period;
|===



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