syn2masFunction migrate
Source pub async fn migrate(
synapse: &mut SynapseReader<'_>,
mas: &mut MasWriter<'_>,
server_name: &str,
rng: &mut impl RngCore,
provider_id_mapping: &HashMap<String, Uuid>,
) -> Result<(), Error>
Expand description
Performs a migration from Synapse’s database to MAS’ database.
§Panics
- If there are more than
usize::MAX
users
§Errors
Errors are returned under the following circumstances:
- An underlying database access error, either to MAS or to Synapse.
- Invalid data in the Synapse database.