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

Move all records from the BDB database to a new SQLite database for storage&period; The original BDB file will be deleted and replaced with a new SQLite file&period; A backup is not created&period; May crash if something unexpected happens in the filesystem&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e1e59a7e8), requires&lowbar;capability(0x7f2e11aab5a8), requires&lowbar;capability(0x7f2e16a01398), requires&lowbar;capability(0x7f2e15f30838), requires&lowbar;capability(0x7f2e12c6f4c8)&rsqb;&rsqb;
bool
MigrateToSQLite(xref:bilingual_str.adoc[bilingual&lowbar;str]& error);
----

== Return Value

true if the database was migrated to SQLite&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *error*
| Set to an error message on failure&period;
|===


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