Expand description

This crate is meant for use with sqlx and allows you to query JSON or JSONB fields from PostgreSQL without needing to wrap the types in a sqlx::types::Json<> wrapper type.


  • Generate a Decode implementation for a type that can read it from a PostgreSQL JSON/JSONB field.


  • A wrapper around Box<serde_json::value::RawValue> which can be decoded directly from Postgres.


  • Extract a byte slice from a Postgres JSON or JSONB value. You shouldn’t need to use this directly.