Error

Enum Error 

Source
pub enum Error {
Show 67 variants DataType { data_type: Box<DataType>, }, ColumnOption { option: Box<ColumnOption>, }, OnDeleteConstrait { referential_action: ReferentialAction, }, PrimaryKey { reason: &'static str, }, PrimaryKeyWithExpression { expr: Box<Expr>, }, ForeignKey { reason: &'static str, }, TableConstraint { constraint: Box<TableConstraint>, }, CompoundIdentifier { length: usize, }, SelectionValue { value: Box<Value>, }, SelectionInList { selection: Box<Selection>, }, SelectionFromExpr { expr: Box<Expr>, }, InsertSourceExpression { expr: Box<Expr>, }, InsertSourceValue { value: Box<Value>, }, UpdateExpression { expr: Box<Expr>, }, UpdateValue { value: Box<Value>, }, BinaryOperator { op: BinaryOperator, }, Keyword { keyword: &'static str, }, JoinConstraint { constraint: Box<JoinConstraint>, }, JoinOperator { op: Box<JoinOperator>, }, TableAlias, TableValuedFunctions, TableWithHints, TableVersioning, TableWithOrdinality, TableWithPartitions, TableWithJsonPath, TableWithSampleModifier, TableWithIndexHints, TableFactor { factor: Box<TableFactor>, }, TableJoins { table_joins: Vec<TableWithJoins>, }, Drop { reason: &'static str, object_type: Option<ObjectType>, }, AlterTable { reason: &'static str, }, AlterTableOp { op: Box<AlterTableOperation>, }, ObjectName { reason: &'static str, }, CreateTable { reason: &'static str, }, FunctionArguments { reason: &'static str, arguments: Box<FunctionArguments>, }, FunctionArgument { reason: &'static str, argument: Box<FunctionArg>, }, CreateIndex { reason: &'static str, }, CreateIndexColumn { column: Box<IndexColumn>, }, CTE, Fetch, Limit, Locks, For, Select { set_expr: Box<SetExpr>, }, Top, EmptyProjections, Count { reason: &'static str, args: Vec<FunctionArg>, }, Function { name: String, }, Projection { select_item: Box<SelectItem>, }, OrderBy { reason: &'static str, }, GroupBy { reason: &'static str, }, Insert { reason: &'static str, }, InsertSourceEmpty, InsertTableObject, InsertSource { set_expr: Box<SetExpr>, }, Update { reason: &'static str, }, UpdateTableType { table_factor: Box<TableFactor>, }, UpdateAssignmentTarget { target: Box<AssignmentTarget>, }, Delete { reason: &'static str, }, DeleteToSql { reason: &'static str, }, DropIndex { reason: &'static str, }, Statement { statement: Box<Statement>, }, Serial, Io(Error), Parser(ParserError), Utf8(FromUtf8Error),
}

Variants§

§

DataType

Fields

§data_type: Box<DataType>
§

ColumnOption

Fields

§

OnDeleteConstrait

Fields

§referential_action: ReferentialAction
§

PrimaryKey

Fields

§reason: &'static str
§

PrimaryKeyWithExpression

Fields

§expr: Box<Expr>
§

ForeignKey

Fields

§reason: &'static str
§

TableConstraint

Fields

§constraint: Box<TableConstraint>
§

CompoundIdentifier

Fields

§length: usize
§

SelectionValue

Fields

§value: Box<Value>
§

SelectionInList

Fields

§selection: Box<Selection>
§

SelectionFromExpr

Fields

§expr: Box<Expr>
§

InsertSourceExpression

Fields

§expr: Box<Expr>
§

InsertSourceValue

Fields

§value: Box<Value>
§

UpdateExpression

Fields

§expr: Box<Expr>
§

UpdateValue

Fields

§value: Box<Value>
§

BinaryOperator

§

Keyword

Fields

§keyword: &'static str
§

JoinConstraint

Fields

§constraint: Box<JoinConstraint>
§

JoinOperator

Fields

§

TableAlias

§

TableValuedFunctions

Postgre + MSSQL

§

TableWithHints

MSSQL-specific WITH (...) hints such as NOLOCK.

§

TableVersioning

Table time-travel, as supported by BigQuery and MSSQL.

§

TableWithOrdinality

Postgres.

§

TableWithPartitions

Mysql

§

TableWithJsonPath

Optional PartiQL JsonPath: https://partiql.org/dql/from.html

§

TableWithSampleModifier

§

TableWithIndexHints

§

TableFactor

Fields

§

TableJoins

Fields

§table_joins: Vec<TableWithJoins>
§

Drop

Fields

§reason: &'static str
§object_type: Option<ObjectType>
§

AlterTable

Fields

§reason: &'static str
§

AlterTableOp

§

ObjectName

Fields

§reason: &'static str
§

CreateTable

Fields

§reason: &'static str
§

FunctionArguments

Fields

§reason: &'static str
§

FunctionArgument

Fields

§reason: &'static str
§argument: Box<FunctionArg>
§

CreateIndex

Fields

§reason: &'static str
§

CreateIndexColumn

Fields

§

CTE

§

Fetch

§

Limit

§

Locks

§

For

§

Select

Fields

§set_expr: Box<SetExpr>
§

Top

§

EmptyProjections

§

Count

Fields

§reason: &'static str
§args: Vec<FunctionArg>
§

Function

Fields

§name: String
§

Projection

Fields

§select_item: Box<SelectItem>
§

OrderBy

Fields

§reason: &'static str
§

GroupBy

Fields

§reason: &'static str
§

Insert

Fields

§reason: &'static str
§

InsertSourceEmpty

§

InsertTableObject

§

InsertSource

Fields

§set_expr: Box<SetExpr>
§

Update

Fields

§reason: &'static str
§

UpdateTableType

Fields

§table_factor: Box<TableFactor>
§

UpdateAssignmentTarget

Fields

§

Delete

Fields

§reason: &'static str
§

DeleteToSql

Fields

§reason: &'static str
§

DropIndex

Fields

§reason: &'static str
§

Statement

Fields

§statement: Box<Statement>
§

Serial

§

Io(Error)

§

Parser(ParserError)

§

Utf8(FromUtf8Error)

Trait Implementations§

Source§

impl Debug for Error

Source§

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

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

impl Display for Error

Source§

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

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

impl Error for Error

1.30.0 · Source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<Error> for Error

Source§

fn from(err: Error) -> Self

Converts to this type from the input type.
Source§

impl From<FromUtf8Error> for Error

Source§

fn from(err: FromUtf8Error) -> Self

Converts to this type from the input type.
Source§

impl From<ParserError> for Error

Source§

fn from(err: ParserError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl Freeze for Error

§

impl !RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl !UnwindSafe for Error

Blanket Implementations§

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> 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> 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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.