Module pgx::spi

source · []
Expand description

Safe access to Postgres’ Server Programming Interface (SPI).

Structs

Represents the set of pg_sys::Datums in a pg_sys::HeapTuple
Represents a single pg_sys::Datum inside a SpiHeapTupleData

Enums

These match the Postgres #defined constants prefixed SPI_ERROR_* that you can find in pg_sys. It is hypothetically possible for a Postgres-defined status code to be 0, AKA NULL, however, this should not usually occur in Rust code paths. If it does happen, please report such bugs to the pgx repo.
These match the Postgres #defined constants prefixed SPI_OK_* that you can find in pg_sys.