pub struct DryRunAdapter;Expand description
A storage adapter that assumes no existing schema. It produces a plan to create everything from scratch.
Trait Implementations§
Source§impl StorageAdapter for DryRunAdapter
impl StorageAdapter for DryRunAdapter
Source§fn plan_schema(&self, target: &AppManifest) -> Result<SchemaPlan, StorageError>
fn plan_schema(&self, target: &AppManifest) -> Result<SchemaPlan, StorageError>
Produce a plan that would bring storage in line with the target manifest.
Source§fn apply_schema(&self, _plan: &SchemaPlan) -> Result<(), StorageError>
fn apply_schema(&self, _plan: &SchemaPlan) -> Result<(), StorageError>
Apply a schema plan. Not implemented by dry-run adapters.
Auto Trait Implementations§
impl Freeze for DryRunAdapter
impl RefUnwindSafe for DryRunAdapter
impl Send for DryRunAdapter
impl Sync for DryRunAdapter
impl Unpin for DryRunAdapter
impl UnsafeUnpin for DryRunAdapter
impl UnwindSafe for DryRunAdapter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more