pub struct PublicationServerRepositoryAccessMigration { /* private fields */ }
Expand description

Migrates the events, snapshots and info for the event-sourced RepositoryAccess. There is no need to migrate the mutable RepositoryContent structure for this migration.

Implementations§

Trait Implementations§

source§

impl UpgradeAggregateStorePre0_14 for PublicationServerRepositoryAccessMigration

§

type Aggregate = RepositoryAccess

§

type OldInitEvent = Pre0_10RepositoryAccessInitDetails

§

type OldEvent = Pre0_10RepositoryAccessEventDetails

§

type OldStorableDetails = StorableRepositoryCommand

source§

fn store_name(&self) -> &str

source§

fn deployed_store(&self) -> &KeyValueStore

source§

fn preparation_key_value_store(&self) -> &KeyValueStore

source§

fn preparation_aggregate_store(&self) -> &AggregateStore<Self::Aggregate>

source§

fn convert_init_event( &self, old_init: Self::OldInitEvent, handle: MyHandle, actor: String, time: Time ) -> UpgradeResult<StoredCommand<Self::Aggregate>>

Implement this to convert the old init event to a new StoredCommand for the init.
source§

fn convert_old_command( &self, old_command: OldStoredCommand<Self::OldStorableDetails>, old_effect: UnconvertedEffect<Self::OldEvent>, version: u64 ) -> UpgradeResult<CommandMigrationEffect<Self::Aggregate>>

Implement this to convert an old command and convert the included old events. Read more
source§

fn post_command_migration(&self, handle: &MyHandle) -> UpgradeResult<()>

Override this to get a call when the migration of commands for an aggregate is done.
source§

fn upgrade(&self, mode: UpgradeMode) -> UpgradeResult<AspaMigrationConfigs>

Upgrades pre 0.14.x AggregateStore. Read more
source§

fn preparation_store_prepare(&self) -> UpgradeResult<()>

Saves the version of the target upgrade. Wipes the store if there is another version set as the target.
source§

fn report_remaining_work( total_remaining: usize, handle: &MyHandle, data_upgrade_info: &DataUpgradeInfo ) -> UpgradeResult<()>

source§

fn store_new_command( &self, scope: &Scope, command: &StoredCommand<Self::Aggregate> ) -> UpgradeResult<()>

source§

fn data_upgrade_info_key(scope: Scope) -> Key

source§

fn data_upgrade_info(&self, scope: &Scope) -> UpgradeResult<DataUpgradeInfo>

Return the DataUpgradeInfo telling us to where we got to with this migration.
source§

fn update_data_upgrade_info( &self, scope: &Scope, info: &DataUpgradeInfo ) -> UpgradeResult<()>

Update the DataUpgradeInfo
source§

fn clean_migration_help_files(&self) -> UpgradeResult<()>

Clean up keys used for tracking migration progress
source§

fn command_keys( &self, scope: &Scope, from: u64 ) -> Result<Vec<Key>, UpgradeError>

Find all command keys for the scope, starting from the provided sequence. Then sort them by sequence and turn them back into key store keys for further processing.
source§

fn get<V: DeserializeOwned>(&self, key: &Key) -> Result<V, UpgradeError>

source§

fn event_key(scope: Scope, nr: u64) -> Key

source§

fn new_stored_command_key(scope: Scope, version: u64) -> Key

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more