Module pgx::spi

source ·
Expand description

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

Structs

Enums

  • Set of possible errors pgx 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 pgx 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 Definitions