[][src]Crate pgx_macros

Macros

extension_sql

Attribute Macros

initialize

Associated macro for #[pg_test] to provide context back to your test framework to indicate that the test system is being initialized

pg_extern

Declare a function as #[pg_extern] to indicate that it can be used by Postgres as a UDF

pg_guard

Declare a function as #[pg_guard] to indcate that it is called from a Postgres extern "C" function so that Rust panic!()s (and Postgres elog(ERROR)s) will be properly handled by pgx

pg_test

#[pg_test] functions are test functions (akin to #[test]), but they run in-process inside Postgres during cargo pgx test.

Derive Macros

PostgresEnum
PostgresGucEnum
PostgresType