pub fn migrate_sessions(
data: SessionMigrationData,
path: String,
passphrase: Option<String>,
progress_listener: Box<dyn ProgressListener>,
) -> Result<(), MigrationError>
Expand description
Migrate sessions and group sessions of a libolm based setup to a vodozemac based setup stored in a SQLite store.
This method allows you to migrate a subset of the data, it should only be
used after the migrate()
method has been already used.
ยง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.