pub enum PostgresKitError {
InvalidPlan(PlanError),
Database {
operation: &'static str,
source: Error,
},
UnmanagedSchema {
schema: String,
},
OwnershipMismatch {
schema: String,
owner: String,
current_role: String,
},
SetupRequired {
schema: String,
},
UpgradeRequired {
schema: String,
current: u64,
expected: u64,
},
HistoryDiverged {
schema: String,
version: u64,
},
SchemaAhead {
schema: String,
actual: u64,
expected: u64,
},
}Expand description
A PostgreSQL schema lifecycle operation failed without applying a fallback.
Variants§
InvalidPlan(PlanError)
The authored schema plan is invalid.
Database
Connection setup or a database operation failed.
UnmanagedSchema
The schema exists, but was not created by this lifecycle protocol.
OwnershipMismatch
The configured database role does not own the Module schema.
SetupRequired
Runtime preparation requires an explicit setup operation first.
UpgradeRequired
Runtime preparation never applies pending migrations.
HistoryDiverged
Applied migration history no longer matches the immutable authored plan.
SchemaAhead
The database is newer than the linked Module implementation.
Trait Implementations§
Source§impl Debug for PostgresKitError
impl Debug for PostgresKitError
Source§impl Display for PostgresKitError
impl Display for PostgresKitError
Source§impl Error for PostgresKitError
impl Error for PostgresKitError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for PostgresKitError
impl !UnwindSafe for PostgresKitError
impl Freeze for PostgresKitError
impl Send for PostgresKitError
impl Sync for PostgresKitError
impl Unpin for PostgresKitError
impl UnsafeUnpin for PostgresKitError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more