Module pgrx::spi

source ·
Expand description

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

Re-exports§

Structs§

Enums§

  • Set of possible errors pgrx might return while working with Postgres SPI
  • 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 pgrx repo.
  • These match the Postgres #defined constants prefixed SPI_OK_* that you can find in pg_sys.

Traits§

  • A generalized interface to what constitutes a query

Functions§

Type Aliases§