github pgcentralfoundation/pgrx v0.0.8

latest releases: v0.11.4, v0.12.0-alpha.1, v0.12.0-alpha.0...
3 years ago

pgx v0.0.8 has been released. This is a bugfix and feature release.

New Features

  • Issue #18: #[derive(PostgresType)] now works for structs that contain borrowed data (ie, they have lifetimes). These are encoded as JSON, whereas fully-owned structs are encoded as CBOR
  • Issue #19: pgx now supports Postgres' bytea type, which can be represented in Rust as &[u8] or Vec<u8>. There's also an example for this that demonstrates gzipping bytea data

Bug Fixes

  • Issue #21: Rust's unit type (()) is now translated into a Postgres void
  • Issue #21: Rust's char type is now translated into a Postgres varchar
  • Issue #21: Postgres' "char" type (note the quotes!) is now translated into a Rust i8

Upgrading

When upgrading to this version, please ensure to run cargo install cargo-pgx in addition to updating your Cargo.toml files.

Sponsor Our Work

Please consider sponsoring our work on pgx. Sponsorships help keep pgx open-source and actively developed. Thanks for your consideration!

Don't miss a new pgrx release

NewReleases is sending notifications on new releases.