pub struct Migrator;

Implementations

Migrate all data in all of databases from the source environment to the destination environment. This includes all key/value pairs in the main database that aren’t metadata about subdatabases and all key/value pairs in all subdatabases.

Other backend-specific metadata such as map size or maximum databases left intact on the given environments.

The destination environment should be empty of data, otherwise an error is returned.

Same as the the migrate_x_to_y migration method above, but automatically attempts to open the source environment. Finally, deletes all of its supporting files if there’s no other environment open at that path and the migration succeeded.

Same as the open_and_migrate_x_to_y migration method above, but ignores the migration and doesn’t delete any files if the following conditions apply:

  • Source environment is invalid/corrupted, unavailable, or empty.
  • Destination environment is not empty. Use this instead of the other migration methods if:
  • You’re not concerned by throwing away old data and starting fresh with a new store.
  • You’ll never want to overwrite data in the new store from the old store.

Migrate all data in all of databases from the source environment to the destination environment. This includes all key/value pairs in the main database that aren’t metadata about subdatabases and all key/value pairs in all subdatabases.

Other backend-specific metadata such as map size or maximum databases left intact on the given environments.

The destination environment should be empty of data, otherwise an error is returned.

Same as the the migrate_x_to_y migration method above, but automatically attempts to open the source environment. Finally, deletes all of its supporting files if there’s no other environment open at that path and the migration succeeded.

Same as the open_and_migrate_x_to_y migration method above, but ignores the migration and doesn’t delete any files if the following conditions apply:

  • Source environment is invalid/corrupted, unavailable, or empty.
  • Destination environment is not empty. Use this instead of the other migration methods if:
  • You’re not concerned by throwing away old data and starting fresh with a new store.
  • You’ll never want to overwrite data in the new store from the old store.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.