Struct migration_rocksdb::Manager [−][src]
Manages database migration.
Implementations
impl Manager
[src]
pub fn new(config: Config) -> Self
[src]
Creates new migration manager with given configuration.
pub fn add_migration<T: 'static>(&mut self, migration: T) -> Result<()> where
T: Migration,
[src]
T: Migration,
Adds new migration rules.
pub fn execute(&mut self, old_path: &Path, version: u32) -> Result<PathBuf>
[src]
Performs migration in order, starting with a source path, migrating between two temporary databases, and producing a path where the final migration lives.
pub fn is_needed(&self, version: u32) -> bool
[src]
Returns true if migration is needed.
Auto Trait Implementations
impl !RefUnwindSafe for Manager
impl !Send for Manager
impl !Sync for Manager
impl Unpin for Manager
impl !UnwindSafe for Manager
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,