Module pgrx::datum

source ·
Expand description

Handing for easily converting Postgres Datum types into their corresponding Rust types and converting Rust types into their corresponding Postgres types

Re-exports§

Modules§

Structs§

Enums§

Constants§

Traits§

  • Convert a (pg_sys::Datum, is_null:bool) pair into a Rust type
  • Convert a Rust type into a pg_sys::Datum.
  • A tagging trait to indicate a user type is also meant to be used by Postgres Implemented automatically by #[derive(PostgresType)]
  • This trait allows a struct to be a valid subtype for a RangeType
  • A type which can have it’s core::any::TypeIds registered for Rust to SQL mapping.

Functions§

Type Aliases§