pub enum CatalogError {
Show 40 variants
TableAlreadyExists(String),
TableNotFound {
table_name: String,
},
ColumnAlreadyExists(String),
ColumnNotFound {
column_name: String,
table_name: String,
},
SchemaAlreadyExists(String),
SchemaNotFound(String),
SchemaNotEmpty(String),
RoleAlreadyExists(String),
RoleNotFound(String),
DomainAlreadyExists(String),
DomainNotFound(String),
DomainInUse {
domain_name: String,
dependent_columns: Vec<(String, String)>,
},
SequenceAlreadyExists(String),
SequenceNotFound(String),
SequenceInUse {
sequence_name: String,
dependent_columns: Vec<(String, String)>,
},
TypeAlreadyExists(String),
TypeNotFound(String),
TypeInUse(String),
CollationAlreadyExists(String),
CollationNotFound(String),
CharacterSetAlreadyExists(String),
CharacterSetNotFound(String),
TranslationAlreadyExists(String),
TranslationNotFound(String),
ViewAlreadyExists(String),
ViewNotFound(String),
ViewInUse {
view_name: String,
dependent_views: Vec<String>,
},
TriggerAlreadyExists(String),
TriggerNotFound(String),
AssertionAlreadyExists(String),
AssertionNotFound(String),
FunctionAlreadyExists(String),
FunctionNotFound(String),
ProcedureAlreadyExists(String),
ProcedureNotFound(String),
ConstraintAlreadyExists(String),
ConstraintNotFound(String),
IndexAlreadyExists {
index_name: String,
table_name: String,
},
IndexNotFound {
index_name: String,
table_name: String,
},
CircularForeignKey {
table_name: String,
message: String,
},
}Expand description
Errors returned by catalog operations.
Variants§
TableAlreadyExists(String)
TableNotFound
ColumnAlreadyExists(String)
ColumnNotFound
SchemaAlreadyExists(String)
SchemaNotFound(String)
SchemaNotEmpty(String)
RoleAlreadyExists(String)
RoleNotFound(String)
DomainAlreadyExists(String)
DomainNotFound(String)
DomainInUse
SequenceAlreadyExists(String)
SequenceNotFound(String)
SequenceInUse
TypeAlreadyExists(String)
TypeNotFound(String)
TypeInUse(String)
CollationAlreadyExists(String)
CollationNotFound(String)
CharacterSetAlreadyExists(String)
CharacterSetNotFound(String)
TranslationAlreadyExists(String)
TranslationNotFound(String)
ViewAlreadyExists(String)
ViewNotFound(String)
ViewInUse
TriggerAlreadyExists(String)
TriggerNotFound(String)
AssertionAlreadyExists(String)
AssertionNotFound(String)
FunctionAlreadyExists(String)
FunctionNotFound(String)
ProcedureAlreadyExists(String)
ProcedureNotFound(String)
ConstraintAlreadyExists(String)
ConstraintNotFound(String)
IndexAlreadyExists
IndexNotFound
CircularForeignKey
Trait Implementations§
Source§impl Clone for CatalogError
impl Clone for CatalogError
Source§fn clone(&self) -> CatalogError
fn clone(&self) -> CatalogError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CatalogError
impl Debug for CatalogError
Source§impl Display for CatalogError
impl Display for CatalogError
Source§impl Error for CatalogError
impl Error for CatalogError
1.30.0 · 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()
Source§impl PartialEq for CatalogError
impl PartialEq for CatalogError
impl StructuralPartialEq for CatalogError
Auto Trait Implementations§
impl Freeze for CatalogError
impl RefUnwindSafe for CatalogError
impl Send for CatalogError
impl Sync for CatalogError
impl Unpin for CatalogError
impl UnwindSafe for CatalogError
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