#postgresql #trusted #re-exports #pgx #access #safe #plrust

plrust-trusted-pgx

Minimal set of pgx rexports for plrust, which the authors have deemed trusted

4 releases (1 stable)

1.0.0 Apr 3, 2023
1.0.0-rc.1 Mar 14, 2023
1.0.0-rc.0 Feb 24, 2023
0.0.0-do-not-use Feb 24, 2023

#2100 in Database interfaces

PostgreSQL

7KB
103 lines

crates.io badge docs.rs badge

plrust-trusted-pgx is a re-export crate based on pgx which exports the minimal set of capabilities necessary to compile plrust user functions along with safe access to various parts of Postgres including some data types, logging, Spi, and triggers.

You might be tempted to use this for your own pgx extension development, but you shouldn't. It's intended for use only with plrust.


lib.rs:

plrust-trusted-pgx is a re-export crate based on pgx which exposes the minimal set of pgx internals necessary for plrust function compilation. plrust-trusted-pgx also includes a number of Rust types for interoperating with Postgres types, access to Postgres' "SPI", logging, and trigger support.

Dependencies

~21MB
~546K SLoC