Function matrix_sdk_crypto_ffi::migrate

source ·
pub fn migrate(
    data: MigrationData,
    path: String,
    passphrase: Option<String>,
    progress_listener: Box<dyn ProgressListener>
) -> Result<(), MigrationError>
Expand description

Migrate a libolm based setup to a vodozemac based setup stored in a SQLite store.

§Arguments

  • data - The data that should be migrated over to the SQLite store.

  • path - The path where the SQLite store should be created.

  • passphrase - The passphrase that should be used to encrypt the data at rest in the SQLite store. Warning, if no passphrase is given, the store and all its data will remain unencrypted.

  • progress_listener - A callback that can be used to introspect the progress of the migration.