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
InvalidPosition
SpiTupleTable
is positioned outside its bounds
CursorNotFound(String)
Postgres could not find the specified cursor by name
NoTupleTable
The pg_sys::SPI_tuptable
is null