pgrx::spi

Type Alias Error

Source
pub type Error = SpiError;

Aliased Type§

enum Error {
    SpiError(SpiErrorCodes),
    DatumError(TryFromDatumError),
    PreparedStatementArgumentMismatch {
        expected: usize,
        got: usize,
    },
    InvalidPosition,
    CursorNotFound(String),
    NoTupleTable,
}

Variants§

§

SpiError(SpiErrorCodes)

An underlying SpiErrorCodes given to us by Postgres

§

DatumError(TryFromDatumError)

Some kind of problem understanding how to convert a Datum

§

PreparedStatementArgumentMismatch

An incorrect number of arguments were supplied to a prepared statement

Fields

§expected: usize
§got: usize
§

InvalidPosition

SpiTupleTable is positioned outside its bounds

§

CursorNotFound(String)

Postgres could not find the specified cursor by name

§

NoTupleTable