[][src]Enum postgres_parser::PgParserError

pub enum PgParserError {
    ParseError {
        message: String,
        cursor_pos: i32,
    },
    MultipleStatements(Vec<Node>),
    UnknownParseError,
    NotARawStmt,
    InternalNull,
    NotAList,
    NotAString,
}

Represents various errors that can occur while parsing a SQL statement.

Variants

ParseError

The SQL statement could not be parsed

Fields of ParseError

message: Stringcursor_pos: i32
MultipleStatements(Vec<Node>)

Internal SqlStatementScannerError -- more than one statement was scanned

UnknownParseError

We couldn't determine the error Postgres tried to tell us

NotARawStmt

One of the returned parsed queries didn't parse to a postgres-parser::RawStmt (this is unlikely to ever happen)

InternalNull

The input SQL statement &str contained an internal zero-byte

NotAList

The result from Postgres' parser was not a Node::List (this is unlikely to ever happen)

NotAString

The evaluated Node is not a String

Trait Implementations

impl Debug for PgParserError[src]

impl<'de> Deserialize<'de> for PgParserError[src]

impl Eq for PgParserError[src]

impl PartialEq<PgParserError> for PgParserError[src]

impl Serialize for PgParserError[src]

impl StructuralEq for PgParserError[src]

impl StructuralPartialEq for PgParserError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.