2.1 KiB
source_files, generated_at, model, schema_version, sha256
| source_files | generated_at | model | schema_version | sha256 | |
|---|---|---|---|---|---|
|
2026-04-17T16:10:34.394598+00:00 | zai-org/GLM-5-FP8 | 1 | 58b4a0b43cbc1077 |
Database
Purpose
This module provides an event mechanism for communicating database switch operations and their outcomes throughout the application. It supports reporting various failure scenarios during database migration/switch operations (remote connection failures, backup failures, copy failures, restore failures) as well as successful completion, enabling the application to respond appropriately to database state transitions.
Public Interface
DbStatusEvent
- Signature:
public class DbStatusEvent : PubSubEvent<DbStatusArg> - Description: A Prism
PubSubEventthat carries aDbStatusArgpayload. Used to notify the application when a database switch event has occurred.
DbStatusArg
-
Signature:
public class DbStatusArg -
Description: Argument class encapsulating the status and optional exception details for a database operation.
-
EventTypes(nested enum): Defines possible operation outcomes:FailedToConnectToRemoteFailedToBackupLocalFailedToCopyFailedToRestoreLocalFailedToBackupLocalFileNotFoundCompleteLegacyStatus
-
Statusproperty:EventTypes(getter only) - The status type of the operation. -
Exceptionproperty:Exception(getter only) - The exception associated with a failure, if any. -
Constructor:
DbStatusArg(EventTypes error, Exception exception)- Initializes a new instance with the specified status and exception.
-
Invariants
Statusis immutable after construction (get-only property).Exceptionis immutable after construction (get-only property).Exceptionmay benullfor non-error statuses (e.g.,Complete), though this is not enforced by the constructor.
Dependencies
- Depends on:
System(forExceptiontype),Prism.Events(forPubSubEvent<T>base class). - Depended on by: Not determinable from source alone; consumers would subscribe to or publish this event via Prism