pub enum CatalogError {
EmptyCatalog,
DuplicateTableId(TableId),
DuplicateEdgeId(EdgeId),
DuplicateTableName {
schema: String,
name: String,
},
MissingTable(TableId),
InvalidSqlIdent,
InvalidPrimaryKey,
PrimaryKeyOutOfRange,
InvalidTableId,
InvalidEdgeId,
}Expand description
Catalog validation failures.
Variants§
EmptyCatalog
No tables were registered.
DuplicateTableId(TableId)
Duplicate registered table id.
DuplicateEdgeId(EdgeId)
Duplicate registered edge id.
DuplicateTableName
Duplicate schema-qualified table name.
MissingTable(TableId)
Referenced table id was not registered.
InvalidSqlIdent
SQL identifier failed validation.
InvalidPrimaryKey
SQL primary key was negative.
PrimaryKeyOutOfRange
SQL primary key does not fit in a NodeKey payload.
InvalidTableId
Registered table id was negative or overflowed u32.
InvalidEdgeId
Registered edge id was negative or overflowed u32.
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 (const: unstable) · 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 From<CatalogError> for PostgresGraphError
impl From<CatalogError> for PostgresGraphError
Source§fn from(error: CatalogError) -> Self
fn from(error: CatalogError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CatalogError
impl PartialEq for CatalogError
Source§fn eq(&self, other: &CatalogError) -> bool
fn eq(&self, other: &CatalogError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq 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 UnsafeUnpin 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