Skip to main content

SqlStateClass

Struct SqlStateClass 

Source
pub struct SqlStateClass(/* private fields */);
Expand description

The class of a SqlState, with a constant for each class SQL:2011 defines.

Implementations§

Source§

impl SqlStateClass

Source

pub fn as_str(&self) -> &str

The two character code of the class.

Source

pub fn is_standard(&self) -> bool

Whether the class starts with 0-4 or A-H, which the SQL standard reserves.

Source§

impl SqlStateClass

Source

pub const SUCCESSFUL_COMPLETION: Self

00, successful completion.

Source

pub const WARNING: Self

01, warning.

Source

pub const NO_DATA: Self

02, no data.

Source

pub const DYNAMIC_SQL_ERROR: Self

07, dynamic SQL error.

Source

pub const CONNECTION_EXCEPTION: Self

08, connection exception.

Source

pub const TRIGGERED_ACTION_EXCEPTION: Self

09, triggered action exception.

Source

pub const FEATURE_NOT_SUPPORTED: Self

0A, feature not supported.

Source

pub const INVALID_TARGET_TYPE_SPECIFICATION: Self

0D, invalid target type specification.

Source

pub const INVALID_SCHEMA_NAME_LIST_SPECIFICATION: Self

0E, invalid schema name list specification.

Source

pub const LOCATOR_EXCEPTION: Self

0F, locator exception.

Source

pub const RESIGNAL_WHEN_HANDLER_NOT_ACTIVE: Self

0K, resignal when handler not active.

Source

pub const INVALID_GRANTOR: Self

0L, invalid grantor.

Source

pub const INVALID_SQL_INVOKED_PROCEDURE_REFERENCE: Self

0M, invalid SQL-invoked procedure reference.

Source

pub const SQL_XML_MAPPING_ERROR: Self

0N, SQL/XML mapping error.

Source

pub const INVALID_ROLE_SPECIFICATION: Self

0P, invalid role specification.

Source

pub const INVALID_TRANSFORM_GROUP_NAME_SPECIFICATION: Self

0S, invalid transform group name specification.

Source

pub const TARGET_TABLE_DISAGREES_WITH_CURSOR_SPECIFICATION: Self

0T, target table disagrees with cursor specification.

Source

pub const ATTEMPT_TO_ASSIGN_TO_NON_UPDATABLE_COLUMN: Self

0U, attempt to assign to non-updatable column.

Source

pub const ATTEMPT_TO_ASSIGN_TO_ORDERING_COLUMN: Self

0V, attempt to assign to ordering column.

Source

pub const PROHIBITED_STATEMENT_ENCOUNTERED_DURING_TRIGGER_EXECUTION: Self

0W, prohibited statement encountered during trigger execution.

Source

pub const INVALID_FOREIGN_SERVER_SPECIFICATION: Self

0X, invalid foreign server specification.

Source

pub const PASS_THROUGH_SPECIFIC_CONDITION: Self

0Y, pass-through specific condition.

Source

pub const DIAGNOSTICS_EXCEPTION: Self

0Z, diagnostics exception.

Source

pub const XQUERY_ERROR: Self

10, XQuery error.

Source

pub const CASE_NOT_FOUND_FOR_CASE_STATEMENT: Self

20, case not found for case statement.

Source

pub const CARDINALITY_VIOLATION: Self

21, cardinality violation.

Source

pub const DATA_EXCEPTION: Self

22, data exception.

Source

pub const INTEGRITY_CONSTRAINT_VIOLATION: Self

23, integrity constraint violation.

Source

pub const INVALID_CURSOR_STATE: Self

24, invalid cursor state.

Source

pub const INVALID_TRANSACTION_STATE: Self

25, invalid transaction state.

Source

pub const INVALID_SQL_STATEMENT_NAME: Self

26, invalid SQL statement name.

Source

pub const TRIGGERED_DATA_CHANGE_VIOLATION: Self

27, triggered data change violation.

Source

pub const INVALID_AUTHORIZATION_SPECIFICATION: Self

28, invalid authorization specification.

Source

pub const DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST: Self

2B, dependent privilege descriptors still exist.

Source

pub const INVALID_CHARACTER_SET_NAME: Self

2C, invalid character set name.

Source

pub const INVALID_TRANSACTION_TERMINATION: Self

2D, invalid transaction termination.

Source

pub const INVALID_CONNECTION_NAME: Self

2E, invalid connection name.

Source

pub const SQL_ROUTINE_EXCEPTION: Self

2F, SQL routine exception.

Source

pub const INVALID_COLLATION_NAME: Self

2H, invalid collation name.

Source

pub const INVALID_SQL_STATEMENT_IDENTIFIER: Self

30, invalid SQL statement identifier.

Source

pub const INVALID_SQL_DESCRIPTOR_NAME: Self

33, invalid SQL descriptor name.

Source

pub const INVALID_CURSOR_NAME: Self

34, invalid cursor name.

Source

pub const INVALID_CONDITION_NUMBER: Self

35, invalid condition number.

Source

pub const CURSOR_SENSITIVITY_EXCEPTION: Self

36, cursor sensitivity exception.

Source

pub const EXTERNAL_ROUTINE_EXCEPTION: Self

38, external routine exception.

Source

pub const EXTERNAL_ROUTINE_INVOCATION_EXCEPTION: Self

39, external routine invocation exception.

Source

pub const SAVEPOINT_EXCEPTION: Self

3B, savepoint exception.

Source

pub const AMBIGUOUS_CURSOR_NAME: Self

3C, ambiguous cursor name.

Source

pub const INVALID_CATALOG_NAME: Self

3D, invalid catalog name.

Source

pub const INVALID_SCHEMA_NAME: Self

3F, invalid schema name.

Source

pub const TRANSACTION_ROLLBACK: Self

40, transaction rollback.

Source

pub const SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION: Self

42, syntax error or access rule violation.

Source

pub const WITH_CHECK_OPTION_VIOLATION: Self

44, with check option violation.

Source

pub const UNHANDLED_USER_DEFINED_EXCEPTION: Self

45, unhandled user-defined exception.

Source

pub const OLB_SPECIFIC_ERROR: Self

46, OLB-specific error.

Source

pub const FDW_SPECIFIC_CONDITION: Self

HV, FDW-specific condition.

HW, datalink exception.

Source

pub const CLI_SPECIFIC_CONDITION: Self

HY, CLI-specific condition.

Source

pub const REMOTE_DATABASE_ACCESS: Self

HZ, remote database access.

Trait Implementations§

Source§

impl Clone for SqlStateClass

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for SqlStateClass

Source§

impl Debug for SqlStateClass

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for SqlStateClass

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for SqlStateClass

Source§

impl Hash for SqlStateClass

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for SqlStateClass

Source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

fn clamp_to<R>(self, range: R) -> Self
where Self: Sized, R: ClampBounds<Self>,

🔬This is a nightly-only experimental API. (clamp_to)
Restrict a value to a certain range. Read more
Source§

impl PartialEq for SqlStateClass

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialOrd for SqlStateClass

Source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl StructuralPartialEq for SqlStateClass

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> AggregateExpressionMethods for T

Source§

fn aggregate_distinct(self) -> AggregateDistinct<Self>
where Self: DistinctDsl,

DISTINCT modifier for aggregate functions Read more
Source§

fn aggregate_all(self) -> AggregateAll<Self>
where Self: AllDsl,

ALL modifier for aggregate functions Read more
Source§

fn aggregate_filter<P>(self, f: P) -> AggregateFilter<Self, P>
where P: AsExpression<Bool>, Self: FilterDsl<P::Expression>,

Add an aggregate function filter Read more
Source§

fn aggregate_order<O>(self, o: O) -> AggregateOrder<Self, O>
where Self: OrderAggregateDsl<O>,

Add an aggregate function order Read more
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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Downcast for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Converts Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Converts Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
Source§

fn as_any(&self) -> &(dyn Any + 'static)

Converts &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Converts &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> DowncastSend for T
where T: Any + Send,

Source§

fn into_any_send(self: Box<T>) -> Box<dyn Any + Send>

Converts Box<Trait> (where Trait: DowncastSend) to Box<dyn Any + Send>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> IntoSql for T

Source§

fn into_sql<T>(self) -> AsExprOf<Self, T>

Convert self to an expression for Diesel’s query builder. Read more
Source§

fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T>
where &'a Self: AsExpression<T>, T: SqlType + TypedExpressionType,

Convert &self to an expression for Diesel’s query builder. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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.
Source§

impl<T> WindowExpressionMethods for T

Source§

fn over(self) -> Over<Self>
where Self: OverDsl,

Turn a function call into a window function call Read more
Source§

fn window_filter<P>(self, f: P) -> WindowFilter<Self, P>
where P: AsExpression<Bool>, Self: FilterDsl<P::Expression>,

Add a filter to the current window function Read more
Source§

fn partition_by<E>(self, expr: E) -> PartitionBy<Self, E>
where Self: PartitionByDsl<E>,

Add a partition clause to the current window function Read more
Source§

fn window_order<E>(self, expr: E) -> WindowOrder<Self, E>
where Self: OrderWindowDsl<E>,

Add a order clause to the current window function Read more
Source§

fn frame_by<E>(self, expr: E) -> FrameBy<Self, E>
where Self: FrameDsl<E>,

Add a frame clause to the current window function Read more