v0.0.8
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]
orVec<u8>
. There's also an example for this that demonstrates gzippingbytea
data
Bug Fixes
- Issue #21: Rust's unit type (
()
) is now translated into a Postgresvoid
- Issue #21: Rust's
char
type is now translated into a Postgresvarchar
- Issue #21: Postgres'
"char"
type (note the quotes!) is now translated into a Rusti8
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!